command | ID of the button. |
state | State of button (BUTTON_ENABLED, BUTTON_HOVER, BUTTON_PRESSED, BUTTON_DISABLED) |
Returns the new Button.It's necessary, because other attributes of button has to set by Method
Description-
-
Return value-
Description
Draw all active buttons. Use in mainloop.
FontID:Byte | Use ID of Font, loaded with TButton.LoadFont(). |
-
Description
Use SetFont method to allocates a font to the button. The font has to been loaded with TButton.LoadFont() before.
For setting the attributes of button use Button:TButton =TButton.Create(command) before to create the button. Then all attributes could be adjust by this methods:
imageID | ID of button gfx. Has to load with TButton.LoadImage() before. |
-
Description
Use method to set a gfx ID for button. Image has to been loaded with TButton.LoadImage before.
For setting the attributes of button use Button:TButton =TButton.Create(command) before to create the button. Then all attributes could be adjust by this methods:
x | X-coordinate of button |
y | X-coordinate of button |
-
Description
Use method to set coordinates of button.
For setting the attributes of button use Button:TButton =TButton.Create(command) before to create the button. Then all attributes could be adjust by this methods:
ScaleX:Float | horizontal scale faktor. 1.0 = 100%. Values below zero mirror the button |
-
Description
For easy and flexible use it's possible to resize the button (if the graphic-file is able for it). Use SetScaleX to set the horizontal scale faktor. 1.0 means 100% and values below zero are mirroring the button.
For setting the attributes of button use Button:TButton =TButton.Create(command) before to create the button. Then all attributes could be adjust by this methods:
ScaleX:Float | vertical scale faktor. 1.0 = 100%. Values below zero mirror the button |
-
Description
For easy and flexible use it's possible to resize the button (if the graphic-file is able for it). Use SetScaleX to set the vertical scale faktor. 1.0 means 100% and values below zero are mirroring the button.
For setting the attributes of button use Button:TButton =TButton.Create(command) before to create the button. Then all attributes could be adjust by this methods:
Button_Text:String | ][left_justified:Byte| |
-
Description-