15#if !defined(OWL_BTNTEXTG_H)
19#if defined(BI_HAS_PRAGMA_ONCE)
82 TStyle style = sBitmapText,
94 TStyle GetStyle()
const;
95 void SetStyle(
const TStyle style,
bool repaint=
true);
96 TAlign GetAlign()
const;
98 TLayoutStyle GetLayoutStyle()
const;
99 void SetLayoutStyle(
const TLayoutStyle style,
bool repaint=
true);
101 const TFont& GetFont()
const;
107 virtual void GetDesiredSize(
TSize &size);
108 virtual void SetBounds(
const TRect&
rect);
113 virtual void CommandEnable();
116 virtual void Paint(
TDC& dc);
117 virtual void Created();
120 virtual void SysColorChange();
122 void GetTextSize(
TSize& size);
132 TLayoutStyle LayoutStyle;
Derived from TButtonGadget, TButtonTextGadget represents buttons with bitmap and text,...
TStyle GetStyle() const
Returns the Style for the gadget.
TStyle
TStyle contains values that defines how gadget will be displayed:
TAlign
Enumerates the text-alignment attributes.
@ aCenter
Aligns the text horizontally at the center of the bounding rectangle.
@ aLeft
Aligns the text at the left edge of the bounding rectangle.
TLayoutStyle GetLayoutStyle() const
Returns the LayoutStyle for the gadget.
LPCTSTR GetText() const
Returns the text for the gadget.
TAlign GetAlign() const
Returns the Align for the gadget.
TLayoutStyle
TLayoutStyle contains values that defines how bitmap and text will be layout.
@ lTextTop
Text top, bitmap bottom.
@ lTextRight
Text right, bitmap left.
@ lTextLeft
Text left, bitmap right.
void SetText(LPCTSTR s, bool repaint=true)
TDC is the root class for GDI DC wrappers.
TFont derived from TGdiObject provides constructors for creating font objects from explicit informati...
TRect is a mathematical class derived from tagRect.
The tagSIZE struct is defined as.
Object Windows Library (OWLNext Core)