10#if !defined(OWL_TEXTGADG_H)
14#if defined(BI_HAS_PRAGMA_ONCE)
48 TTextGadget(
int id = 0, TBorderStyle = Recessed, TAlign = Left,
62 const TFont& GetFont()
const;
74 TColor GetBkgndColor()
const;
75 TColor GetTextColor()
const;
78 void ResetBkgndColor();
79 void ResetTextColor();
85 virtual TColor GetEnabledColor()
const;
86 void GetDesiredSize(
TSize &size);
131 virtual void CommandEnable();
Class wrapper for management of color values.
TDC is the root class for GDI DC wrappers.
Small class will send EvEnable to window, You can set text by handling EvCommandEnable message.
TFont derived from TGdiObject provides constructors for creating font objects from explicit informati...
TGadget is the base class for the following derived gadget classes:
TBorderStyle
Gadget border styles.
The tagSIZE struct is defined as.
Derived from TGadget, TTextGadget is a text gadget object.
TAlign
Enumerates the text-alignment attributes.
@ 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.
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)