Library | File

Class uifcTab

# include <uifcTab.h>

class uifcTab
 : public virtual uifcComponent
{
    xaideclare(uifcTab)
    ...
};



Description





Method Summary

voidAddActionListener (uifcTabListener_ptr listener)
 
xboolCanRedraw ()
 
xboolCanResizeWhenNeeded ()
 
xboolCanWrap ()
 
voidCreateTimer (uifcTabTimer_ptr timer, xrstring timerName, xbool writeInTrail)
 
voidDeleteChild (xrstring name)
 
voidDeleteItemsByName (xstringsequence_ptr names)
 
voidDeletePopupMenu ()
 
xboolDoesFocusOnSelection ()
 
xboolDoesSizeByContents ()
 
uifcLabelAlignmentGetButtonPlacement ()
 
xstringGetDragCursorImage ()
 
xstringGetDragItemName ()
 
xstringGetDragNotValidCursorImage ()
 
xstringGetDropItemName ()
 
xstringsequence_ptrGetEnabledItemNameArray ()
 
uifcFontClassGetFontClass ()
 
xstringGetFontName ()
 
xrealGetFontSize ()
 
uifcFontStyleGetFontStyle ()
 
uifcDimension_ptrGetFrameMinimumSize ()
 
uifcPoint_ptrGetFrameOrigin ()
 
uifcRectangle_ptrGetFrameRectangle ()
 
uifcDimension_ptrGetFrameSize ()
 
xstringGetHelpText ()
 
xstringsequence_ptrGetItemHelpTextArray ()
 
xstringsequence_ptrGetItemImageArray ()
 
xstringsequence_ptrGetItemNameArray ()
 
xstringsequence_ptrGetItemTextArray ()
 
uifcColors_ptrGetItemTextColorArray ()
 
xstringGetMostRecentItemName ()
 
uifcRectangle_ptrGetRectangleOfMonitor ()
 
uifcPoint_ptrGetScreenOrigin ()
 
uifcRectangle_ptrGetScreenRectangle ()
 
xstringsequence_ptrGetSelectedItemNameArray ()
 
uifcAlignmentGetTextAlignment ()
 
xstringsequence_ptrGetVisibleItemNameArray ()
 
xboolHasBorder ()
 
xboolHasVariableSize ()
 
xintInsertChild (uifcComponent_ptr component)
 
voidInsertItem (uifcTabItem_ptr tabitem, uifcItemPositionData_ptr item_pos_data)
 
voidInsertItems (uifcTabItems_ptr tabitems, uifcItemPositionData_ptr posData)
 
xintInsertPopupMenu (uifcComponent_ptr component)
 
xboolIsEnabled ()
 
xboolIsHeightFixed ()
 
xboolIsValidDragSite ()
 
xboolIsWidthFixed ()
 
voidPushAction (uifcTabAction action)
 
voidSetButtonPlacement (uifcLabelAlignment value)
 
voidSetCanRedraw (xbool flag)
 
voidSetCanResizeWhenNeeded (xbool flag)
 
voidSetCanWrap (xbool flag)
 
voidSetDragCursorImage (xrstring value)
 
voidSetDragNotValidCursorImage (xrstring value)
 
voidSetEnabled (xbool flag)
 
voidSetEnabledItemNameArray (xstringsequence_ptr values)
 
voidSetFocusOnSelection (xbool flag)
 
voidSetFontClass (uifcFontClass value)
 
voidSetFontName (xrstring value)
 
voidSetFontSize (xreal value)
 
voidSetFontStyle (uifcFontStyle value)
 
voidSetFrameOrigin (uifcPoint_ptr value)
 
voidSetFrameRectangle (uifcRectangle_ptr rect)
 
voidSetFrameSize (uifcDimension_ptr value)
 
voidSetHasBorder (xbool flag)
 
voidSetHasVariableSize (xbool flag)
 
voidSetHeightFixed (xbool flag)
 
voidSetHelpText (xrstring value)
 
voidSetItemHelpTextArray (xstringsequence_ptr values)
 
voidSetItemImageArray (xstringsequence_ptr values)
 
voidSetItemNameArray (xstringsequence_ptr values)
 
voidSetItemTextArray (xstringsequence_ptr values)
 
voidSetItemTextColorArray (uifcColors_ptr colors)
 
voidSetSelectedItemNameArray (xstringsequence_ptr values)
 
voidSetSizeByContents (xbool flag)
 
voidSetTextAlignment (uifcAlignment value)
 
voidSetValidDragSite (xbool flag)
 
voidSetVisibleItemNameArray (xstringsequence_ptr values)
 
voidSetWidthFixed (xbool flag)
 
voidStartTimer (xrstring timerName, xint duration)
 
voidStopTimer (xrstring timerName)
 


Methods Inherited from Class uifcComponent:

GetDialog, GetComponent, CreateInParent, AddPopupMenu, IsVisible, SetVisible, GetComponentClass, GetComponentClassName, IsAlwaysAtFront, SetAlwaysAtFront, GetBackgroundColor, SetBackgroundColor, IsAttachedAtBottom, SetAttachedAtBottom, GetBottomOffset, SetBottomOffset, GetCursorImage, SetCursorImage, GetTextColor, SetTextColor, GetHelpTextAlignment, SetHelpTextAlignment, GetHelpTextWidth, SetHelpTextWidth, GetHelpTextOriginX, SetHelpTextOriginX, GetHelpTextOriginY, SetHelpTextOriginY, CanInheritPopupMenu, SetCanInheritPopupMenu, IsAttachedAtLeft, SetAttachedAtLeft, GetLeftOffset, SetLeftOffset, DoesReserveSpace, SetReserveSpace, GetParentName, GetPopupMenuName, SetPopupMenuName, CanPopupMenuWhenDisabled, SetCanPopupMenuWhenDisabled, IsAttachedAtRight, SetAttachedAtRight, GetRightOffset, SetRightOffset, IsAttachedAtTop, SetAttachedAtTop, GetTopOffset, SetTopOffset, IsValidDropSite, SetValidDropSite, GetValidDropTypeFlags, SetValidDropTypeFlags, GetChildNameArray, DoesAllowTrailRecording, SetAllowTrailRecording, CanReduceHeight, SetCanReduceHeight, CanReduceWidth, SetCanReduceWidth



Method Detail

uifcPoint_ptrGetFrameOrigin ()

 

Determine the position of the component, in pixels, relative to its parent.
Returns:



xintInsertPopupMenu (uifcComponent_ptr component)

 

Add a MenuPane to be displayed when the user presses the right mouse button over the component.
Parameters:
component
Returns:



xintInsertChild (uifcComponent_ptr component)

 


Parameters:
component
Returns:



voidDeleteChild (xrstring name)

 

Delete a component from the parent.
Parameters:
name
Returns:



uifcDimension_ptrGetFrameSize ()

 

Determine the size of the component, in pixels.
Returns:



voidDeletePopupMenu ()

 

Delete a MenuPane from the component.
Returns:



uifcPoint_ptrGetScreenOrigin ()

 

Determine the screen position of the component, in pixels.
Returns:



voidInsertItem (uifcTabItem_ptr tabitem, uifcItemPositionData_ptr item_pos_data)

 


Parameters:
tabitem
item_pos_data
Returns:



voidSetFrameSize (uifcDimension_ptr value)

 

Set the size of the component, in pixels. This operation is only supported when the component's parent is one of the following classes : DrawingArea NakedWindow PGLWindow
Parameters:
value
Returns:



voidInsertItems (uifcTabItems_ptr tabitems, uifcItemPositionData_ptr posData)

 


Parameters:
tabitems
posData
Returns:



uifcRectangle_ptrGetFrameRectangle ()

 

Determine the size and position of the component, in pixels.
Returns:



voidDeleteItemsByName (xstringsequence_ptr names)

 

Delete items from the component.
Parameters:
names
Returns:



voidSetFrameOrigin (uifcPoint_ptr value)

 

Set the screen position of the component, in pixels, relative to its parent. This operation is only supported when the component's parent is one of the following classes : DrawingArea NakedWindow PGLWindow
Parameters:
value
Returns:



uifcDimension_ptrGetFrameMinimumSize ()

 

Determine the minimum size of the component, in pixels.
Returns:



uifcRectangle_ptrGetScreenRectangle ()

 

Determine the size and screen position of the component, in pixels.
Returns:



voidSetFrameRectangle (uifcRectangle_ptr rect)

 

Set the size and screen position of the component, in pixels. This operation is only supported when the component's parent is one of the following classes : DrawingArea NakedWindow PGLWindow
Parameters:
rect
Returns:



uifcRectangle_ptrGetRectangleOfMonitor ()

 

Determine the rectangle of the screen upon which the majority of the given component is displayed.
Returns:



xboolDoesFocusOnSelection ()

 
Returns:
Flag to indicate where the focus should go if a child component of a Tab that has the focus, is made invisible when the Tab page is changed. If xtrue, the focus will go to the appropriate child in the newly visible Tab page. If xfalse, the focus will fall on the label of the new Tab page (if the Tab is decorated).



voidSetFocusOnSelection (xbool flag)

 

Sets flag to indicate where the focus should go if a child component of a Tab that has the focus, is made invisible when the Tab page is changed. If xtrue, the focus will go to the appropriate child in the newly visible Tab page. If xfalse, the focus will fall on the label of the new Tab page (if the Tab is decorated).
Parameters:
flag
Returns:



xboolIsHeightFixed ()

 
Returns:
Flag indicating whether the Tab should resize vertically when the Tab is collapsible (xfalse) or whether the Tab should always be tall enough to contain all of its children (xtrue).



voidSetHeightFixed (xbool flag)

 

Sets flag indicating whether the Tab should resize vertically when the Tab is collapsible (xfalse) or whether the Tab should always be tall enough to contain all of its children (xtrue).
Parameters:
flag
Returns:



xstringGetDragItemName ()

 
Returns:
The name of the item being dragged when the user starts a drag & drop operation by dragging within the component.



xstringGetDragCursorImage ()

 
Returns:
The cursor to use when the user starts a drag & drop operation by dragging the component and the pointer is over a valid drop-site.



voidSetDragCursorImage (xrstring value)

 

Sets the cursor to use when the user starts a drag & drop operation by dragging the component and the pointer is over a valid drop-site.
Parameters:
value
Returns:



xboolDoesSizeByContents ()

 
Returns:
Flag indicating whether the Tab should take into account the size of its tab buttons when calculating its initial size.



voidSetSizeByContents (xbool flag)

 

Sets flag indicating whether the Tab should take into account the size of its tab buttons when calculating its initial size.
Parameters:
flag
Returns:



xboolIsWidthFixed ()

 
Returns:
Flag indicating whether the Tab should resize horizontally when the Tab is collapsible (xfalse) or whether the Tab should always be wide enough to contain all of its children (xtrue).



voidSetWidthFixed (xbool flag)

 

Sets flag indicating whether the Tab should resize horizontally when the Tab is collapsible (xfalse) or whether the Tab should always be wide enough to contain all of its children (xtrue).
Parameters:
flag
Returns:



uifcAlignmentGetTextAlignment ()

 
Returns:
The justification of the each of the labels of the Tab buttons if the Tab is decorated and the label is multi-line.

ALIGNMENT_LEFT Left justified
ALIGNMENT_CENTER Center justified
ALIGNMENT_RIGHT Right justified



voidSetTextAlignment (uifcAlignment value)

 

Sets the justification of the each of the labels of the Tab buttons if the Tab is decorated and the label is multi-line.

ALIGNMENT_LEFT Left justified
ALIGNMENT_CENTER Center justified
ALIGNMENT_RIGHT Right justified

Parameters:
value
Returns:



xboolCanWrap ()

 
Returns:
Flag indicating whether the page buttons of a decorated Tab should wrap onto multiple lines when there is insufficient space to display them all on a single line.



voidSetCanWrap (xbool flag)

 

Sets flag indicating whether the page buttons of a decorated Tab should wrap onto multiple lines when there is insufficient space to display them all on a single line.
Parameters:
flag
Returns:



xstringsequence_ptrGetVisibleItemNameArray ()

 
Returns:
The names of the children of the component to be used for each of the items of the component.
This allows the same child to be used for more than one tab-page.



voidSetVisibleItemNameArray (xstringsequence_ptr values)

 

Sets the names of the children of the component to be used for each of the items of the component.
This allows the same child to be used for more than one tab-page.
Parameters:
values
Returns:



xstringsequence_ptrGetSelectedItemNameArray ()

 
Returns:
The names of the selected items of the component.



voidSetSelectedItemNameArray (xstringsequence_ptr values)

 

Sets the names of the selected items of the component.
Parameters:
values
Returns:



xstringGetDragNotValidCursorImage ()

 
Returns:
The cursor to use when the user starts a drag & drop operation by dragging the component and the pointer is over an invalid drop-site.



voidSetDragNotValidCursorImage (xrstring value)

 

Sets the cursor to use when the user starts a drag & drop operation by dragging the component and the pointer is over an invalid drop-site.
Parameters:
value
Returns:



uifcColors_ptrGetItemTextColorArray ()

 
Returns:
The foreground colors of the items of the component, as a uifcColor.



voidSetItemTextColorArray (uifcColors_ptr colors)

 

Sets the foreground colors of the items of the component, as a uifcColor.
Parameters:
colors
Returns:



uifcLabelAlignmentGetButtonPlacement ()

 
Returns:
The justification of the labels of the Tab if the Tab is decorated.

LABEL_ALIGNMENT_TOP Above the children
LABEL_ALIGNMENT_BOTTOM Below the children
LABEL_ALIGNMENT_LEFT To the left of the children
LABEL_ALIGNMENT_RIGHT To the right of the children



voidSetButtonPlacement (uifcLabelAlignment value)

 

Sets the justification of the labels of the Tab if the Tab is decorated.

LABEL_ALIGNMENT_TOP Above the children
LABEL_ALIGNMENT_BOTTOM Below the children
LABEL_ALIGNMENT_LEFT To the left of the children
LABEL_ALIGNMENT_RIGHT To the right of the children

Parameters:
value
Returns:



xstringGetDropItemName ()

 
Returns:
The name of the item beneath the pointer whilst the pointer is over the component during a drag & drop operation.



xstringsequence_ptrGetItemImageArray ()

 
Returns:
The images of the items of the component.
Each image may be a BIF (the .bif extension is optional) file or a JPG, PNG, PCX, GIF, BMP, ICO or CUR file.



voidSetItemImageArray (xstringsequence_ptr values)

 

Sets the images of the items of the component.
Each image may be a BIF (the .bif extension is optional) file or a JPG, PNG, PCX, GIF, BMP, ICO or CUR file.
Parameters:
values
Returns:



xstringGetFontName ()

 
Returns:
The name of the font used to draw text in the component. This may also contain a comma-separated list of font names, in which case the closest match (or the first exact match, if available) will be used.



voidSetFontName (xrstring value)

 

Sets the name of the font used to draw text in the component. This may also contain a comma-separated list of font names, in which case the closest match (or the first exact match, if available) will be used.
Parameters:
value
Returns:



xstringsequence_ptrGetItemHelpTextArray ()

 
Returns:
The popup help-text to be displayed for the items of the component whilst the pointer is over the component.



voidSetItemHelpTextArray (xstringsequence_ptr values)

 

Sets the popup help-text to be displayed for the items of the component whilst the pointer is over the component.
Parameters:
values
Returns:



uifcFontClassGetFontClass ()

 
Returns:
The base font class to be used to draw text in the component.

FONT_CLASS_DEFAULT The default font
FONT_CLASS_DESKTOP The font used by the Window Manager for the text of desktop icons
FONT_CLASS_MENU The font used by MenuBars and components within MenuPanes
FONT_CLASS_POPUPHELP The font used by the popup helptext
FONT_CLASS_MESSAGE The font used for messages in the UI Message Dialog
FONT_CLASS_TITLEBAR The font used to draw the titlebar text of a Dialog
FONT_CLASS_FIXED A system-specific fixed width font for the locale



voidSetFontClass (uifcFontClass value)

 

Sets the base font class to be used to draw text in the component.

FONT_CLASS_DEFAULT The default font
FONT_CLASS_DESKTOP The font used by the Window Manager for the text of desktop icons
FONT_CLASS_MENU The font used by MenuBars and components within MenuPanes
FONT_CLASS_POPUPHELP The font used by the popup helptext
FONT_CLASS_MESSAGE The font used for messages in the UI Message Dialog
FONT_CLASS_TITLEBAR The font used to draw the titlebar text of a Dialog
FONT_CLASS_FIXED A system-specific fixed width font for the locale

Parameters:
value
Returns:



xboolIsValidDragSite ()

 
Returns:
Flag indicating whether the component can be dragged to start a drag & drop operation.



voidSetValidDragSite (xbool flag)

 

Sets flag indicating whether the component can be dragged to start a drag & drop operation.
Parameters:
flag
Returns:



xstringsequence_ptrGetItemNameArray ()

 
Returns:
The names of the items of the component.



voidSetItemNameArray (xstringsequence_ptr values)

 

Sets the names of the items of the component.
Parameters:
values
Returns:



xboolCanResizeWhenNeeded ()

 
Returns:
Flag indicating whether the Tab should attempt to resize when its contents are changed.



voidSetCanResizeWhenNeeded (xbool flag)

 

Sets flag indicating whether the Tab should attempt to resize when its contents are changed.
Parameters:
flag
Returns:



xrealGetFontSize ()

 
Returns:
The point-size of the font used to draw text in the component.



voidSetFontSize (xreal value)

 

Sets the point-size of the font used to draw text in the component.
Parameters:
value
Returns:



xstringsequence_ptrGetEnabledItemNameArray ()

 
Returns:
The names of the selectable items of the component. An empty array indicates that every item of the component may be selected.



voidSetEnabledItemNameArray (xstringsequence_ptr values)

 

Sets the names of the selectable items of the component. An empty array indicates that every item of the component may be selected.
Parameters:
values
Returns:



xboolCanRedraw ()

 
Returns:
Flag indicating whether redraws are permitted in the Tab.



voidSetCanRedraw (xbool flag)

 

Sets flag indicating whether redraws are permitted in the Tab.
Parameters:
flag
Returns:



xboolIsEnabled ()

 
Returns:
Flag indicating whether the component is disabled (xfalse) or sensitive to user input (xtrue).



voidSetEnabled (xbool flag)

 

Sets flag indicating whether the component is disabled (xfalse) or sensitive to user input (xtrue).
Parameters:
flag
Returns:



xstringGetHelpText ()

 
Returns:
The popup help-text to be displayed whilst the pointer is over the component.
If the value begins with <HTML> then the help-text is treated as HTML, and rendered accordingly. It is often wise to use HTML help-text in conjunction with HelpTextWidth attribute, to define the maximum width of the popup help-text window.



voidSetHelpText (xrstring value)

 

Sets the popup help-text to be displayed whilst the pointer is over the component.
If the value begins with <HTML> then the help-text is treated as HTML, and rendered accordingly. It is often wise to use HTML help-text in conjunction with HelpTextWidth attribute, to define the maximum width of the popup help-text window.
Parameters:
value
Returns:



xstringGetMostRecentItemName ()

 
Returns:
The item which was beneath the pointer the last time the pointer was over the component.



xstringsequence_ptrGetItemTextArray ()

 
Returns:
The labels of the items of the component.



voidSetItemTextArray (xstringsequence_ptr values)

 

Sets the labels of the items of the component.
Parameters:
values
Returns:



uifcFontStyleGetFontStyle ()

 
Returns:
A bitwise OR of the styles of the font used to draw text in the component.

FONT_STYLE_REGULAR The font is regularly spaced, slanted and weighted
FONT_STYLE_CONDENSED The font is condensed
FONT_STYLE_ITALIC The font is italicised
FONT_STYLE_BOLD The font is emboldened



voidSetFontStyle (uifcFontStyle value)

 

Sets a bitwise OR of the styles of the font used to draw text in the component.

FONT_STYLE_REGULAR The font is regularly spaced, slanted and weighted
FONT_STYLE_CONDENSED The font is condensed
FONT_STYLE_ITALIC The font is italicised
FONT_STYLE_BOLD The font is emboldened

Parameters:
value
Returns:



xboolHasVariableSize ()

 
Returns:
Flag indicating whether the Tab should be sized according to the size of the visible child (xtrue) or whether the Tab should be large enough to contain all of the children (xfalse).
If this attribute is set to xtrue then the WidthFixed attribute and HeightFixed attribute control whether the Tab should resize horizontally or vertically or in both directions when the selection of the Tab is changed.



voidSetHasVariableSize (xbool flag)

 

Sets flag indicating whether the Tab should be sized according to the size of the visible child (xtrue) or whether the Tab should be large enough to contain all of the children (xfalse).
If this attribute is set to xtrue then the WidthFixed attribute and HeightFixed attribute control whether the Tab should resize horizontally or vertically or in both directions when the selection of the Tab is changed.
Parameters:
flag
Returns:



xboolHasBorder ()

 
Returns:
Flag indicating whether the Tab has a decorated shadow border.



voidSetHasBorder (xbool flag)

 

Sets flag indicating whether the Tab has a decorated shadow border.
Parameters:
flag
Returns:



voidAddActionListener (uifcTabListener_ptr listener)

 


Parameters:
listener
Returns:



voidPushAction (uifcTabAction action)

 


Parameters:
action
Returns:



voidCreateTimer (uifcTabTimer_ptr timer, xrstring timerName, xbool writeInTrail)

 


Parameters:
timer
timerName
writeInTrail
Returns:



voidStartTimer (xrstring timerName, xint duration)

 


Parameters:
timerName
duration
Returns:



voidStopTimer (xrstring timerName)

 


Parameters:
timerName
Returns: