Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Saving toolbar position, dock status
Message
De
06/11/1998 12:28:22
Bruce Gilmour
Cal-Mour Consultants
Calgary, Alberta, Canada
 
 
À
04/11/1998 15:21:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00154521
Message ID:
00155279
Vues:
17
Erik, FWIW I took the example from Tastrade. They have a method to save the Bar position and a Method to restore the bar position called from the Destroy and Init events of the tool bar respectively. They save it to an ini file but the same techniques can be applied to saving it in the registry. They diferentiate between Docked and Undocked by checking for a comma in the saved position. Take a look at Tastrade and you'll see what I mean. If you need any more info let me know. HTH

>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?
***************************
Bruce Gilmour

"Two things are infinite, the Universe and human stupidity. And I am not sure about the Universe."
- Albert Einstein
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform