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

Modules

 EdToolBar flags
 

Functions

 setEdToolBarText (t, cmptxt, val, txtcolor)
 Set a toolbar text value.
 
 crEdToolBarText (t, txt, fontname, fontsize, fontflag, txtcolor, flags, align)
 Create a toolbar text element.
 
 setEdToolBarCheckState (t, chk, state)
 Change the toolbar check element state.
 
 setEdToolBarCheckEnable (t, chk, state)
 Enable or disable the toolbar check element.
 
 setEdToolBarCheckCbClick (t, check, cbclick)
 Set the toolbar check element click callback.
 
 setEdToolBarCheckToolTip (t, check, bubble)
 Set the toolbar check element tooltip content.
 
 crEdToolBarCheck (t, abmp, align, bubble, cbclick)
 Create a toolbar check element.
 
 setEdToolBarButtonEnable (t, btn, state)
 Enable or disable the toolbar button element.
 
 setEdToolBarButtonCbClick (t, button, cbclick)
 Set the toolbar button element click callback.
 
 setEdToolBarButtonToolTip (t, check, bubble)
 Set the toolbar button element tooltip content.
 
 crEdToolBarButton (t, abmp, align, bubble, cbclick)
 Create a toolbar button element.
 
 setEdToolBarBitmapToolTip (t, check, bubble)
 Set the toolbar bitmap element tooltip content.
 
 crEdToolBarBitmap (t, abmp, align, bubble, cbclick)
 Create a toolbar bitmap element.
 
 sizeEdToolBar (t, x, y, w, h)
 Resize a toolbar.
 
 paintEdToolBar (t)
 Paint a toolbar.
 
 setEdToolBarDbClick (t, cbfun)
 Set the toolbar double click Callback.
 
 setEdToolBarClick (t, cbfun)
 Set the toolbar click Callback.
 
 setEdToolBarVisible (t, mode)
 Set the toolbar visibility.
 

Detailed Description

Toolbar control

Function Documentation

◆ setEdToolBarText()

setEdToolBarText ( ,
cmptxt  ,
val  ,
txtcolor   
)

Set a toolbar text value.

Prototype: fun [EdToolBar CompText S I] I

Parameters
EdToolBar: tool bar structure
CompText: toolbar element contain text
S: text value to set
I: text color
Returns
I : 0

◆ crEdToolBarText()

crEdToolBarText ( ,
txt  ,
fontname  ,
fontsize  ,
fontflag  ,
txtcolor  ,
flags  ,
align   
)

Create a toolbar text element.

Prototype: fun [EdToolBar S S I I I I I] CompText

Parameters
EdToolBar: tool bar structure
S: text value to set
S: font name for the text
I: font size
I: font flags (FF_WEIGHT, FF_ITALIC, FF_UNDERLINE, FF_STRIKED, FF_PIXEL)
I: text color
I: CompText creation flags
I: toolbar align flag (ETB_ALIGN_LEFT, ETB_ALIGN_RIGHT, ETB_ALIGN_BOTTOM, ETB_ALIGN_TOP)
Returns
CompText : the new text element

◆ setEdToolBarCheckState()

setEdToolBarCheckState ( ,
chk  ,
state   
)

Change the toolbar check element state.

Prototype: fun [EdToolBar CompCheck I] I

Parameters
EdToolBar: tool bar structure
CompCheck: check element
I: new state, 0 for unchecked, 1 for checked
Returns
I : 0

◆ setEdToolBarCheckEnable()

setEdToolBarCheckEnable ( ,
chk  ,
state   
)

Enable or disable the toolbar check element.

Prototype: fun [EdToolBar CompCheck I] I

Parameters
EdToolBar: tool bar structure
CompCheck: check element
I: new state, 0 for disabled, 1 for enabled
Returns
I : 0

◆ setEdToolBarCheckCbClick()

setEdToolBarCheckCbClick ( ,
check  ,
cbclick   
)

Set the toolbar check element click callback.

Prototype: fun [EdToolBar CompCheck fun [EdToolBar CompCheck I I I] I ] I

Parameters
EdToolBar: tool bar structure
CompCheck: check element
fun[EdToolBar CompCheck I I I] I : callback on click
Returns
I : 0

◆ setEdToolBarCheckToolTip()

setEdToolBarCheckToolTip ( ,
check  ,
bubble   
)

Set the toolbar check element tooltip content.

Prototype: fun [EdToolBar CompCheck S ] I

Parameters
EdToolBar: tool bar structure
CompCheck: check element
S: tooltip text
Returns
I : 0

◆ crEdToolBarCheck()

crEdToolBarCheck ( ,
abmp  ,
align  ,
bubble  ,
cbclick   
)

Create a toolbar check element.

Prototype: fun [EdToolBar AlphaBitmap I S fun [EdToolBar CompCheck I I I] I] CompCheck

Parameters
EdToolBar: tool bar structure
AlphaBitmap: alpha bitmap to use as graphic check
I: toolbar align flag (ETB_ALIGN_LEFT, ETB_ALIGN_RIGHT, ETB_ALIGN_BOTTOM, ETB_ALIGN_TOP)
S: tooltip text
fun[EdToolBar CompCheck I I I] I : callback on click
Returns
I : 0

◆ setEdToolBarButtonEnable()

setEdToolBarButtonEnable ( ,
btn  ,
state   
)

Enable or disable the toolbar button element.

Prototype: fun [EdToolBar CompRollOver I] I

Parameters
EdToolBar: tool bar structure
CompRollOver: button element
I: new state, 0 for disabled, 1 for enabled
Returns
I : 0

◆ setEdToolBarButtonCbClick()

setEdToolBarButtonCbClick ( ,
button  ,
cbclick   
)

Set the toolbar button element click callback.

Prototype: fun [EdToolBar CompRollOver fun [EdToolBar CompRollOver I I] I ] I

Parameters
EdToolBar: tool bar structure
CompRollOver: button element
fun[EdToolBar CompRollOver I I] I : callback on click
Returns
I : 0

◆ setEdToolBarButtonToolTip()

setEdToolBarButtonToolTip ( ,
check  ,
bubble   
)

Set the toolbar button element tooltip content.

Prototype: fun [EdToolBar CompRollOver S ] I

Parameters
EdToolBar: tool bar structure
CompRollOver: button element
S: tooltip text
Returns
I : 0

◆ crEdToolBarButton()

crEdToolBarButton ( ,
abmp  ,
align  ,
bubble  ,
cbclick   
)

Create a toolbar button element.

Prototype: fun [EdToolBar AlphaBitmap I S fun [EdToolBar CompRollOver I I] I] CompRollOver

Parameters
EdToolBar: tool bar structure
AlphaBitmap: alpha bitmap to use as graphic button
I: toolbar align flag (ETB_ALIGN_LEFT, ETB_ALIGN_RIGHT, ETB_ALIGN_BOTTOM, ETB_ALIGN_TOP)
S: tooltip text
fun[EdToolBar CompRollOver I I] I : callback on click
Returns
CompRollOver : new button

◆ setEdToolBarBitmapToolTip()

setEdToolBarBitmapToolTip ( ,
check  ,
bubble   
)

Set the toolbar bitmap element tooltip content.

Prototype: fun [EdToolBar CompBitmap S ] I

Parameters
EdToolBar: tool bar structure
CompBitmap: bitmap element
S: tooltip text
Returns
I : 0

◆ crEdToolBarBitmap()

crEdToolBarBitmap ( ,
abmp  ,
align  ,
bubble  ,
cbclick   
)

Create a toolbar bitmap element.

Prototype: fun [EdToolBar AlphaBitmap I S fun [EdToolBar I I I] I] CompRollOver

Parameters
EdToolBar: tool bar structure
AlphaBitmap: alpha bitmap to use as graphic bitmap
I: toolbar align flag (ETB_ALIGN_LEFT, ETB_ALIGN_RIGHT, ETB_ALIGN_BOTTOM, ETB_ALIGN_TOP)
S: tooltip text
fun[EdToolBar I I I] I : callback on click
Returns
I : 0

◆ sizeEdToolBar()

sizeEdToolBar ( ,
,
,
,
 
)

Resize a toolbar.

Prototype: fun [EdToolBar I I I I] I

Parameters
EdToolBar: tool bar structure
I: X position
I: Y position
I: width
I: height
Returns
I : 0

◆ paintEdToolBar()

paintEdToolBar ( )

Paint a toolbar.

Prototype: fun [EdToolBar] I

Parameters
EdToolBar: tool bar structure
Returns
I : 0

◆ setEdToolBarDbClick()

setEdToolBarDbClick ( ,
cbfun   
)

Set the toolbar double click Callback.

Prototype: fun [EdToolBar fun [EdToolBar I I I I] I]] I

Parameters
EdToolBar: tool bar structure
fun[EdToolBar I I I I] I : double click callback
Returns
I : 0

◆ setEdToolBarClick()

setEdToolBarClick ( ,
cbfun   
)

Set the toolbar click Callback.

Prototype: fun [EdToolBar fun [EdToolBar I I I I] I]] I

Parameters
EdToolBar: tool bar structure
fun[EdToolBar I I I I] I : click callback
Returns
I : 0

◆ setEdToolBarVisible()

setEdToolBarVisible ( ,
mode   
)

Set the toolbar visibility.

Prototype: fun [EdToolBar I] I

Parameters
EdToolBar: tool bar structure
I: 0 for hide, 1 for show
Returns
I : 0