Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to 'Bring to front' an Object
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00046540
Message ID:
00046547
Views:
30
>I have an instaniated Form wich by the user request (a command button) creates and shows a container object (a box with two textboxes) in the Form, once the object in the form the user can move it thru drag and drop, then generate another one and so on. The problem is that as each object is generated it's placed on the top of the others, how can I 'bring to front' any object as the user clicks on the container?. I have tried the TabOrder property but this works for the secuence of jumping to the next object, it doesn't bring graphically the objects to the front.

Use Zorder method:
thisform.myContainer.Zorder(0) && bring to front
thisform.myContainer.Zorder(1) && send to back

HTH,

Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Reply
Map
View

Click here to load this message in the networking platform