Discussions
Sign In
•
Register
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In with LMD account
Sign In with LMD account
Categories
Recent Discussions
Categories
All Categories
1.1K
NG Controls
28
Announcements
60
LMD IDE-Tools
208
LMD ElPack
373
LMD-Tools
414
Feature Requests
38
In this Discussion
Eugene Balabuev (LMD)
February 2021
Wiebrock Mess- und Regeltechnik GmbH
February 2021
How can I maximize a undocked Docking Panel by code ?
Wiebrock Mess- und Regeltechnik GmbH
January 2021
in
LMD-Tools
Vote Up
0
Vote Down
Hi,
I want to undock a LMDDockPanel from LMDDockSiteand want to show it maximized.
Which code can I use ?
How can I simulate a click of the maximize button ?
Thx.
Oliver
Comments
5 Comments
sorted by
Votes
Date Added
Wiebrock Mess- und Regeltechnik GmbH
January 2021
Posts: 9
Vote Up
0
Vote Down
And how can I set the undocked LMDDockPanel to a x,y position of the screen ?
Left := 10;
Top := 10;
doesn't work.
I think something I do is wrong or missing.
Eugene Balabuev (LMD)
January 2021
Posts: 0
Vote Up
0
Vote Down
You can use MyPanel.ManualFloat(...) standard Delphi method to make the panel floating. Then you can maximize it like this:
GetParentForm(MyDockPanel).WindowState := wsMaximized;
Wiebrock Mess- und Regeltechnik GmbH
February 2021
Posts: 9
Vote Up
0
Vote Down
Thx, works.
Wiebrock Mess- und Regeltechnik GmbH
February 2021
Posts: 9
Vote Up
0
Vote Down
Hi,
And after using MyPanel.ManualFloat(...) how can I re-dock MyDockPanel to the LMDDockSite1 by code ?
Thx.
Best
Oliver
Eugene Balabuev (LMD)
February 2021
edited February 2021
Posts: 0
Vote Up
0
Vote Down
You can re-dock the panel using:
LMDDockSite1.DockControl(MyDockPanel, ...);
Sign In
or
Register
to comment.
Comments