106 FXLabel(
FXComposite* p,
const FXString& text,
FXIcon* ic=0,
FXuint opts=
LABEL_NORMAL,
FXint x=0,
FXint y=0,
FXint w=0,
FXint h=0,
FXint pl=
DEFAULT_PAD,
FXint pr=
DEFAULT_PAD,
FXint pt=
DEFAULT_PAD,
FXint pb=
DEFAULT_PAD);
109 virtual void create();
112 virtual void detach();
115 virtual void enable();
118 virtual void disable();
121 virtual FXint getDefaultWidth();
124 virtual FXint getDefaultHeight();
130 FXString getText()
const {
return label; }
136 FXIcon* getIcon()
const {
return icon; }
139 void setFont(
FXFont *fnt);
142 FXFont* getFont()
const {
return font; }
145 FXColor getTextColor()
const {
return textColor; }
148 void setTextColor(
FXColor clr);
151 void setJustify(
FXuint mode);
154 FXuint getJustify()
const;
157 void setIconPosition(
FXuint mode);
160 FXuint getIconPosition()
const;
163 void setHelpText(
const FXString& text){ help=text; }
166 const FXString& getHelpText()
const {
return help; }
169 void setTipText(
const FXString& text){ tip=text; }
172 const FXString& getTipText()
const {
return tip; }
175 virtual void save(FXStream& store)
const;
178 virtual void load(FXStream& store);
Same as ICON_BELOW_TEXT.
Definition: FXLabel.h:47
A label widget can be used to place a text and/or icon for explanation purposes.
Definition: FXLabel.h:79
The Frame widget provides borders around some contents.
Definition: FXFrame.h:73
unsigned int FXuint
Definition: fxdefs.h:389
FXuint FXHotKey
Definition: fxdefs.h:450
Same as ICON_ABOVE_TEXT.
Definition: FXLabel.h:48
FXuint FXSelector
Association key.
Definition: FXObject.h:53
#define FXAPI
Definition: fxdefs.h:122
Base composite.
Definition: FXComposite.h:35
Same as ICON_BEFORE_TEXT.
Definition: FXLabel.h:45
FXuint FXColor
Definition: fxdefs.h:447
Icon appears above text.
Definition: FXLabel.h:42
Definition: FX4Splitter.h:31
int FXint
Definition: fxdefs.h:390
An Icon is an image with two additional server-side resources: a shape bitmap, which is used to mask ...
Definition: FXIcon.h:45
Same as ICON_UNDER_TEXT.
Definition: FXLabel.h:44
Icon appears under text.
Definition: FXLabel.h:39
Object is the base class for all objects in FOX; in order to receive messages from the user interface...
Definition: FXObject.h:166
Window Device Context.
Definition: FXDCWindow.h:52
Icon appears below text.
Definition: FXLabel.h:43
Same as ICON_AFTER_TEXT.
Definition: FXLabel.h:46
Icon appears after text (to its right)
Definition: FXLabel.h:40
Icon appears before text (to its left)
Definition: FXLabel.h:41
Font class.
Definition: FXFont.h:142
Default justification is centered text.
Definition: FXFrame.h:39
#define FXDECLARE(classname)
Macro to set up class declaration.
Definition: FXObject.h:92
FXString provides essential string manipulation capabilities.
Definition: FXString.h:33