Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What determines the order of toolbar controls?
Message
De
29/06/2000 17:39:55
 
 
À
24/06/2000 04:58:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00380357
Message ID:
00386795
Vues:
30
Robert,
Oops, try this instead.

It appears that you have solved your problem, so this suggestion is only an after thought.
My solution was to set the zOrder of all my toolbar buttons by doing the following in the Init() of the highest parent class of my toolbar:

With This
.cmdButton1.zOrder(0) && Display order 1
.cmdButton2.zOrder(0) && Display order 2
.cmdButton3.zOrder(0) && Display order 3
EndWith && This

If additional buttons are added during subclass design The following code is executed in the init:

If Not DoDefault()
Return .F.
EndIf

This .cmdButtonNext.zOrder(0) && Display order 1

Even though the order might not be what I want at design time, as long as I reference the buttons in the order I want them displayed, all is well.
Barry Taft
i am only worried in the short term. once there is a problem, the solution usually presents itself.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform