Board index » delphi » Docking Form into Panel / Placement of DockBar / Vert vs Horiz

Docking Form into Panel / Placement of DockBar / Vert vs Horiz

Hi all,
I'm docking forms into panels, and need to control the placement of the
dockbar (the "gripper" bar with the X on it that appears when you dock a
form).  Sometimes I get horizontal bars (good), but other times I get
vertical (bad).  Is there a way to force it the way I want it?
It isn't random - I have one panel where everything docks with a vertical
bar.  I hate that....
Any help is greatly appreciated.

--
Try ClipMate free for 30 days!
http://www.thornsoft.com

 

Re:Docking Form into Panel / Placement of DockBar / Vert vs Horiz


In case this helps anyone in the future....
The gripper placement of the docked form is affected by the alignment of the
panel that it's docked into.
If the panel is aligned alClient, then the dock bar / dockbar / gripper /
whatever will be arranged horizontally at the top.  But if the parent panel
is aligned as alTop, then that will force the dockbar of the child to be
arranged vertically, on the left side.
Since I neede alTop, I dropped another one inside it, made it alClient, and
now I'm ok.  It's a bit of a waste of a panel (and associated window
handle), but you've gotta do, what you've gotta do.

--
Chris

Quote
"Chris Thornton" <ch...@thornsoft.com> wrote in message

news:3d476058$1_2@dnews...
Quote
> Hi all,
> I'm docking forms into panels, and need to control the placement of the
> dockbar (the "gripper" bar with the X on it that appears when you dock a
> form).  Sometimes I get horizontal bars (good), but other times I get
> vertical (bad).  Is there a way to force it the way I want it?
> It isn't random - I have one panel where everything docks with a vertical
> bar.  I hate that....
> Any help is greatly appreciated.

> --
> Try ClipMate free for 30 days!
> http://www.thornsoft.com

Other Threads