25#include <wx/generic/statbmpg.h>
28class wxWindowDestroyEvent;
BITMAPS
A list of all bitmap identifiers.
FIELD_WARNING_ICON(wxWindow *aField, BITMAPS aIcon=BITMAPS::small_warning, int aSlot=0)
static constexpr size_t MAX_LINES
The most warnings listed in the tooltip, with a count of the rest.
wxWindow * m_field
Null once the field has been destroyed.
void ShowAsBadge()
Shows the icon with no tooltip of its own, for one that opens something on click or hover.
void onFieldChanged(wxEvent &aEvent)
void Reposition()
Moves the icon back over the field after the field has moved or changed size.
void SetWarnings(const wxArrayString &aMessages)
Lists aMessages in the tooltip, once each with a count when repeated, and shows the icon,...
void SetWarning(const wxString &aMessage)
Shows aMessage as the tooltip, or hides the icon when it is empty.
void onFieldDestroyed(wxWindowDestroyEvent &aEvent)