Jump to content
PeterPanettone

Tool Panels on secondary monitor

Recommended Posts

Delphi 12 (and previous versions) has a beneficial feature: It is possible to place Tool Panels on a secondary monitor, which is GREAT for productivity. But sometimes, these Tool Panels on the secondary monitor are hidden behind other windows. So, there should be an option to have those Tool Panels show a Taskbar icon when they are located on a secondary monitor. This would allow the user to click a Toolbar icon on the secondary monitor's Taskbar to bring the respective Tool Panel to the foreground. 

 

This code shows the icon of a secondary form on the Taskbar:

 

protected
  procedure CreateParams(var Params : TCreateParams); override; // must be in 'protected' section!

implementation 

procedure TBDSForm.CreateParams(var Params : TCreateParams);
// implementation of CreateParams
begin
  inherited CreateParams(Params); // Don't ever forget to do this!!!

  // This window is displayed as a separate icon in the taskbar:
  Params.WndParent := Winapi.Windows.GetDesktopWindow; // set this form independent from Main Form
end;

Would it be possible to implement this as an IDE plugin?

Edited by PeterPanettone

Share this post


Link to post

Well, clicking the IDE on the main monitor or clicking the IDE's taskbar icon on the main monitor's taskbar most often also brings the Tool Panels on the secondary monitor to the foreground.

Edited by PeterPanettone

Share this post


Link to post

GExperts -> Add Dock Window does this

 

But these Windows are not stored in the Desktop settings.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×