Represents a button in a form. If set_is_togglebutton(True) was called, this button toggles, otherwise it will go to non-pushed state after being clicked
Inherits from hk_dsvisible.
. when the button is pushed the action will be executed on the object Allowed actions are:
The parameter 'object' is the name of the used object e.g. a form name (if you want to open a form).
The parameter 'showmaximized': if true show the window maximized else show the new window in its origin or default size.
The parameter 'registerchange': if this button is part of a form and any registerchange is true, the changes will be stored when you close the window
Example: to open the form "test" use
. The same as the function above, except that 'action' is anumeric value. Allowed values are:
returns the set object name.
returns the set action number. For a detailled list see set_action
returns wether the used object will be displayed maximized. This value is set with set_object()
At least a database object of type hk_database has to be set to be able to automatically load forms etc.
returns the set hk_database object.
if istoggle is True, the button will remain in its pushed or non-pushed state after clicking, else it will always switch back to non-pushed state
returns whether or not this is a toggle button
if this is a togglebutton you can set its default state. If ispushed is True it will start as a pushed button
returns whether or not this togglebutton is in pushed state. If this button is not a togglebutton the result is undefined.