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

Functions

 getEdCtrlTextValue (ctrlstr)
 Get a text control value.
 
 getEdCtrlTextLineCount (ctrlstr)
 Get the number of lines in a text control.
 
 scrollEdCtrlText (ctrlstr, col, line)
 Scroll a text control to the specified column and line position.
 
 removeEdCtrlTextLine (ctrlstr, line)
 Remove the line in a text control.
 
 setEdCtrlTextValue (ctrlstr, val)
 Set a text control value.
 
 addEdCtrlTextValue (ctrlstr, val)
 Add a line to a text control.
 
 setEdCtrlTextEnable (ctrlstr, state)
 Enable or disable a text control.
 
 setEdCtrlTextCbChange (ctrlstr, cbfun)
 Set the callback on text control change.
 
 crEdCtrlText (winstr, x, y, w, h, value, flags, resize)
 Create a text control.
 
 dsEdCtrlText (ctrlstr)
 Destroy a text control.
 

Detailed Description

Text control

Function Documentation

◆ getEdCtrlTextValue()

getEdCtrlTextValue ( ctrlstr  )

Get a text control value.

Prototype: fun [EdControl] S

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

◆ getEdCtrlTextLineCount()

getEdCtrlTextLineCount ( ctrlstr  )

Get the number of lines in a text control.

Prototype: fun [EdControl] I

Parameters
EdControl: text control structure
Returns
I : the number of lines in the text control

◆ scrollEdCtrlText()

scrollEdCtrlText ( ctrlstr  ,
col  ,
line   
)

Scroll a text control to the specified column and line position.

Prototype: fun [EdControl I I] I

Parameters
EdControl: text control structure
I: the column position
I: the line position
Returns
I : 0

◆ removeEdCtrlTextLine()

removeEdCtrlTextLine ( ctrlstr  ,
line   
)

Remove the line in a text control.

Prototype: fun [EdControl I] I

Parameters
EdControl: text control structure
I: the line position to remove
Returns
I : 0

◆ setEdCtrlTextValue()

setEdCtrlTextValue ( ctrlstr  ,
val   
)

Set a text control value.

Prototype: fun [EdControl S] I

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

◆ addEdCtrlTextValue()

addEdCtrlTextValue ( ctrlstr  ,
val   
)

Add a line to a text control.

Prototype: fun [EdControl S] I

Parameters
EdControl: text control structure
S: text line to add
Returns
I : 0

◆ setEdCtrlTextEnable()

setEdCtrlTextEnable ( ctrlstr  ,
state   
)

Enable or disable a text control.

Prototype: fun [EdControl I] I

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

◆ setEdCtrlTextCbChange()

setEdCtrlTextCbChange ( ctrlstr  ,
cbfun   
)

Set the callback on text control change.

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

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

◆ crEdCtrlText()

crEdCtrlText ( winstr  ,
,
,
,
,
value  ,
flags  ,
resize   
)

Create a 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 text control

◆ dsEdCtrlText()

dsEdCtrlText ( ctrlstr  )

Destroy a text control.

Prototype: fun [EdControl] I

Parameters
EdControl: text control structure
Returns
I : 0