Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Programatically bring control to the front?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00507295
Message ID:
00507304
Vues:
10
This message has been marked as the solution to the initial question of the thread.
>is is possible to programatically bring a control to the front on a form? i have a couple of grids which can sometimes be overlapped. as you go through the records of one, records change in the other. the wierd thing is that only the header band of the main grid overlaps the second grid, so i thought that i could try format.'bring to front' on the second grid as it is refreshed...
>tia - john

I have a grid that I leave behind other controls, but when I need it I set the ZOrder(0) which brings it to the front and then I ZOrder(1) to put it back.

Code to bring it forward:
This.Enabled = .T.
This.Visible = .T.
This.ZOrder(0)

Code to put it back
THIS.ENABLED = .F.
THIS.VISIBLE = .F.
THIS.ZOrder(1)
Bret Hobbs

"We'd have been called juvenile delinquents only our neighborhood couldn't afford a sociologist." Bob Hope
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform