le 05-29-2019 04:40 AM
Bonjour,
Je recherche à modifier par code l'ordre de priorité de l'affichage en Z de diverses commandes.
J'ai trouver la méthode "PlacerSélection1erPlan", mais je n'arrive pas à l'exploiter.
Avez-vous un exemple simple qui permet d'exploiter cette méthode ?
J'en ai fait un en annexe.
Merci à vous.
05-29-2019 06:23 AM - modifié 05-29-2019 06:33 AM
Hello,
the method is NOT settable when the VI is running. http://zone.ni.com/reference/en-XX/help/371361R-01/lvscript/panel_move_selection_to_front/
You need to use references from a not running VI.
EDIT:
Bonjour,
la méthode n'est PAS paramétrable lorsque le VI est en cours d'exécution. http://zone.ni.com/reference/en-XX/help/371361R-01/lvscript/panel_move_selection_to_front/
Vous devez utiliser les références d'un VI qui n'est pas en cours d'exécution.
le 05-29-2019 06:58 AM
UliB,
Thank you for your answer, and I'm sorry for my bad english.
I just want to put in front of an object when it is selected.
Is there any way to do it in execution?
Thanks !
le 05-29-2019 07:44 AM
Hello taitec,
something I once did was to put button A on top of button B. When the user clicked button A I set the visibility property of button A to false and the visibility property of Button B to true and vice versa. So the user saw only the button he was allowed to press.
But I don't know if this is of any help for you.
UliB
le 05-29-2019 08:37 AM
Hi,
I can't use this method, because I must change z level for twenty controls.
Thanks for your help.