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

Functions

 fillEdCtrlSelect (ctrlstr, lparam)
 Fill a select box control.
 
 addEdCtrlSelect (ctrlstr, param)
 Add an element to a select box control.
 
 resetEdCtrlSelect (ctrlstr)
 Reset/Clear a select box control.
 
 selectEdCtrlSelect (ctrlstr, name)
 Select an element in a select box control.
 
 selectEdCtrlSelectByPos (ctrlstr, pos)
 Select an element in a select box control by position.
 
 getSelectedEdCtrlSelect (ctrlstr)
 Get the selected element of a select box control.
 
 getSelectedEdCtrlSelectPos (ctrlstr)
 Get the selected element position of a select box control.
 
 setEdCtrlSelectEnable (ctrlstr, state)
 Enable or disable a select box control.
 
 setEdCtrlSelectCb (ctrlstr, cbfun)
 Set the callback on select box control selected.
 
 crEdCtrlSelect (winstr, x, y, w, h, resize)
 Create a select box control.
 
 dsEdCtrlSelect (ctrlstr)
 Destroy a select box control.
 

Detailed Description

Select control

Function Documentation

◆ fillEdCtrlSelect()

fillEdCtrlSelect ( ctrlstr  ,
lparam   
)

Fill a select box control.

Prototype: fun [EdControl [S r1]] I

Parameters
EdControl: select control structure
[Sr1] : list of elements
Returns
I : 0

◆ addEdCtrlSelect()

addEdCtrlSelect ( ctrlstr  ,
param   
)

Add an element to a select box control.

Prototype: fun [EdControl S] I

Parameters
EdControl: select control structure
S: element to add
Returns
I : 0

◆ resetEdCtrlSelect()

resetEdCtrlSelect ( ctrlstr  )

Reset/Clear a select box control.

Prototype: fun [EdControl] I

Parameters
EdControl: select control structure
Returns
I : 0

◆ selectEdCtrlSelect()

selectEdCtrlSelect ( ctrlstr  ,
name   
)

Select an element in a select box control.

Prototype: fun [EdControl S] I

Parameters
EdControl: select control structure
S: element to select
Returns
I : 0

◆ selectEdCtrlSelectByPos()

selectEdCtrlSelectByPos ( ctrlstr  ,
pos   
)

Select an element in a select box control by position.

Prototype: fun [EdControl I] I

Parameters
EdControl: select control structure
I: element position to select
Returns
I : 0

◆ getSelectedEdCtrlSelect()

getSelectedEdCtrlSelect ( ctrlstr  )

Get the selected element of a select box control.

Prototype: fun [EdControl] S

Parameters
EdControl: select control structure
Returns
S : selected element

◆ getSelectedEdCtrlSelectPos()

getSelectedEdCtrlSelectPos ( ctrlstr  )

Get the selected element position of a select box control.

Prototype: fun [EdControl] I

Parameters
EdControl: select control structure
Returns
I : selected element position

◆ setEdCtrlSelectEnable()

setEdCtrlSelectEnable ( ctrlstr  ,
state   
)

Enable or disable a select box control.

Prototype: fun [EdControl I] I

Parameters
EdControl: select control structure
I: state, 0 to disable, 1 to enable
Returns
I : 0

◆ setEdCtrlSelectCb()

setEdCtrlSelectCb ( ctrlstr  ,
cbfun   
)

Set the callback on select box control selected.

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

Parameters
EdControl: radio box control structure
fun[EdControl I S] I : callback
  • EdControl : select control structure
  • I : element position
  • S : element name
Returns
I : 0

◆ crEdCtrlSelect()

crEdCtrlSelect ( winstr  ,
,
,
,
,
resize   
)

Create a select box control.

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

Parameters
EdWindow: mother window structure
I: X position
I: Y position
I: width
I: height
I: resize flags
Returns
EdControl : new select box control

◆ dsEdCtrlSelect()

dsEdCtrlSelect ( ctrlstr  )

Destroy a select box control.

Prototype: fun [EdControl] I

Parameters
EdControl: select control structure
Returns
I : 0