Library | File

Class uifcLabel

# include <uifcLabel.h>

class uifcLabel
 : public virtual uifcText
{
    xaideclare(uifcLabel)
    ...
};



Description





Method Summary

voidAddActionListener (uifcLabelListener_ptr listener)
 
xboolCanResizeWhenNeeded ()
 
xboolCanTruncateText ()
 
xboolCanWrap ()
 
voidCreateTimer (uifcLabelTimer_ptr timer, xrstring timerName, xbool writeInTrail)
 
voidDeletePopupMenu ()
 
xintGetContentArrangement ()
 
uifcDimension_ptrGetFrameMinimumSize ()
 
uifcPoint_ptrGetFrameOrigin ()
 
uifcRectangle_ptrGetFrameRectangle ()
 
uifcDimension_ptrGetFrameSize ()
 
xstringGetImage ()
 
xintGetImageBackgroundColor ()
 
xintGetImageColor ()
 
xstringsequence_ptrGetItemImageArray ()
 
xintsequence_ptrGetItemImageBackgroundColorArray ()
 
xintsequence_ptrGetItemImageColorArray ()
 
xstringsequence_ptrGetItemNameArray ()
 
xstringsequence_ptrGetItemTextArray ()
 
xstringGetMnemonicFocusName ()
 
uifcRectangle_ptrGetRectangleOfMonitor ()
 
uifcPoint_ptrGetScreenOrigin ()
 
uifcRectangle_ptrGetScreenRectangle ()
 
xstringsequence_ptrGetSelectedItemNameArray ()
 
xstringGetText ()
 
uifcAlignmentGetTextAlignment ()
 
uifcDimension_ptrGetTextSize (xrstring str)
 
xintInsertPopupMenu (uifcComponent_ptr component)
 
xboolIsStatusBar ()
 
voidPushAction (uifcLabelAction action)
 
voidSetCanResizeWhenNeeded (xbool flag)
 
voidSetCanTruncateText (xbool flag)
 
voidSetCanWrap (xbool flag)
 
voidSetContentArrangement (xint value)
 
voidSetFrameOrigin (uifcPoint_ptr value)
 
voidSetFrameRectangle (uifcRectangle_ptr rect)
 
voidSetFrameSize (uifcDimension_ptr value)
 
voidSetImage (xrstring value)
 
voidSetImageBackgroundColor (xint value)
 
voidSetImageColor (xint value)
 
voidSetItemImageArray (xstringsequence_ptr values)
 
voidSetItemImageBackgroundColorArray (xintsequence_ptr values)
 
voidSetItemImageColorArray (xintsequence_ptr values)
 
voidSetItemNameArray (xstringsequence_ptr values)
 
voidSetItemTextArray (xstringsequence_ptr values)
 
voidSetMnemonicFocusName (xrstring value)
 
voidSetSelectedItemNameArray (xstringsequence_ptr values)
 
voidSetStatusBar (xbool flag)
 
voidSetText (xrstring value)
 
voidSetTextAlignment (uifcAlignment value)
 
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


Methods Inherited from Class uifcText:

GetFontName, SetFontName, GetFontClass, SetFontClass, GetFontSize, SetFontSize, IsEnabled, SetEnabled, GetHelpText, SetHelpText, GetWidth, SetWidth, GetFontStyle, SetFontStyle



Method Detail

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:



voidDeletePopupMenu ()

 

Delete a MenuPane from the component.
Returns:



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:



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_ptrGetTextSize (xrstring str)

 

Get the size in pixels of the given text string.
Parameters:
str
Returns:



uifcDimension_ptrGetFrameMinimumSize ()

 

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



uifcPoint_ptrGetScreenOrigin ()

 

Determine the screen position of the component, in pixels.
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:



uifcRectangle_ptrGetScreenRectangle ()

 

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



uifcRectangle_ptrGetRectangleOfMonitor ()

 

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



uifcDimension_ptrGetFrameSize ()

 

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



uifcRectangle_ptrGetFrameRectangle ()

 

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



xintGetImageColor ()

 
Returns:
The foreground color of the image of the Label, if the image has a depth of 1, as a uifcColor.



voidSetImageColor (xint value)

 

Sets the foreground color of the image of the Label, if the image has a depth of 1, as a uifcColor.
Parameters:
value
Returns:



xstringGetImage ()

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



voidSetImage (xrstring value)

 

Sets the image of the Label.
This may be a BIF (the .bif extension is optional) file or a JPG, PNG, PCX, GIF, BMP, ICO or CUR file.
Parameters:
value
Returns:



xintsequence_ptrGetItemImageBackgroundColorArray ()

 
Returns:
The background colors of the images of the items of the component, as either a uifcColor or a uifcColor.



voidSetItemImageBackgroundColorArray (xintsequence_ptr values)

 

Sets the background colors of the images of the items of the component, as either a uifcColor or a uifcColor.
Parameters:
values
Returns:



xstringGetText ()

 
Returns:
The label of the Label.
The text may be single or multi-line, and may contain a mnemonic by prefixing the mnemonic character with an ampersand.



voidSetText (xrstring value)

 

Sets the label of the Label.
The text may be single or multi-line, and may contain a mnemonic by prefixing the mnemonic character with an ampersand.
Parameters:
value
Returns:



xboolIsStatusBar ()

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



voidSetStatusBar (xbool flag)

 

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



uifcAlignmentGetTextAlignment ()

 
Returns:
The justification of the label of the Label if 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 label of the Label if 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 label of the component should wrap within the available space granted to the component by its parent. Currently this flag is only supported for components which are the children of a MenuPane, where the MenuPane has been assigned a given size by the application code.



voidSetCanWrap (xbool flag)

 

Sets flag indicating whether the label of the component should wrap within the available space granted to the component by its parent. Currently this flag is only supported for components which are the children of a MenuPane, where the MenuPane has been assigned a given size by the application code.
Parameters:
flag
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:



xintGetContentArrangement ()

 
Returns:
The alignment of the image and label of the Label.
This is made up of between 1 and 4 digits which represent the relative locations of the image and label.
The first digit is the image alignment within the bounds of the Label:

1 2 3
4 5 6
7 8 9

The second digit is optional and is the label alignment within the bounds of the Label, using the same scheme as above. If no digit is specified then the label alignment is assumed to be the same as the image alignment.
The third digit is also optional and is the relative position of the image and the label if the first 2 digits are equal. If no digit is specified then the relative position is assumed to be 1.

1 The image to the left of the label
2 The image to the right of the label
3 The image above the label
4 The image below the label

The fourth digit is also optional and is a flag representing whether how the image and label should be displayed. If no digit is specified then then fourth digit is assumed to be 1.

1 Display both the image and label
2 Display only the image
3 Display only the label



voidSetContentArrangement (xint value)

 

Sets the alignment of the image and label of the Label.
This is made up of between 1 and 4 digits which represent the relative locations of the image and label.
The first digit is the image alignment within the bounds of the Label:

1 2 3
4 5 6
7 8 9

The second digit is optional and is the label alignment within the bounds of the Label, using the same scheme as above. If no digit is specified then the label alignment is assumed to be the same as the image alignment.
The third digit is also optional and is the relative position of the image and the label if the first 2 digits are equal. If no digit is specified then the relative position is assumed to be 1.

1 The image to the left of the label
2 The image to the right of the label
3 The image above the label
4 The image below the label

The fourth digit is also optional and is a flag representing whether how the image and label should be displayed. If no digit is specified then then fourth digit is assumed to be 1.

1 Display both the image and label
2 Display only the image
3 Display only the label

Parameters:
value
Returns:



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:



xboolCanTruncateText ()

 
Returns:
Flag indicating whether to truncate the label of the Label with ellipsis if there is insufficient space to display the entire text string.



voidSetCanTruncateText (xbool flag)

 

Sets flag indicating whether to truncate the label of the Label with ellipsis if there is insufficient space to display the entire text string.
Parameters:
flag
Returns:



xintsequence_ptrGetItemImageColorArray ()

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



voidSetItemImageColorArray (xintsequence_ptr values)

 

Sets the foreground colors of the images of the items of the component, as either a uifcColor or a uifcColor.
Parameters:
values
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 Label should attempt to resize when its contents are changed.



voidSetCanResizeWhenNeeded (xbool flag)

 

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



xstringGetMnemonicFocusName ()

 
Returns:
The name of the component which should receive the keyboard input focus when the user presses the mnemonic key combination of the Label.



voidSetMnemonicFocusName (xrstring value)

 

Sets the name of the component which should receive the keyboard input focus when the user presses the mnemonic key combination of the Label.
Parameters:
value
Returns:



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:



xintGetImageBackgroundColor ()

 
Returns:
The background color of the image of the Label, if the image has a depth of 1, as a uifcColor.



voidSetImageBackgroundColor (xint value)

 

Sets the background color of the image of the Label, if the image has a depth of 1, as a uifcColor.
Parameters:
value
Returns:



voidAddActionListener (uifcLabelListener_ptr listener)

 


Parameters:
listener
Returns:



voidPushAction (uifcLabelAction action)

 


Parameters:
action
Returns:



voidCreateTimer (uifcLabelTimer_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: