Use wxSTOCK_FOR_BUTTON for message dialog custom labels.
This allows to use wxID_PRINT as a custom label without getting an unwanted ellipsis at the end. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61527 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
e94ee7915b
commit
3b5137c4e0
@ -68,8 +68,9 @@ public:
|
||||
// stock items id support
|
||||
wxString GetAsString() const
|
||||
{
|
||||
return m_stockId == wxID_NONE ? m_label
|
||||
: wxGetStockLabel(m_stockId);
|
||||
return m_stockId == wxID_NONE
|
||||
? m_label
|
||||
: wxGetStockLabel(m_stockId, wxSTOCK_FOR_BUTTON);
|
||||
}
|
||||
|
||||
// return the stock id or wxID_NONE if this is not a stock label
|
||||
|
Loading…
Reference in New Issue
Block a user