|
|
|
|
Functions
Events
MioScript Reference
|
|
Syntax
| pushButton.create(ParentID, x,y, width,height, label, groupName, color) |
Parameters
| ID | ParentID | ID of the parent window.
| | INT,INT | x,y | Position of the control in the window, in pixels.
| | INT,INT | width,height | Size of the control, in pixels.
| | STRING | label | Label of the push button.
| | STRING | groupName | Optional. Name of a group of push button. This name is used to distinguish the events depending of its group.
| | COLOR | color | Optional. Color of the button. More info: num.rgb |
Return value
| ID of the new push button. |
Description
Creates a push button with rollover effect.
The event pushButton:mouse:click is raised when the user click on a push button.
|
MioScript Sample Code
&myButton = pushButton.create(10,10,100,25, "Ok")
// Specifying a color
pushButton.create(main,10,50,100,25,"Push Button",
null, num.rgb(255,200,100)) |
|
|
|