Jump to content

API Component.SetVisible: Difference between revisions

From Flowcode Help
m Text replacement - "width="10%" align="center" style="background-color:#D8C9D8;" align="center"" to "width="10%" align="center" class="mtx-class-macrohead""
m Text replacement - "width="90%" style="background-color:#D8C9D8; color:#4B008D;"" to "width="90%" class="mtx-class-macrohead""
 
Line 2: Line 2:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetVisible'''
| width="90%" class="mtx-class-macrohead" | '''SetVisible'''
|-
|-
| colspan="2" | Sets whether a component can be seen on the panel 
| colspan="2" | Sets whether a component can be seen on the panel 

Latest revision as of 14:11, 13 July 2026

SetVisible
Sets whether a component can be seen on the panel 
- HANDLE Target
The component to set the state for 
- BOOL Enabled
True to enable, false to disable 
- NONE Return


Detailed description

An invisible component may still respond to mouse click events, but can not be seen on any panel during simulation. When not simulating, invisible components are displayed as a grey outline.


Examples

Calling in a calculation

  • Add to a calculation icon:
    ::Component.SetVisible(target, true)