Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Saving toolbar position, dock status
Message
De
04/11/1998 15:53:43
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00154521
Message ID:
00154549
Vues:
18
I've got that down. My dilemma is when to record this. DockPosition reads falsely in the UnDock event. I have worked around it by duplicating my write code and overwriting the dockposition property explicitly with -1, but I don't like this. Too much code... :). I think this is how it will have to work though.

>Erik,
>I've used the DockPosition property to record/restore toolbar position. A value of -1 means undocked, 0 means top, etc... It works well for me...
>Mark
>
>>I am building the ability in my toolbar class for the toolbars to record and remember their position and docked status to and from the registry, in effect remembering the user's settings. I am running into some trouble because I can't find a good time to record the docked status. It appears that in a toolbar's destroy method, oToolbar.docked is always .F.. So I tried it in the After dock and undock methods. The After dock works but the Undock method shows oToolbar.docked still = .T. Aaargh.
>>
>>Has anyone else done this, and do you have any advice for me?
Erik Moore
Clientelligence
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform