Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ZOrder Woes
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
ZOrder Woes
Divers
Thread ID:
01224223
Message ID:
01224223
Vues:
79
ZOrder is changing the order of the controls in the .Controls property.

I have the following code that repositions tabs in a tabset:
nLeft = 0
FOR nControl = 1 TO .ControlCount

	oControl = .Controls[nControl]

	IF LOWER(oControl.Class) = "mytab"

		oControl.Left = nLeft
		
		IF nControl > 1
			oControl.Left = oControl.Left - 7
		ENDIF			
	
		nLeft = oControl.Left + oControl.Width
	
	ENDIF

ENDFOR
The problem is that when a tab is clicked, I use ZOrder(0) to bring the tab in front of
all others.

Since ZOrder is changing the order of the controls in the .Controls property, the above code
no longer works.

I'm open to suggestions on this.
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform