Index |
---|
The Lable and how to create it The Parameters Lable Functions Important Info |
The Lable inherits from the control class. It is one of the many ways for an application to output information to the user. A lable is verry
common in GUI applications as a way to output information in the form of a string.
--Lable:
f1 = form(10, 10, 100, 100, false, "Main", color.white, color.AirForceBlue, true, false, false, false, false, false, true)
lblMyLable = lable(1, 1, "My Lable!", 9, color.red, f1)
--Lable with multiline:
lblMyLable = lable(1, 1, "My Lable!~Is cool", 6, color.red, f1) --I use '~' to denote a new line.
The code is exactly how you would create a Lable. You must have a form created in order to store your lable, as with any other derivative of
the control class. As always you can declare any class two ways and if you dont remember how, read the forms reference here: Forms
The images below shows what the lables declared above looks like.
The Lable parameters are as follows:
Parameter | Description |
---|---|
int x | The x location of the lable on the screen. |
int y | The y location of the lable on the screen. |
string text | Sets the lables text to the string that was entered. |
int txtsize | Sets the lables text size. (Must be >= 6) |
color color | Sets the lable's text color. |
form parent | The form that the lable will be visible on. |
If you dont know the keywords, go here: Forms
Here are the diffrent functions that you can call that do something with lables:
Function | Description | Call example |
---|---|---|
none | none | none |
Fun fact, the only thing I changed in lables since there creation is giving them multiline capabilities,
otherwise they are exactly the same as in WZGUILib 1.0.