Controlling visibility on static items


Recommended Posts

With animated screen elements, typically there is a way to control visibility, usually on the Size tab. There's a window for you to enter an expression the result of which determines whether or not the component will be displayed. I thought I read somewhere there is a visibility control for every component, but I'll be darned if I can find one for Static Text or Panels. I guess in the case of the Static Text, I could use Descriptive Text instead with only a single entry, and make symbols that are just a flat piece in lieu of the panels, because those do have visibility controls, but it seems a little kludgey.

Link to comment
Share on other sites

Every component has a visible variable. Name the component (right click and select Component Name...), then do:

component.mycomponent.visible = 0

to make invisible or =1 to make visible

This can be done in a sequence, in an event, anywhere really that takes script.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.