44#define MSG_PANEL_DEFAULT_PAD 6
104 const wxPoint& aPosition,
const wxSize& aSize,
105 long style=wxTAB_TRAVERSAL,
const wxString&
name=wxPanelNameStr);
108 void OnPaint( wxPaintEvent& aEvent );
123 void SetMessage(
int aXPosition,
const wxString& aUpperText,
const wxString& aLowerText );
137 void AppendMessage(
const wxString& aUpperText,
const wxString& aLowerText,
int aPadding = 6 );
151 DECLARE_EVENT_TABLE()
158 void erase( wxDC* DC );
A panel to display various information messages.
void SetMessage(int aXPosition, const wxString &aUpperText, const wxString &aLowerText)
Set a message at aXPosition to aUpperText and aLowerText in the message panel.
void AppendMessage(const wxString &aUpperText, const wxString &aLowerText, int aPadding=6)
Append a message to the message panel.
void OnDPIChanged(wxDPIChangedEvent &aEvent)
wxSize DoGetBestSize() const override
void AppendMessage(const MSG_PANEL_ITEM &aMessageItem)
Append aMessageItem to the message panel.
int m_last_x
the last used x coordinate
wxSize DoGetBestClientSize() const override
void showItem(wxDC &dc, const MSG_PANEL_ITEM &aItem)
std::vector< MSG_PANEL_ITEM > m_Items
void OnPaint(wxPaintEvent &aEvent)
A color representation with 4 components: red, green, blue, alpha.
EDA_MSG_PANEL items for displaying messages.
const wxString & GetUpperText() const
void SetLowerText(const wxString &aLowerText)
void SetUpperText(const wxString &aUpperText)
const wxString & GetLowerText() const
void SetPadding(int aPadding)
MSG_PANEL_ITEM(const wxString &aUpperText, const wxString &aLowerText, int aPadding=MSG_PANEL_DEFAULT_PAD)
#define MSG_PANEL_DEFAULT_PAD
The default number of spaces between each text string.