A label widget can be used to place a text and/or icon for explanation purposes. The text label may have an optional tooltip and/or help string.
Construct label with given text and icon.
Argument | Type | Default | Description |
p | FXComposite | ||
text | String | ||
ic | FXIcon | None | |
opts | Int | LABEL_NORMAL | |
x | Int | 0 | |
y | Int | 0 | |
w | Int | 0 | |
h | Int | 0 | |
pl | Int | DEFAULT_PAD | |
pr | Int | DEFAULT_PAD | |
pt | Int | DEFAULT_PAD | |
pb | Int | DEFAULT_PAD |
Create server-side resources.
Reimplemented from FXWindow.
Reimplemented in AFXFlyoutButton, FXMenuButton, FXOptionMenu, and FXToggleButton.
Detach server-side resources.
Reimplemented from FXWindow.
Reimplemented in AFXFlyoutButton, FXMenuButton, FXOptionMenu, and FXToggleButton.
Return default height.
Reimplemented from FXFrame.
Reimplemented in FXCheckButton, FXMDIDeleteButton, FXMDIRestoreButton, FXMDIMaximizeButton, FXMDIMinimizeButton, FXMDIWindowButton, FXMenuButton, FXOption, FXOptionMenu, FXRadioButton, and FXToggleButton.
Return default width.
Reimplemented from FXFrame.
Reimplemented in FXCheckButton, FXMDIDeleteButton, FXMDIRestoreButton, FXMDIMaximizeButton, FXMDIMinimizeButton, FXMDIWindowButton, FXMenuButton, FXOption, FXOptionMenu, FXRadioButton, and FXToggleButton.
Set the status line help text for this label.
Reimplemented in AFXFlyoutItem.
Argument | Type | Default | Description |
text | String |
Set the icon for this label.
Reimplemented in AFXFlyoutItem.
Argument | Type | Default | Description |
ic | FXIcon |
Set the current icon position.
Argument | Type | Default | Description |
mode | Int |
Set the current text-justification mode.
Argument | Type | Default | Description |
mode | Int |
Set the text for this label.
Reimplemented in AFXFlyoutItem.
Argument | Type | Default | Description |
text | String |
Set the tool tip message for this label.
Reimplemented in AFXFlyoutItem.
Argument | Type | Default | Description |
text | String |
Relationship options for icon-labels
ICON_UNDER_TEXT | Icon appears under text. |
ICON_AFTER_TEXT | Icon appears after text (to its right). |
ICON_BEFORE_TEXT | Icon appears before text (to its left). |
ICON_ABOVE_TEXT | Icon appears above text. |
ICON_BELOW_TEXT | Icon appears below text. |
TEXT_OVER_ICON | Same as ICON_UNDER_TEXT. |
TEXT_AFTER_ICON | Same as ICON_BEFORE_TEXT. |
TEXT_BEFORE_ICON | Same as ICON_AFTER_TEXT. |
TEXT_ABOVE_ICON | Same as ICON_BELOW_TEXT. |
TEXT_BELOW_ICON | Same as ICON_ABOVE_TEXT. |
Normal way to show label
LABEL_NORMAL | Combination of JUSTIFY_NORMAL & ICON_BEFORE_TEXT. |