34 ICON_AFTER_TEXT = 0x00080000,
35 ICON_BEFORE_TEXT = 0x00100000,
36 ICON_ABOVE_TEXT = 0x00200000,
37 ICON_BELOW_TEXT = 0x00400000,
38 TEXT_OVER_ICON = ICON_UNDER_TEXT,
39 TEXT_AFTER_ICON = ICON_BEFORE_TEXT,
40 TEXT_BEFORE_ICON = ICON_AFTER_TEXT,
41 TEXT_ABOVE_ICON = ICON_BELOW_TEXT,
42 TEXT_BELOW_ICON = ICON_ABOVE_TEXT
48 LABEL_NORMAL = JUSTIFY_NORMAL|ICON_BEFORE_TEXT
78 FXint labelHeight(
const FXString& text)
const;
79 FXint labelWidth(
const FXString& text)
const;
80 void drawLabel(
FXDCWindow& dc,
const FXString& text,FXint hot,FXint tx,FXint ty,FXint tw,FXint th);
81 void just_x(FXint& tx,FXint& ix,FXint tw,FXint iw);
82 void just_y(FXint& ty,FXint& iy,FXint th,FXint ih);
87 long onPaint(
FXObject*,FXSelector,
void*);
88 long onHotKeyPress(
FXObject*,FXSelector,
void*);
89 long onHotKeyRelease(
FXObject*,FXSelector,
void*);
90 long onCmdSetValue(
FXObject*,FXSelector,
void*);
91 long onCmdSetStringValue(
FXObject*,FXSelector,
void*);
92 long onCmdGetStringValue(
FXObject*,FXSelector,
void*);
93 long onCmdSetIconValue(
FXObject*,FXSelector,
void*);
94 long onCmdGetIconValue(
FXObject*,FXSelector,
void*);
95 long onCmdSetHelp(
FXObject*,FXSelector,
void*);
96 long onCmdGetHelp(
FXObject*,FXSelector,
void*);
97 long onCmdSetTip(
FXObject*,FXSelector,
void*);
98 long onCmdGetTip(
FXObject*,FXSelector,
void*);
99 long onQueryHelp(
FXObject*,FXSelector,
void*);
100 long onQueryTip(
FXObject*,FXSelector,
void*);
104 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);
107 virtual void create()
override;
110 virtual void detach()
override;
113 virtual void enable()
override;
116 virtual void disable()
override;
119 virtual FXint getDefaultWidth()
override;
122 virtual FXint getDefaultHeight()
override;
125 void setTextAndHotKey(
const FXString& hotkeytext);
140 void setFont(
FXFont *fnt);
149 void setTextColor(FXColor clr);
152 void setJustify(FXuint mode);
155 FXuint getJustify()
const;
158 void setIconPosition(FXuint mode);
161 FXuint getIconPosition()
const;
164 void setSpacing(FXint sp);
182 virtual void save(
FXStream& store)
const override;
185 virtual void load(
FXStream& store)
override;
FXString getText() const
Get the text for this label.
Definition: FXLabel.h:131
void setTipText(const FXString &text)
Set the tool tip message for this label.
Definition: FXLabel.h:176
void setHelpText(const FXString &text)
Set the status line help text for this label.
Definition: FXLabel.h:170
const FXString & getHelpText() const
Get the status line help text for this label.
Definition: FXLabel.h:173
A label widget can be used to place a text and/or icon for explanation purposes.
Definition: FXLabel.h:64
The Frame widget provides borders around some contents.
Definition: FXFrame.h:58
FXIcon * getIcon() const
Get the icon for this label.
Definition: FXLabel.h:137
Base composite.
Definition: FXComposite.h:32
A stream is a way to serialize data and objects into a byte stream.
Definition: FXStream.h:81
FXColor getTextColor() const
Get the current text color.
Definition: FXLabel.h:146
Definition: FX4Splitter.h:28
An Icon is an image with two additional server-side resources: a shape bitmap, which is used to mask ...
Definition: FXIcon.h:42
FXFont * getFont() const
Get the text font.
Definition: FXLabel.h:143
FXint getSpacing() const
Get spacing between icon and label.
Definition: FXLabel.h:167
const FXString & getTipText() const
Get the tool tip message for this label.
Definition: FXLabel.h:179
Object is the base class for all objects in FOX; in order to receive messages from the user interface...
Definition: FXObject.h:138
Window Device Context.
Definition: FXDCWindow.h:48
Font class.
Definition: FXFont.h:137
FXString provides essential string manipulation capabilities in FOX.
Definition: FXString.h:42