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)
October 2017
Schelhorn OWiG Software GmbH
October 2017
I need to dock Delphi Forms in LMDDockSite. The Caption of the Form is lost in LMDDockSite
Schelhorn OWiG Software GmbH
October 2017
in
LMD-Tools
Vote Up
0
Vote Down
i try to dock delphi forms (TForm) in LMDDockSite. But the Caption is not showing. If i set the Caption manually in the LMDDockPanel he is lost after undock and then redock the form
Comments
2 Comments
sorted by
Votes
Date Added
Schelhorn OWiG Software GmbH
October 2017
Posts: 3
Vote Up
0
Vote Down
I have found a Workaround:
After the command LMDDockSite1.DockControl i have coded the following lines:
if APanel.inheritsfrom(TCustomForm) then
begin
s := (APanel as TCustomForm).caption;
LMDDockSite1.Panels[LMDDockSite1.PanelCount-1].Caption := s;
end;
The same in the event:
procedure TMainForm.LMDDockSite1DockDrop(Sender: TObject;
Source: TDragDockObject; AZone: TLMDDockZone; AAlign: TAlign);
var s:String;
begin
if Source.Control.inheritsfrom(TCustomForm) then
begin
s := (Source.Control as TCustomForm).caption;
LMDDockSite1.Panels[LMDDockSite1.PanelCount-1].Caption := s;
end;
end;
Eugene Balabuev (LMD)
October 2017
Posts: 0
Vote Up
0
Vote Down
Hi,
Really, this should be done automatically by LMD-DockingPack. But for some reason this was not worked. I've fixed the bug.
Sign In
or
Register
to comment.
Comments