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
// 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