Difference between revisions of "Component: Button helper (Helpers)"
From Flowcode Help
Jump to navigationJump to search| Line 15: | Line 15: | ||
A button overlay that allows any object to behave like a button | A button overlay that allows any object to behave like a button | ||
| − | ==Component | + | ==Component Source Code== |
| − | + | Please click here for the component source code: [https://www.flowcode.co.uk/wikicopy/componentsource/FC_Comp_Source_buttonhelper.fcfx FC_Comp_Source_buttonhelper.fcfx] | |
==Detailed description== | ==Detailed description== | ||
| + | |||
| + | |||
''No detailed description exists yet for this component'' | ''No detailed description exists yet for this component'' | ||
==Examples== | ==Examples== | ||
| + | |||
| + | |||
| Line 471: | Line 475: | ||
|- | |- | ||
| colspan="2" | | | colspan="2" | | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
|} | |} | ||
Revision as of 17:52, 9 November 2022
| 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
Downloadable 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 | |