Description |
XContainerInfo is a class to set/query general attributes for a XContainerControl. To make changes to the settings:
XContainerInfo |
char * theTitle | The title of the container. Default is empty. | ||||||||||||||||||||||||||||||||||||
LONG theStyle | style of the container. Valid styles are:
The attributes can be or-ed Default is CO_ICON. |
Constructor of XContainerInfo
EnableSorting |
BOOL sort Set TRUE if the container items should be sorted when they are inserted. Therefor you must override the method XContainerObject::Sort. Default is TRUE.
Enables sorting records when they are inserted.
GetBitmapSize |
XSize * size buffer to hold the size
Query the size of bitmaps/icons
GetObjectCount |
LONG objectCount
Query the count of objects in the container.
SetBitmapSize |
XSize * size
Set the size of bitmaps/icons
SetCollapsedBitmap |
XIcon * the new icon
XBitmap * the new bitmap
Replace the collapsed-icon.
Replace the collapsed-bitmap.
SetExpandedBitmap |
XIcon * the new icon
XBitmap * the new bitmap
Replace the expanded-icon.
Replace the expanded-bitmap.
SetSpacing |
SHORT spacing (in pixels)
Set the vertical spacing between two objects.
SetTreeBitmapSize |
XSize * size
Set the size of the expanded and collapsed bitmaps/icons in tree-view
SetTreeLineSpacing |
SHORT width (in pixels)
Set the horizontal spacing between two levels in tree-view.
SetTreeLineWidth |
SHORT width (in pixels)
Set the width of the trees line in tree-view.
EnableBackgroundPainting |
BOOL enable TRUE=enable, FALSE=disable
Enable/disable background drawing by the application. To draw the background you must install a XBackgroundDrawHandler
IsBackgroundPaintingEnabled |
BOOL result
Query if owner-draw for the background is enabled or not.
SetAttributes |
LONG newAttributes attributes how the container should be displayed ( see XContainerInfo() )
Specify here how the container should be displayed. After you have set up the XContainerInfo use XContainerColumn::SetInfo()
GetAttributes |
LONG theAttributes the attributes which are set for the container (can be or-ed). See XContainerInfo()
Query the attributes of the container.
GetTitle |
XString * theTitleBuffer here the title will be stored
Query the containers title
SetTitle |
char * theTitle
Set the title of the container.
GetSplitbarPos |
LONG the position in window-pixels
Query the position of the splitbar of a container.
SetSplitbarColumn |
XContainerColumn * theColumn the XContainerColumn after that the splitbar will be displayed
Set a splitbar in a container.
SetSplitbarPos |
LONG position the position in window-pixels
Set the position of the splitbar of a container.