10#if !defined(OWL_TEXTGADG_H)
14#if defined(BI_HAS_PRAGMA_ONCE)
48 TTextGadget(
int id = 0, TBorderStyle = Recessed, TAlign = Left,
49 uint numChars = 10, LPCTSTR text = 0,
62 const TFont& GetFont()
const;
63 void SetFont(
const TFont&,
bool repaint =
true);
67 LPCTSTR GetText()
const;
71 void SetText(LPCTSTR text);
74 TColor GetBkgndColor()
const;
75 TColor GetTextColor()
const;
76 void SetBkgndColor(
const TColor& color);
77 void SetTextColor(
const TColor& color);
78 void ResetBkgndColor();
79 void ResetTextColor();
85 virtual TColor GetEnabledColor()
const;
86 void GetDesiredSize(
TSize &size);
Class wrapper for management of color values.
TDC is the root class for GDI DC wrappers.
TDynamicTextGadget(int id=0, TBorderStyle=Recessed, TAlign=Left, uint numChars=10, LPCTSTR text=0, TFont *font=0)
virtual void CommandEnable()
TFont derived from TGdiObject provides constructors for creating font objects from explicit informati...
TGadget(int id=0, TBorderStyle borderStyle=None)
Construct a gadget with a given id and border style.
TBorderStyle
Gadget border styles.
@ Recessed
Recessed into the window.
The tagSIZE struct is defined as.
Derived from TGadget, TTextGadget is a text gadget object.
TAlign
Enumerates the text-alignment attributes.
@ Right
Aligns the text at the right edge of the bounding rectangle.
@ Left
Aligns the text at the left edge of the bounding rectangle.
@ Center
Aligns the text horizontally at the center of the bounding rectangle.
LPCTSTR GetText() const
Returns the text for the gadget.
virtual TColor GetEnabledColor() const
void SetText(const tstring &text)
TColor GetBkgndColor() const
Returns the background color for the gadget.
TTextGadget(int id=0, TBorderStyle=Recessed, TAlign=Left, uint numChars=10, LPCTSTR text=0, TFont *font=0)
Constructs a TTextGadget object with the specified ID, border style, and alignment.
TColor GetTextColor() const
Returns the text color for the gadget.
void SetBkgndColor(const TColor &color)
Sets the background color for the gadget.
void SetTextColor(const TColor &color)
Sets the text color for the gadget when enabled.
Base class TGadget and simple derived TSeparatorGadget.
Definition of TGadgetList, TGadgetWindow & TGadgetWindowFont A list holding gadgets,...
Object Windows Library (OWLNext Core).