Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Saving the Toolbar...
Message
 
 
À
06/10/2000 07:22:35
Jonathan Cochran
Alion Science and Technology
Maryland, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00425261
Message ID:
00426080
Vues:
17
Sure, I foget that toolbar resize self automatically to as less size as possible to show all cntrols inside. So, when you will set width of toolbar to '10000', it will resize self to something like 'Width = 346, height = '. Though it is hard to restore size of toolbar in run-time, because you need to store number of control lines instead of width/height. So, when user resized toolbar to show its controls in 2 lines, you may set width to something less than total width of all controls and you will have the same effect.

Try also to set 'Width = StoredWidth + 1' when restoring layout.

HTH.


>In our toolbar restore code, we call the DOCK() method, passing the dock state, left and top. Then, we just set the width, which resizes the toolbar appropriately.
>
>>Hi Vlad,
>>Thanks I tried different orders of restoring the toolbar without luck..
>>Sometimes the height,width,top,bottom have no effect...
>>
>>There moust be something else with the timing.
>>(At init,show,activate time??)
>>
>>Anyone have any code that could help me here?
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform