Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bring to front Or Send to back property?
Message
From
22/07/1998 00:24:09
 
 
To
22/07/1998 00:04:54
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00119463
Message ID:
00120012
Views:
39
Way to go Vlad....I thought it might be ZOrder but....was unable to confirm...

>Right. I just tested now and (I hope I'm right), the ZOrder() method rearanges the objects in the container's Controls collection. oObject.ZOrder(0) moves oObject to the end of the collection and ZOrder(1) moves oObject in front of the collection. Am I right?
>
>So, we have a property reflecting the "Send to back" and "Bring to front" actions.
>
>Vlad
>
>>It represents the order the records are in the form file. If you Send to Back and close the form and reopen it the item will be the first item on the object dropdown. If you Bring to Front it'll move it to the last item on the object dropdown. You won't see the position changes until after a save/reopen of the form.
>>
>>>That's because there's no property. It just puts the object at front or back on the Z axis. It's almost obviously that there must be a list of objects somewhere (at container level?) that keeps the order on the Z axis, but this list is not exposed. Should it be? Did you ever need it? I've never needed anything more than ZOrder() method to bring an object in front of all other objects.
------------------------------------------------
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
Reply
Map
View

Click here to load this message in the networking platform