Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 249793
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T21:27:26+00:00 2026-05-11T21:27:26+00:00

This is a follow up to How can I get the Delphi IDE's Main

  • 0

This is a follow up to How can I get the Delphi IDE's Main Form? which I now have working.

I’d like to go one step further and place my designer on the same form as the Object Inspector, for those who use the classic undocked desktop layout and may have the Object Inspector on a different screen than the main Delphi IDE form.

Any ideas on how I find which monitor the Object Inspector is on from inside my design time package?

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T21:27:26+00:00Added an answer on May 11, 2026 at 9:27 pm

    This should work whether the property inspector is docked or not, since it falls back to the main form for the docked case:

    function EnumWindowsProc(hwnd: HWND; lParam: LPARAM): Integer; stdcall;
    var
      ClassName: string;
      PID: Cardinal;
    begin
      Result := 1;
      GetWindowThreadProcessId(hwnd, PID);
      if PID = GetCurrentProcessId then 
      begin
        SetLength(ClassName, 64);
        SetLength(ClassName, GetClassName(hwnd, PChar(ClassName), Length(ClassName)));
        if ClassName = 'TPropertyInspector' then 
        begin
          PHandle(lParam)^ := hwnd;
          Result := 0;
        end;
      end;
    end;
    
    function GetPropertyInspectorMonitor: TMonitor;
    var
      hPropInsp: HWND;
    begin
      hPropInsp := 0;
      EnumWindows(@EnumWindowsProc, LPARAM(@hPropInsp));
      if hPropInsp = 0 then
        hPropInsp := Application.MainFormHandle;
      Result := Screen.MonitorFromWindow(hPropInsp);
    end;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is a follow-on question from the one I asked here . Can constraints
I try to follow this tutorial, but I can't get it to work: http://weierophinney.net/matthew/archives/246-Using-Action-Helpers-To-Implement-Re-Usable-Widgets.html
Why can't I do something like this in c# (pseudo code follows) Interface1 {
If you follow this link to one of the pages on my site and
I have a bunch of python methods that follow this pattern: def delete_session(guid): conn
I have a listview, which displays a list of administrators, this list is held
Hi I'm wondering how I can go about this problem I have a DB
I am attempting to follow this example: http://howtomakeiphoneapps.com/uiwebview-tutorial/239/ I have added a UIWebView into
Has anybody been able to get the Facebook Like, Twitter Follow, and Google +1
I am working on iPhone racing car game development using cocos3d.In this how can

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.