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

Functions

 getEdCtrlEditTextValue (ctrlstr)
 Get a edit text control value.
 
 setEdCtrlEditTextValue (ctrlstr, val)
 Set a edit text control value.
 
 setEdCtrlEditTextEnable (ctrlstr, state)
 Enable or disable a edit text control.
 
 setEdCtrlEditTextCbChange (ctrlstr, cbfun)
 Set the callback on edit text control change.
 
 crEdCtrlEditText (winstr, x, y, w, h, value, flags, resize)
 Create a edit text control.
 
 dsEdCtrlEditText (ctrlstr)
 Destroy a edit text control.
 

Detailed Description

Edit text control

Function Documentation

◆ getEdCtrlEditTextValue()

getEdCtrlEditTextValue ( ctrlstr  )

Get a edit text control value.

Prototype: fun [EdControl] S

Parameters
EdControl: edit text control structure
Returns
S : the edit text control value

◆ setEdCtrlEditTextValue()

setEdCtrlEditTextValue ( ctrlstr  ,
val   
)

Set a edit text control value.

Prototype: fun [EdControl S] I

Parameters
EdControl: edit text control structure
S: text value
Returns
I : 0

◆ setEdCtrlEditTextEnable()

setEdCtrlEditTextEnable ( ctrlstr  ,
state   
)

Enable or disable a edit text control.

Prototype: fun [EdControl I] I

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

◆ setEdCtrlEditTextCbChange()

setEdCtrlEditTextCbChange ( ctrlstr  ,
cbfun   
)

Set the callback on edit text control change.

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

Parameters
EdControl: edit text control structure
fun[EdControl S] I : callback
  • EdControl : edit text control structure
  • S : new text value
Returns
I : 0

◆ crEdCtrlEditText()

crEdCtrlEditText ( winstr  ,
,
,
,
,
value  ,
flags  ,
resize   
)

Create a edit text control.

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

Parameters
EdWindow: mother window structure
I: X position
I: Y position
I: width
I: height
S: text value
I: ObjText flags, nil for default
I: resize flags
Returns
EdControl : new edit text control

◆ dsEdCtrlEditText()

dsEdCtrlEditText ( ctrlstr  )

Destroy a edit text control.

Prototype: fun [EdControl] I

Parameters
EdControl: edit text control structure
Returns
I : 0