Board index » cppbuilder » docking problem

docking problem


2004-08-19 11:57:52 PM
cppbuilder49
Hi,
I have a MDIApplication. Each MDIChild has 3 dockable panels.The
problem is when I opened 2 MDIchild windows, I can dock a panel from one
MDIChild windows to the other. That is not what we want.
So I added a OnGetsiteInfo to tell me if the panel(dock client) belongs
to the MDIchild or not. Then I will set the CanDock to true or false.
It works ok. The MDIchild will only accept it's own panel.
The only problem is I need to undock the panel back to it is original
was if Cancock is true. How can I do that? Or How do I stop a floating
panel going outside of the MDIChild?
Thank you
 
 

Re:docking problem

Jermey wrote:
Quote
The only problem is I need to undock the panel back to it is original
was if Cancock is true. How can I do that? Or How do I stop a
floating panel going outside of the MDIChild? Thank you
Questions on using VCL components would be better asked in
.vcl.components.using
This section (.IDE) is for questions relating to the IDE (Editor,
de{*word*81} etc).
--
Andrue Cope [TeamB]
[Bicester, Uk]
info.borland.com/newsgroups/guide.html
 

Re:docking problem

Hi:
I have a simple form with a panel and a listview on it and I have set the
following properties:
Form1->DockSite = true;
Form1->UseDockManager = true;
Panel1->DragKind = dkDock;
Panel1->DragMode = dmAutomatic;
ListView1->DragKind = dkDock;
ListView1->DragMode = dmAutomatic;
first of all the panel will dock and undock with no problem but listview
wont.
second if I do somethin like ListView1->ManualFloat(...); it will undock but
when i dock it back in it does not have grabber bar and it will not undock
again.
Any Ideas?
Thank You
Sam
 

{smallsort}