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
77 FXint labelHeight(
const FXString& text)
const;
78 FXint labelWidth(
const FXString& text)
const;
79 void drawLabel(
FXDCWindow& dc,
const FXString& text,FXint hot,FXint tx,FXint ty,FXint tw,FXint th);
80 void just_x(FXint& tx,FXint& ix,FXint tw,FXint iw);
81 void just_y(FXint& ty,FXint& iy,FXint th,FXint ih);
86 long onPaint(
FXObject*,FXSelector,
void*);
87 long onHotKeyPress(
FXObject*,FXSelector,
void*);
88 long onHotKeyRelease(
FXObject*,FXSelector,
void*);
89 long onCmdSetValue(
FXObject*,FXSelector,
void*);
90 long onCmdSetStringValue(
FXObject*,FXSelector,
void*);
91 long onCmdGetStringValue(
FXObject*,FXSelector,
void*);
92 long onCmdSetIconValue(
FXObject*,FXSelector,
void*);
93 long onCmdGetIconValue(
FXObject*,FXSelector,
void*);
94 long onCmdSetHelp(
FXObject*,FXSelector,
void*);
95 long onCmdGetHelp(
FXObject*,FXSelector,
void*);
96 long onCmdSetTip(
FXObject*,FXSelector,
void*);
97 long onCmdGetTip(
FXObject*,FXSelector,
void*);
98 long onQueryHelp(
FXObject*,FXSelector,
void*);
99 long onQueryTip(
FXObject*,FXSelector,
void*);
103 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);
106 virtual void create();
109 virtual void detach();
112 virtual void enable();
115 virtual void disable();
118 virtual FXint getDefaultWidth();
121 virtual FXint getDefaultHeight();
124 void setTextAndHotKey(
const FXString& hotkeytext);
139 void setFont(
FXFont *fnt);
148 void setTextColor(FXColor clr);
151 void setJustify(FXuint mode);
154 FXuint getJustify()
const;
157 void setIconPosition(FXuint mode);
160 FXuint getIconPosition()
const;
175 virtual void save(
FXStream& store)
const;
FXString getText() const
Get the text for this label.
Definition: FXLabel.h:130
void setTipText(const FXString &text)
Set the tool tip message for this label.
Definition: FXLabel.h:169
void setHelpText(const FXString &text)
Set the status line help text for this label.
Definition: FXLabel.h:163
const FXString & getHelpText() const
Get the status line help text for this label.
Definition: FXLabel.h:166
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:136
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:145
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:142
const FXString & getTipText() const
Get the tool tip message for this label.
Definition: FXLabel.h:172
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