Creation/Dev/Script/Client/GuiButtonCtrl: Difference between revisions

From Graal Bible
(Added picture, description and an example script)
No edit summary
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[[Category:Scripting Reference]]
Inherits [[Creation/Dev/Script/Client/GuiButtonBaseCtrl|GuiButtonBaseCtrl]].
Inherits [[Creation/Dev/Script/Client/GuiButtonBaseCtrl|GuiButtonBaseCtrl]].



Latest revision as of 00:51, 16 February 2010

Inherits GuiButtonBaseCtrl.

Description

Guicontrol button.png

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";
 }