Skip to content

7. Member functions not related to a property

Gabriel Inzirillo edited this page Dec 3, 2020 · 2 revisions

List of member functions not attached to a property

DEPRACATED

The descriptions here are only keep in compatibility if you are not using the AJUI_Button class.

Draw ( ) : Generates the button that corresponds to the current state.

Enable (isActive) : Makes the picture form object active/inactive and switches the button to "disable" state if inactive. Expects a Boolean as a parameter. Automatically launches the "Draw" method.

Export (templateName { ; TemplateFolderPath}) : Allows you to create a template of your AJUI Button object in a file in JSON format. The formula requires in the first parameter the name associated with the template (file name). A second optional parameter allows you to specify the folder path, otherwise it will be exported to the default folder (.../Resources/AJUI_Button_Templates/).

Hide ( ) : Hide the button.

RemovePropertyException (formula ; state) : allows you to delete an exception related to a property. The name of the formula related to the property must be set as the first parameter. The second parameter corresponds to the state.

RemovePropertyException (formula ) : Allows you to delete all exceptions related to a property. The name of the formula related to the property must be set as the first parameter.

ResetAllStates ( ) : Allows you to delete all the exceptions.

ResetState (state) : Allows you to delete all the exceptions of a state. You must pass the constant corresponding to the state in the parameter (does not apply to the default state).

Show ( ) : Display the button.

❗️ Note that the Enable, Hide and Show member functions are actually wrappers for both 4D methods "OBJECT SET VISIBLE " and "OBJECT SET ENABLE". You can use them directly if you like.