Class uifcLabel
Description
User Guide References:
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 GetFontName,
SetFontName,
GetFontClass,
SetFontClass,
GetFontSize,
SetFontSize,
IsEnabled,
SetEnabled,
GetHelpText,
SetHelpText,
GetWidth,
SetWidth,
GetFontStyle,
SetFontStyle Method Summary
void | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
void | |
| |
| |
| |
void | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
void | |
| |
| |
| |
void | |
| |
| |
| |
void | |
| |
| |
| |
void | |
| |
| |
| |
void | |
| |
| |
| |
void | |
| |
| |
| |
void | |
| |
| |
| |
void | |
| |
| |
| |
void | |
| |
| |
| |
void | |
| |
| |
| |
void | |
| |
| |
| |
void | |
| |
| |
| |
void | |
| |
| |
| |
void | |
| |
| |
| |
void | |
| |
| |
| |
void | |
| |
| |
| |
void | |
| |
| |
| |
void | |
| |
| |
| |
void | |
| |
| |
| |
void | |
| |
| |
| |
void | |
| |
| |
| |
void | |
| |
| |
| |
void | |
| |
| |
| |
Method Detail
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:
Delete a MenuPane from the component.
Returns:
Determine the position of the component, in pixels, relative to its parent.
Returns:
Add a MenuPane to be displayed when the user presses the right mouse button over the component.
Parameters:
component
Returns:
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:
Get the size in pixels of the given text string.
Parameters:
str
Returns:
Determine the minimum size of the component, in pixels.
Returns:
Determine the screen position of the component, in pixels.
Returns:
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:
Determine the size and screen position of the component, in pixels.
Returns:
Determine the rectangle of the screen upon which the majority of the given component is displayed.
Returns:
Determine the size of the component, in pixels.
Returns:
Determine the size and position of the component, in pixels.
Returns:
Returns:
The foreground color of the image of the Label, if the image has a depth of 1, as a uifcColor.
Sets the foreground color of the image of the Label, if the image has a depth of 1, as a uifcColor.
Parameters:
value
Returns:
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.
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:
| GetItemImageBackgroundColorArray | () |
Returns:
The background colors of the images of the items of the component, as either a uifcColor or a uifcColor.
void | SetItemImageBackgroundColorArray | |
Sets the background colors of the images of the items of the component, as either a uifcColor or a uifcColor.
Parameters:
values
Returns:
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.
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:
Returns:
Flag indicating whether the Label has a decorated sunken shadow border.
Sets flag indicating whether the Label has a decorated sunken shadow border.
Parameters:
flag
Returns:
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 |
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:
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.
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:
| GetSelectedItemNameArray | () |
Returns:
The names of the selected items of the component.
void | SetSelectedItemNameArray | |
Sets the names of the selected items of the component.
Parameters:
values
Returns:
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:
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 |
void | SetContentArrangement | |
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:
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:
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.
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:
Returns:
Flag indicating whether to truncate the label of the Label with ellipsis if there is insufficient space to display the entire text string.
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:
| GetItemImageColorArray | () |
Returns:
The foreground colors of the images of the items of the component, as either a uifcColor or a uifcColor.
void | SetItemImageColorArray | |
Sets the foreground colors of the images of the items of the component, as either a uifcColor or a uifcColor.
Parameters:
values
Returns:
Returns:
The names of the items of the component.
Sets the names of the items of the component.
Parameters:
values
Returns:
Returns:
Flag indicating whether the Label should attempt to resize when its contents are changed.
void | SetCanResizeWhenNeeded | |
Sets flag indicating whether the Label should attempt to resize when its contents are changed.
Parameters:
flag
Returns:
Returns:
The name of the component which should receive the keyboard input focus when the user presses the mnemonic key combination of the Label.
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:
Returns:
The labels of the items of the component.
Sets the labels of the items of the component.
Parameters:
values
Returns:
| GetImageBackgroundColor | () |
Returns:
The background color of the image of the Label, if the image has a depth of 1, as a uifcColor.
void | SetImageBackgroundColor | |
Sets the background color of the image of the Label, if the image has a depth of 1, as a uifcColor.
Parameters:
value
Returns:
Parameters:
listener
Returns:
Parameters:
action
Returns:
Parameters:
timer
timerName
writeInTrail
Returns:
Parameters:
timerName
duration
Returns:
Parameters:
timerName
Returns: