Project

General

Profile

Previous Up Next

_CRcompList
Creation of a CompList

CompList _CRcompList (
Chn _channel_
ObjContainer _container_
ObjNode _father_
[I I] _coordinates_
I _flags_
I _filterflags_
I _width_
I _height_
I _items_
I _direction_
ObjFont _font_
I _shift_
[I I I I] _textparams_
[I I] _selectionparams_
[[I I] I AlphaBitmap [I I I]] _vslide_
)
Parameters

_channel_
proprietary channel
_container_
container in which to create the object
_father_
father ObjNode
_coordinates_
object coordinates in container
_flags_
can be a combination of following values :
Value Meaning
OBJ_ENABLE object is enabled
OBJ_DISABLE object is disabled
OBJ_HIDE object is hidden
OBJ_VISIBLE object is visible
OBJ_CBNOPAINT object is not repaint before user callbacks
OBJ_TABSTOP object is in the "tab stop" list
OBJ_LW_FLEX left margin from container border to object is flexible
OBJ_MW_FLEX object width is flexible
OBJ_RW_FLEX right margin from object to container border is flexible
OBJ_LH_FLEX top margin from container to object is flexible
OBJ_MH_FLEX object height is flexible
OBJ_RH_FLEX bottom margin from object to container is flexible
LST_LEFT items are ranged left (default)
LST_RIGHT items are ranged right
LST_TOP items are ranged top
LST_BOTTOM items are ranged bottom
LST_IMG_RIGHT bitmaps are ranged right
LST_IMG_TOP bitmaps are ranged top
LST_IMG_BOTTOM bitmaps are ranged bottom
LST_HIGHLIGHT_SELECTED item under mouse cursor is highlighted
LST_HIGHLIGHT_CLICKED clicked item is highlighted
_filterflags_
defines how events are relayed to container, can be any combination of following values :
Value Meaning
OBJ_CONTAINER_CLICK mouse click event is relayed to container click callback
OBJ_CONTAINER_UNCLICK mouse unclick event is relayed to container unclick callback
OBJ_CONTAINER_DBLCLICK mouse double-click event is relayed to container double-click callback
OBJ_CONTAINER_KEYUP keyup event is relayed to container keyup callback
OBJ_CONTAINER_KEYDOWN keydown event is relayed to container keydown callback
OBJ_CONTAINER_MOUSEWHEEL mouse wheel event is relayed to container mouse wheel callback
OBJ_CONTAINER_MOVE mouse move event is relayed to container mouse move callback
OBJ_CONTAINER_ALLEVENTS Activates all nodes' event forwardings: clicks, keys, wheel, move
_width_
object width
_height_
object height
_items_
number of items to place in object specified height
_direction_
direction of slidebar, can be one of the following values :
Value Meaning
LST_VERTICAL vertical slidebar
LST_HORIZONTAL horizontal slidebar
_font_
text font
_shift_
text shift in pixels (to reserve spacing for bitmaps for example)
_textparams_
format parameters are :
text color
text transparency where 0 stands for opaque and 100 for transparent
shadow value where 0 stands for no shadow and any positive integer value for the shift in pixels
shadow color
_selectionparams_
selection parameters are :
selection color
selection transparency where 0 stands for opaque and 100 for transparent
_vslide_
vertical slide bar parameters are :
[x y] slide bar position shift from text object position
flags can be any combination of following values :
Value Meaning
OBJ_LW_FLEX left margin from container border to object is flexible
OBJ_MW_FLEX object width is flexible
OBJ_RW_FLEX right margin from object to container border is flexible
OBJ_LH_FLEX top margin from container to object is flexible
OBJ_MH_FLEX object height is flexible
OBJ_RH_FLEX bottom margin from object to container is flexible
SLB_DISABLE object has a disabled state
SLB_MASK object has a mask state
SLB_ROLLOVER object acts as a rollover
graphic resource for vertical slide bar
offsets for vertical slide bar, defines the three offsets in graphical resource corresponding to first pixel of slidebar body, first pixel of bottom (or right) arrow and first pixel of cursor
Return value

new CompList