9#if !defined(OWL_MESSAGEB_H)
13#if defined(BI_HAS_PRAGMA_ONCE)
39 TFont* font =
nullptr,
65 void GetInnerRect(
TRect& rect);
66 void GetDesiredSize(
TSize& rect);
70 void PaintGadgets(
TDC& dc,
bool erase,
TRect& rect);
72 bool GetHighlightLine()
const;
73 void SetHighlightLine(
bool highlightline);
75 LPCTSTR GetHintText()
const;
82 std::map<const TGadget*, bool> GadgetVisibilityCache;
105 return HighlightLine;
112 HighlightLine = highlightline;
119 return HintText.c_str();
TDC is the root class for GDI DC wrappers.
TFont derived from TGdiObject provides constructors for creating font objects from explicit informati...
TGadgetWindow(TWindow *parent=nullptr, TTileDirection direction=Horizontal, TFont *font=nullptr, TModule *module=nullptr)
Creates a TGadgetWindow interface object with the default tile direction and font and passes module w...
Derived from TGadgetWindow, TMessageBar implements a message bar with one text gadget as wide as the ...
TMessageBar(TWindow *parent=nullptr, TFont *font=nullptr, TModule *module=nullptr)
Constructs a TMessageBar object with the gadget window font.
void SetText(const tstring &text)
Forwards the message in the message bar to the text gadget for formatting.
void SetHintText(const tstring &text)
String-aware overload.
void SetMessageText(int id, const tstring &text)
Sets the text for the default text message gadget by specifying the id.
bool GetHighlightLine() const
Returns true if the message bar has an upper highlight line.
LPCTSTR GetHintText() const
Returns the cached hint text for the current message.
void SetHighlightLine(bool highlightline)
Sets the flag for the message bar to have an upper highlight line.
virtual void SetHintText(LPCTSTR text)
Sets the hint text displayed on the messagebar.
ObjectWindows dynamic-link libraries (DLLs) construct an instance of TModule, which acts as an object...
TRect is a mathematical class derived from tagRect.
The tagSIZE struct is defined as.
TWindow, derived from TEventHandler and TStreamableBase, provides window-specific behavior and encaps...
Definition of TGadgetList, TGadgetWindow & TGadgetWindowFont A list holding gadgets,...
Object Windows Library (OWLNext Core).