Mioplanet Documentation Center
Resources and Help
HomeProductsMioScriptJavaScriptTechNotesPHP
   Home | MioScript | pushButton.create SEARCH    

  Functions
pushButton.create
pushButton.text.get
pushButton.text.set

  Events
pushButton:mouse:click

  MioScript Reference
> Statements
app...
browser...
dialog...
disk...
draw...
extern...
filename...
keyboard...
menu...
mio...
mouse...
num...
path...
pushButton...
reg...
RS232...
sci...
screen...
shortcut...
sound...
str...
system...
time...
var...
window...

Function
pushButton.create

Language: MioScript
Product: MioFactory


Syntax

pushButton.create(ParentID, x,y, width,height, label, groupName, color)


Parameters

IDParentIDID of the parent window.
INT,INTx,yPosition of the control in the window, in pixels.
INT,INTwidth,heightSize of the control, in pixels.
STRINGlabelLabel of the push button.
STRINGgroupNameOptional.
Name of a group of push button.
This name is used to distinguish the events depending of its group.
COLORcolorOptional.
Color of the button. More info: num.rgb


Return value

ID of the new push button.



Description

Creates a push button with rollover effect.

Push Buttons

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))