Difference between revisions of "Component: Button helper (Helpers)"
From Flowcode Help
Jump to navigationJump to searchLine 20: | Line 20: | ||
==Detailed description== | ==Detailed description== | ||
+ | |||
+ | |||
Line 28: | Line 30: | ||
==Examples== | ==Examples== | ||
+ | |||
+ | |||
Line 37: | Line 41: | ||
− | == | + | ==Macro reference== |
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" |
Revision as of 14:14, 20 January 2023
Author | Matrix Ltd |
Version | 1.1 |
Category | Helpers |
Contents
Button helper component
A button overlay that allows any object to behave like a button
Component Source Code
Please click here for the component source code: FC_Comp_Source_buttonhelper.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
![]() |
GetStateFor |
Returns true if the button is depressed, else false | |
![]() |
Target |
![]() |
Return |
![]() |
Clear |
Clears all objects from the lists This leaves no links for the button helper | |
![]() |
Return |
![]() |
SetDisabledPos |
Sets the position of the released button | |
![]() |
PositionHandle |
A handle to the position of the depressed location | |
![]() |
Return |
![]() |
SetEnabledPos |
Sets the position of the depressed button | |
![]() |
PositionHandle |
A handle to the position of the depressed location | |
![]() |
Return |
![]() |
SetAxis |
Sets the movement axis as an Axis_... constant | |
![]() |
Axis |
Movement axis to set to, default 4 | |
![]() |
Return |
![]() |
SetDisabledPosFor |
Sets the disabled position for an object | |
![]() |
Target |
![]() |
Position |
![]() |
Return |
![]() |
GetTarget |
Gets the target handle the property links to | |
![]() |
Return |
![]() |
GetState |
Returns true if the button is depressed, else false | |
![]() |
Return |
![]() |
Register |
Adds the object to the list if not already there | |
![]() |
Target |
![]() |
Return |
![]() |
SetLatchingFor |
Sets whether the button is depressed when the mouse is released | |
![]() |
Target |
![]() |
Enabled |
![]() |
Return |
![]() |
SetMode |
Sets the animation mode for the button | |
![]() |
Mode |
0=User, 1=Up/Down, 2 = Lever | |
![]() |
Return |
![]() |
SetEnabledPosFor |
Sets the enabled position for an object | |
![]() |
Target |
![]() |
Position |
![]() |
Return |
![]() |
SetPivotPosFor |
Sets the position the lever rotates around for an object | |
![]() |
Target |
![]() |
Position |
![]() |
Return |
![]() |
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 |
Sets the movement in units or PI/16 steps for the button | |
![]() |
Move |
Movement to set to - default is 4 | |
![]() |
Return |
![]() |
SetAxisFor |
Sets the movement axis as an Axis_... constant | |
![]() |
Target |
![]() |
Axis |
Movement axis to set to, default 4 | |
![]() |
Return |
![]() |
SetPivotPos |
Sets the position of the object the lever rotates around | |
![]() |
PositionHandle |
A handle to the position of the depressed location | |
![]() |
Return |
![]() |
SetLatching |
Sets whether the button is depressed when the mouse is released | |
![]() |
Enabled |
![]() |
Return |
![]() |
Unregister |
Removes the object to the list if present | |
![]() |
Target |
![]() |
Return |
![]() |
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 |