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:
@@ -68,8 +68,9 @@ public:
|
|||||||
// stock items id support
|
// stock items id support
|
||||||
wxString GetAsString() const
|
wxString GetAsString() const
|
||||||
{
|
{
|
||||||
return m_stockId == wxID_NONE ? m_label
|
return m_stockId == wxID_NONE
|
||||||
: wxGetStockLabel(m_stockId);
|
? m_label
|
||||||
|
: wxGetStockLabel(m_stockId, wxSTOCK_FOR_BUTTON);
|
||||||
}
|
}
|
||||||
|
|
||||||
// return the stock id or wxID_NONE if this is not a stock label
|
// return the stock id or wxID_NONE if this is not a stock label
|
||||||
|
Reference in New Issue
Block a user