Project

General

Profile

OpenSpace3D libs
OpenSpace 3D libraries for plugITs and OS3D developer

Functions

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

Detailed Description

Button control

Function Documentation

◆ setEdCtrlButtonEnable()

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

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

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

dsEdCtrlButton ( ctrlstr  )

Destroy a button control.

Prototype: fun [EdControl] I

Parameters
EdControl: button control structure
Returns
I : 0