Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Docking
Message
 
À
23/10/2002 06:53:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00714268
Message ID:
00714289
Vues:
23
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform