Difference between revisions of "Component: Button helper (Helpers)"
From Flowcode Help
Jump to navigationJump to searchLine 57: | Line 57: | ||
''<span style="color:red;">No additional examples</span>'' | ''<span style="color:red;">No additional examples</span>'' | ||
+ | |||
+ | |||
Line 63: | Line 65: | ||
==Macro reference== | ==Macro reference== | ||
+ | ===GetStateFor=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 81: | Line 84: | ||
+ | ===Clear=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 94: | Line 98: | ||
+ | ===SetDisabledPos=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 112: | Line 117: | ||
+ | ===SetEnabledPos=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 130: | Line 136: | ||
+ | ===SetAxis=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 148: | Line 155: | ||
+ | ===SetDisabledPosFor=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 171: | Line 179: | ||
+ | ===GetTarget=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 184: | Line 193: | ||
+ | ===GetState=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 197: | Line 207: | ||
+ | ===Register=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 215: | Line 226: | ||
+ | ===SetNotify=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 238: | Line 250: | ||
+ | ===SetLatchingFor=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 261: | Line 274: | ||
+ | ===SetMode=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 279: | Line 293: | ||
+ | ===SetEnabledPosFor=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 302: | Line 317: | ||
+ | ===SetPivotPosFor=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 325: | Line 341: | ||
+ | ===SetModeFor=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 348: | Line 365: | ||
+ | ===SetMovement=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 366: | Line 384: | ||
+ | ===SetAxisFor=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 389: | Line 408: | ||
+ | ===SetPivotPos=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 407: | Line 427: | ||
+ | ===SetAutoReset=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 425: | Line 446: | ||
+ | ===SetLatching=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 443: | Line 465: | ||
+ | ===Unregister=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 461: | Line 484: | ||
+ | ===SetMovementFor=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- |
Revision as of 11:53, 3 February 2023
Author | Matrix Ltd |
Version | 1.1 |
Category | Helpers |
Contents
- 1 Button helper component
- 2 Component Source Code
- 3 Detailed description
- 4 Examples
- 5 Macro reference
- 5.1 GetStateFor
- 5.2 Clear
- 5.3 SetDisabledPos
- 5.4 SetEnabledPos
- 5.5 SetAxis
- 5.6 SetDisabledPosFor
- 5.7 GetTarget
- 5.8 GetState
- 5.9 Register
- 5.10 SetNotify
- 5.11 SetLatchingFor
- 5.12 SetMode
- 5.13 SetEnabledPosFor
- 5.14 SetPivotPosFor
- 5.15 SetModeFor
- 5.16 SetMovement
- 5.17 SetAxisFor
- 5.18 SetPivotPos
- 5.19 SetAutoReset
- 5.20 SetLatching
- 5.21 Unregister
- 5.22 SetMovementFor
- 6 Property reference
Button helper component
A button overlay that allows any object to behave like a button
Component Source Code
Please click here to download the component source project: FC_Comp_Source_buttonhelper.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_buttonhelper.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
GetStateFor
![]() |
GetStateFor |
Returns true if the button is depressed, else false | |
![]() |
Target |
![]() |
Return |
Clear
![]() |
Clear |
Clears all objects from the lists This leaves no links for the button helper | |
![]() |
Return |
SetDisabledPos
![]() |
SetDisabledPos |
Sets the position of the released button | |
![]() |
PositionHandle |
A handle to the position of the depressed location | |
![]() |
Return |
SetEnabledPos
![]() |
SetEnabledPos |
Sets the position of the depressed button | |
![]() |
PositionHandle |
A handle to the position of the depressed location | |
![]() |
Return |
SetAxis
![]() |
SetAxis |
Sets the movement axis as an Axis_... constant | |
![]() |
Axis |
Movement axis to set to, default 4 | |
![]() |
Return |
SetDisabledPosFor
![]() |
SetDisabledPosFor |
Sets the disabled position for an object | |
![]() |
Target |
![]() |
Position |
![]() |
Return |
GetTarget
![]() |
GetTarget |
Gets the target handle the property links to | |
![]() |
Return |
GetState
![]() |
GetState |
Returns true if the button is depressed, else false | |
![]() |
Return |
Register
![]() |
Register |
Adds the object to the list if not already there | |
![]() |
Target |
![]() |
Return |
SetNotify
SetLatchingFor
![]() |
SetLatchingFor |
Sets whether the button is depressed when the mouse is released | |
![]() |
Target |
![]() |
Enabled |
![]() |
Return |
SetMode
![]() |
SetMode |
Sets the animation mode for the button | |
![]() |
Mode |
0=User, 1=Up/Down, 2 = Lever | |
![]() |
Return |
SetEnabledPosFor
![]() |
SetEnabledPosFor |
Sets the enabled position for an object | |
![]() |
Target |
![]() |
Position |
![]() |
Return |
SetPivotPosFor
![]() |
SetPivotPosFor |
Sets the position the lever rotates around for an object | |
![]() |
Target |
![]() |
Position |
![]() |
Return |
SetModeFor
![]() |
SetModeFor |
Sets the animation mode for the button | |
![]() |
Target |
The target object, 0 for 'set default' | |
![]() |
Mode |
0=User, 1=Up/Down, 2 = Lever | |
![]() |
Return |
SetMovement
![]() |
SetMovement |
Sets the movement in units or PI/16 steps for the button | |
![]() |
Move |
Movement to set to - default is 4 | |
![]() |
Return |
SetAxisFor
![]() |
SetAxisFor |
Sets the movement axis as an Axis_... constant | |
![]() |
Target |
![]() |
Axis |
Movement axis to set to, default 4 | |
![]() |
Return |
SetPivotPos
![]() |
SetPivotPos |
Sets the position of the object the lever rotates around | |
![]() |
PositionHandle |
A handle to the position of the depressed location | |
![]() |
Return |
SetAutoReset
SetLatching
![]() |
SetLatching |
Sets whether the button is depressed when the mouse is released | |
![]() |
Enabled |
![]() |
Return |
Unregister
![]() |
Unregister |
Removes the object to the list if present | |
![]() |
Target |
![]() |
Return |
SetMovementFor
![]() |
SetMovementFor |
Sets the movement in units or PI/16 steps for the button | |
![]() |
Target |
![]() |
Move |
Movement to set to, default 4 | |
![]() |
Return |
Property reference
![]() |
Properties |
![]() |
Host component |
![]() |
Lever pivot |