Button control
[OpenSpace3D high level 2D library]

Functions

 setEdCtrlButtonEnable (ctrlstr, state)
 Enable or disable a button control.
 setEdCtrlButtonCb (ctrlstr, cbfun)
 Set the callback on button control click.
 crEdCtrlButton (winstr, x, y, w, h, value, resize)
 Create a button control.
 dsEdCtrlButton (ctrlstr)
 Destroy a button control.

Detailed Description

Button control


Function Documentation

setEdCtrlButtonEnable ( ctrlstr  ,
state   
)

Enable or disable a button control.

Prototype: fun [EdControl I] I

Parameters:
EdControl : button control structure
I : state, 0 to disable, 1 to enable
Returns:
I : 0
setEdCtrlButtonCb ( ctrlstr  ,
cbfun   
)

Set the callback on button control click.

Prototype: fun [EdControl fun [EdControl] I] I

Parameters:
EdControl : button control structure
fun [EdControl] I : callback

Returns:
I : 0
crEdCtrlButton ( winstr  ,
,
,
,
,
value  ,
resize   
)

Create a button control.

Prototype: fun [EdWindow I I I I S I] EdControl

Parameters:
EdWindow : mother window structure
I : X position
I : Y position
I : width
I : height
S : text value
I : resize flags
Returns:
EdControl : new button control
dsEdCtrlButton ( ctrlstr   ) 

Destroy a button control.

Prototype: fun [EdControl] I

Parameters:
EdControl : button control structure
Returns:
I : 0
 All Data Structures Files Functions Variables Typedefs
Generated on Mon Jul 5 21:30:13 2010 for OpenSpace3D libs by  doxygen 1.6.3