Text control
[OpenSpace3D high level 2D library]

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

Get a text control value.

Prototype: fun [EdControl] S

Parameters:
EdControl : text control structure
Returns:
S : the text control value
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 ( 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 ( 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 ( ctrlstr  ,
val   
)

Set a text control value.

Prototype: fun [EdControl S] I

Parameters:
EdControl : text control structure
S : text value
Returns:
I : 0
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 ( 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 ( 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 ( 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 ( ctrlstr   ) 

Destroy a text control.

Prototype: fun [EdControl] I

Parameters:
EdControl : text control structure
Returns:
I : 0
 All Data Structures Files Functions Variables Typedefs
Generated on Mon Jul 5 21:30:13 2010 for OpenSpace3D libs by  doxygen 1.6.3