Creation/Dev/Script/Client/GuiButtonCtrl: Difference between revisions
From Graal Bible
No edit summary |
(Added picture, description and an example script) |
||
Line 1: | Line 1: | ||
Inherits [[Creation/Dev/Script/Client/GuiButtonBaseCtrl|GuiButtonBaseCtrl]]. | Inherits [[Creation/Dev/Script/Client/GuiButtonBaseCtrl|GuiButtonBaseCtrl]]. | ||
=Description= | |||
[[Image:Guicontrol_button.png]] | |||
This displays a button, optionally with icon. The look of the button is specified using the [[Creation/Dev/Script/Client/GuiControlProfile|profile]]. | |||
Line 18: | Line 24: | ||
| | | | ||
|} | |} | ||
=Example= | |||
new GuiButtonCtrl("Test_Button") { | |||
profile = GuiBlueButtonProfile; | |||
x = 10; | |||
y = 10; | |||
width = 100; | |||
height = 30; | |||
text = "Button"; | |||
} |
Revision as of 17:40, 16 September 2006
Inherits GuiButtonBaseCtrl.
Description
This displays a button, optionally with icon. The look of the button is specified using the profile.
Variables
icon - TDrawingPanel
Functions
Name | Return Type | Description |
seticonsize(int, int) |
Example
new GuiButtonCtrl("Test_Button") { profile = GuiBlueButtonProfile; x = 10; y = 10; width = 100; height = 30; text = "Button"; }