Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Toolbars with a mind of their own
Message
De
12/11/1997 16:54:33
Elyse Pomerantz
Dynamic Data Concepts, Inc.
Brooklyn, New York, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00059596
Message ID:
00059811
Vues:
32
>>Most of my toolbars have the same basic buttons (Add,Delete,Save,Cancel, etc.) so I made a ToolBar Class that has these buttons. When I add this ToolBar to my form and then add additional buttons and separators, the separators rearrange themselves. This looks terrible! Every time I open the form, rearrange the buttons/separators and open the form again, the separators have moved. And I can't delete some of them because they are 'members of a parent class.'
>>
>>I also tried to subclass the toolbar and add the additional buttons/separators in the subclass, but I encountered the same problem. It appears that everything must be put into the same class or else everything must be added at the form level. This seems to go against the idea of subclassing. Has anyone else seen this? How do other people handle toolbars?
>>
>>Thanks
>>Elyse
>
>if we sub from toolbars, we do this from toolbars wo/ separators

I tried this, putting only buttons in the class and then adding the separators in the form, but I still had the same problem. The only solution I found was to start with an empty toolbar class and add all the buttons and separators in the form. I classed the standard buttons individually to make it a little easier.

Elyse
Elyse Pomerantz
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform