KB-34893: Changing the visibility of a screen object with a button.

Question:

How can I change the visibility of a screen object with a button?

Solution:

There are two ways to do so: 

  1. On the button’s Tags tab, link it to the object’s Visible property; or
  2. Change the value of the object’s Visible property by script.

Button’s script examples:

On OnLButtonDown event (by clicking the button):

//Hides the Text object
Text.visible = 0

And on the OnRelease event (when the button is released):

//Displays the Text object
Text.visible = 1

Print Friendly, PDF & Email

Este artigo foi útil? Was this helpful?

Classificação média - Average rating 0 / 5. Count: 0

,

Deixe seu Comentário

Seu endereço de e-mail não será publicado. Campos marcados com asterisco são obrigatórios *