Component: Button helper (Helpers)
Appearance
| 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
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 | |