In the Docking-Demo the undocked (flying) panels have such nice panel-style. But in my project -I use the docking-system a longer time- the undocked panels have a windows dialog style. What must I do to get these panel-style?
Yes, the DockManager. I put the Dockmanager on my first form (without any Docking). The Docksite on another Form use this Dockmanager. That should be a problem.
Now the Dockmanager is on the same form as the Docksite and it works fine.
Sorry, the problem is back. When I insert that source in the OnShow-Event of the form with the docking-site the problem with the dialog-style is back :
const DN = 'DockingStyle.xml'; var style: TLMDDockStyle; begin if FileExists(DN) then begin style := DockStyles.Add('StructaWoodStyle'); style.LoadFromFile(DN); LMDDockManager1.style := style; end; end;
The "DockingStyle.xml" is the VS2005-style from /tools. I copied and renamed XML and BMP to my project-directory to create in future my own style.
Comments
I put the Dockmanager on my first form (without any Docking). The Docksite on another Form use this Dockmanager. That should be a problem.
Now the Dockmanager is on the same form as the Docksite and it works fine.
Thanks, Jens
When I insert that source in the OnShow-Event of the form with the docking-site the problem with the dialog-style is back :
const
DN = 'DockingStyle.xml';
var
style: TLMDDockStyle;
begin
if FileExists(DN) then
begin
style := DockStyles.Add('StructaWoodStyle');
style.LoadFromFile(DN);
LMDDockManager1.style := style;
end;
end;
The "DockingStyle.xml" is the VS2005-style from /tools. I copied and renamed XML and BMP to my project-directory to create in future my own style.