Component: Button helper (Helpers): Difference between revisions
Appearance
No edit summary |
m Text replacement - "width="90%" style="background-color:#D8C9D8; color:#4B008D;"" to "width="90%" class="mtx-class-macrohead"" |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 72: | Line 72: | ||
===Clear=== | ===Clear=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Clear''' | ||
|- | |- | ||
| colspan="2" | Clears all objects from the lists This leaves no links for the button helper | | colspan="2" | Clears all objects from the lists This leaves no links for the button helper | ||
| Line 86: | Line 86: | ||
===GetState=== | ===GetState=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''GetState''' | ||
|- | |- | ||
| colspan="2" | Returns true if the button is depressed, else false | | colspan="2" | Returns true if the button is depressed, else false | ||
| Line 100: | Line 100: | ||
===GetStateFor=== | ===GetStateFor=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''GetStateFor''' | ||
|- | |- | ||
| colspan="2" | Returns true if the button is depressed, else false | | colspan="2" | Returns true if the button is depressed, else false | ||
| Line 119: | Line 119: | ||
===GetTarget=== | ===GetTarget=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''GetTarget''' | ||
|- | |- | ||
| colspan="2" | Gets the target handle the property links to | | colspan="2" | Gets the target handle the property links to | ||
| Line 133: | Line 133: | ||
===Register=== | ===Register=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Register''' | ||
|- | |- | ||
| colspan="2" | Adds the object to the list if not already there | | colspan="2" | Adds the object to the list if not already there | ||
| Line 152: | Line 152: | ||
===SetAutoReset=== | ===SetAutoReset=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''SetAutoReset''' | ||
|- | |- | ||
| colspan="2" | Sets the state of the auto-reset flag If the flag is true (it is by default) then Button Helper will reset the state of each button on stop | | colspan="2" | Sets the state of the auto-reset flag If the flag is true (it is by default) then Button Helper will reset the state of each button on stop | ||
| Line 171: | Line 171: | ||
===SetAxis=== | ===SetAxis=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''SetAxis''' | ||
|- | |- | ||
| colspan="2" | Sets the movement axis as an Axis_... constant | | colspan="2" | Sets the movement axis as an Axis_... constant | ||
| Line 190: | Line 190: | ||
===SetAxisFor=== | ===SetAxisFor=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''SetAxisFor''' | ||
|- | |- | ||
| colspan="2" | Sets the movement axis as an Axis_... constant | | colspan="2" | Sets the movement axis as an Axis_... constant | ||
| Line 214: | Line 214: | ||
===SetDisabledPos=== | ===SetDisabledPos=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''SetDisabledPos''' | ||
|- | |- | ||
| colspan="2" | Sets the position of the released button | | colspan="2" | Sets the position of the released button | ||
| Line 233: | Line 233: | ||
===SetDisabledPosFor=== | ===SetDisabledPosFor=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''SetDisabledPosFor''' | ||
|- | |- | ||
| colspan="2" | Sets the disabled position for an object | | colspan="2" | Sets the disabled position for an object | ||
| Line 257: | Line 257: | ||
===SetEnabledPos=== | ===SetEnabledPos=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''SetEnabledPos''' | ||
|- | |- | ||
| colspan="2" | Sets the position of the depressed button | | colspan="2" | Sets the position of the depressed button | ||
| Line 276: | Line 276: | ||
===SetEnabledPosFor=== | ===SetEnabledPosFor=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''SetEnabledPosFor''' | ||
|- | |- | ||
| colspan="2" | Sets the enabled position for an object | | colspan="2" | Sets the enabled position for an object | ||
| Line 300: | Line 300: | ||
===SetLatching=== | ===SetLatching=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''SetLatching''' | ||
|- | |- | ||
| colspan="2" | Sets whether the button is depressed when the mouse is released | | colspan="2" | Sets whether the button is depressed when the mouse is released | ||
| Line 319: | Line 319: | ||
===SetLatchingFor=== | ===SetLatchingFor=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''SetLatchingFor''' | ||
|- | |- | ||
| colspan="2" | Sets whether the button is depressed when the mouse is released | | colspan="2" | Sets whether the button is depressed when the mouse is released | ||
| Line 343: | Line 343: | ||
===SetMode=== | ===SetMode=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''SetMode''' | ||
|- | |- | ||
| colspan="2" | Sets the animation mode for the button | | colspan="2" | Sets the animation mode for the button | ||
| Line 362: | Line 362: | ||
===SetModeFor=== | ===SetModeFor=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''SetModeFor''' | ||
|- | |- | ||
| colspan="2" | Sets the animation mode for the button | | colspan="2" | Sets the animation mode for the button | ||
| Line 386: | Line 386: | ||
===SetMovement=== | ===SetMovement=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''SetMovement''' | ||
|- | |- | ||
| colspan="2" | Sets the movement in units or PI/16 steps for the button | | colspan="2" | Sets the movement in units or PI/16 steps for the button | ||
| Line 405: | Line 405: | ||
===SetMovementFor=== | ===SetMovementFor=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''SetMovementFor''' | ||
|- | |- | ||
| colspan="2" | Sets the movement in units or PI/16 steps for the button | | colspan="2" | Sets the movement in units or PI/16 steps for the button | ||
| Line 429: | Line 429: | ||
===SetNotify=== | ===SetNotify=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''SetNotify''' | ||
|- | |- | ||
| colspan="2" | Sets the object to notify when the button is pressed or released | | colspan="2" | Sets the object to notify when the button is pressed or released | ||
| Line 453: | Line 453: | ||
===SetPivotPos=== | ===SetPivotPos=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''SetPivotPos''' | ||
|- | |- | ||
| colspan="2" | Sets the position of the object the lever rotates around | | colspan="2" | Sets the position of the object the lever rotates around | ||
| Line 472: | Line 472: | ||
===SetPivotPosFor=== | ===SetPivotPosFor=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''SetPivotPosFor''' | ||
|- | |- | ||
| colspan="2" | Sets the position the lever rotates around for an object | | colspan="2" | Sets the position the lever rotates around for an object | ||
| Line 496: | Line 496: | ||
===Unregister=== | ===Unregister=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Unregister''' | ||
|- | |- | ||
| colspan="2" | Removes the object to the list if present | | colspan="2" | Removes the object to the list if present | ||
| Line 516: | Line 516: | ||
==Property reference== | ==Property reference== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Properties''' | ||
|- | |- | ||
|- | |- | ||
Latest revision as of 14:22, 13 July 2026
| Author | Matrix Ltd |
| Version | 1.1 |
| Category | Helpers |
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
Clear
| Clear | |
| Clears all objects from the lists This leaves no links for the button helper | |
| Return | |
GetState
| GetState | |
| Returns true if the button is depressed, else false | |
| Return | |
GetStateFor
| GetStateFor | |
| Returns true if the button is depressed, else false | |
| Target | |
| Return | |
GetTarget
| GetTarget | |
| Gets the target handle the property links to | |
| Return | |
Register
| Register | |
| Adds the object to the list if not already there | |
| Target | |
| Return | |
SetAutoReset
SetAxis
| SetAxis | |
| Sets the movement axis as an Axis_... constant | |
| Axis | |
| Movement axis to set to, default 4 | |
| Return | |
SetAxisFor
| SetAxisFor | |
| Sets the movement axis as an Axis_... constant | |
| Target | |
| Axis | |
| Movement axis to set to, default 4 | |
| Return | |
SetDisabledPos
| SetDisabledPos | |
| Sets the position of the released button | |
| PositionHandle | |
| A handle to the position of the depressed location | |
| Return | |
SetDisabledPosFor
| SetDisabledPosFor | |
| Sets the disabled position for an object | |
| Target | |
| Position | |
| Return | |
SetEnabledPos
| SetEnabledPos | |
| Sets the position of the depressed button | |
| PositionHandle | |
| A handle to the position of the depressed location | |
| Return | |
SetEnabledPosFor
| SetEnabledPosFor | |
| Sets the enabled position for an object | |
| Target | |
| Position | |
| Return | |
SetLatching
| SetLatching | |
| Sets whether the button is depressed when the mouse is released | |
| Enabled | |
| Return | |
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 | |
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 | |
SetMovementFor
| SetMovementFor | |
| Sets the movement in units or PI/16 steps for the button | |
| Target | |
| Move | |
| Movement to set to, default 4 | |
| Return | |
SetNotify
SetPivotPos
| SetPivotPos | |
| Sets the position of the object the lever rotates around | |
| PositionHandle | |
| A handle to the position of the depressed location | |
| Return | |
SetPivotPosFor
| SetPivotPosFor | |
| Sets the position the lever rotates around for an object | |
| Target | |
| Position | |
| Return | |
Unregister
| Unregister | |
| Removes the object to the list if present | |
| Target | |
| Return | |
Property reference
| Properties | |
| Host component | |
| Lever pivot | |