Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ZOrder Woes
Message
From
11/05/2007 00:35:57
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
01224223
Message ID:
01224431
Views:
11
Hi Kevin,

Ow, my head hurts. If I interpret this correctly, you're manually shifting page tabs but then getting hosed by ZOrder?

I think I ran into this before. Mind you, this is not a complete solution but an idea.

Once you start mucking about manually changing the positioning of the page tabs you have to abandon using ZOrder because it's now totally confused. Maybe I'm oversimplifying, but why isn't the Page associated with the tab automatically getting focus? Or is it that you don't want just the Page to be activated but the Page and tab to be moved to the front of all others?

Can you clarify? Thanks.

>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.
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform