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