OpenSpace3D libs
OpenSpace 3D libraries for plugITs and OS3D developer
Functions

Functions

 setEdCtrlButtonEnable (ctrlstr, state)
 Enable or disable a button control.
 
 triggerEdCtrlButton (ctrlstr)
 Trigger a button callback.
 
 setEdCtrlButtonCb (ctrlstr, cbfun)
 Set the callback on button control click.
 
 setEdCtrlButtonBitmap (ctrlstr, bitmap)
 Set the bitmap of a button control.
 
 crEdCtrlButtonBitmap (winstr, x, y, w, h, bitmap, resize)
 Create a button bitmap control.
 
 setEdCtrlButtonValue (ctrlstr, value)
 Set the text value of a button control.
 
 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()

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

◆ triggerEdCtrlButton()

triggerEdCtrlButton ( ctrlstr  )

Trigger a button callback.

Prototype: fun [EdControl] I

Parameters
EdControl: button control structure
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

◆ setEdCtrlButtonBitmap()

setEdCtrlButtonBitmap ( ctrlstr  ,
bitmap   
)

Set the bitmap of a button control.

Prototype: fun [EdControl ObjBitmap] I

Parameters
EdControl: button control structure
ObjBitmap: bitmap to use on the button
Returns
I : 0

◆ crEdCtrlButtonBitmap()

crEdCtrlButtonBitmap ( winstr  ,
,
,
,
,
bitmap  ,
resize   
)

Create a button bitmap control.

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

Parameters
EdWindow: mother window structure
I: X position
I: Y position
I: width
I: height
ObjBitmap: bitmap
I: resize flags
Returns
EdControl : new button control

◆ setEdCtrlButtonValue()

setEdCtrlButtonValue ( ctrlstr  ,
value   
)

Set the text value of a button control.

Prototype: fun [EdControl S] I

Parameters
EdControl: button control structure
S: text value
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