Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Docking
Message
 
To
23/10/2002 06:53:48
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00714268
Message ID:
00714289
Views:
22
Hi Dirk,

>we have different indipendend frames and like to have a docking feature at runetime like the one in the developement invironment.

you will have to build this by yourself or wait until VFP9 <s>. In the Devcon report here on the UT, it is mentioned that VFP9 will probably support dockable forms, if I remember correctly.

Here are some things that come to my mind for doing this in VFP7:

- The Moved() event of a form fires contantly when a form is dragged, so this is the place to put your code that checks if you have to dock or undock the form.

- Use your form manager class to put the code in, that does the real work and to store information about the docking state of the forms, so you always know in a fast way, which form is docked, where it is docked etc.

- Use a form class to simulate the frame that shows the dock position while dragging the original form. Set the frame form to AlwaysOnTop=.T. so it always stays above your original form.

Hope this gives you a start,
Armin

Armin Neudert
Regional Director (Stuttgart) of German FoxPro User Group dFPUG

MCP for Visual FoxPro

Expert/Editor of the VFP section in the German Codezone community portal
Previous
Reply
Map
View

Click here to load this message in the networking platform