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
209
LMD ElPack
373
LMD-Tools
414
Feature Requests
38
In this Discussion
Eugene Balabuev (LMD)
January 2021
Wiebrock Mess- und Regeltechnik GmbH
January 2021
Delphi Forms in LMDDockSite
Wiebrock Mess- und Regeltechnik GmbH
January 2021
in
LMD-Tools
Vote Up
0
Vote Down
Hi,
How can I dock Delphi Forms (TForm) in LMDDockSite ?
My creation didn't work. The TForm doesn't dock to the LMDDockSite.
I am a newbee.
Do I need to insert a special code to the form ?
Thx
Oliver
Comments
2 Comments
sorted by
Votes
Date Added
Eugene Balabuev (LMD)
January 2021
Posts: 0
Vote Up
0
Vote Down
First I advice you to NOT to dock forms, as you will not be able to support all docking features, as opposed to built-in dock panels.
However, to dock forms you need:
- Set form's DragKind to dkDock, and DragMode to dmAutomatic at design time.
- Create OnStartDock event handler, like shown below:
procedure TForm2.FormStartDock(Sender: TObject;
var DragObject: TDragDockObject);
begin
DragObject := TLMDDragObject.Create(Self);
TLMDDragObject(DragObject).DragContent := False;
end;
Wiebrock Mess- und Regeltechnik GmbH
January 2021
Posts: 9
Vote Up
0
Vote Down
Thx.
It works.
Sign In
or
Register
to comment.
Comments