save the current status text for each pane inside wxStatusBarPane: native controls now store the (eventually) ellipsized version of the string; remove code for managing the status strings currently inside the [native|generic] control; add ellipsization support under wxMSW; now that all SetFieldsCount() implementation rrely on wxStatusBarBase::SetFieldsCount document how it behaves when adding new panes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58786 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -194,12 +194,15 @@ void wxStatusBarBase::PushStatusText(const wxString& text, int number)
|
||||
// save current status text in the stack
|
||||
m_panes[number].arrStack.push_back(GetStatusText(number));
|
||||
|
||||
// update current status text
|
||||
SetStatusText(text, number);
|
||||
// update current status text (eventually also in the native control)
|
||||
}
|
||||
|
||||
void wxStatusBarBase::PopStatusText(int number)
|
||||
{
|
||||
wxASSERT_MSG(m_panes[number].arrStack.GetCount() == 1,
|
||||
"can't pop any further string");
|
||||
|
||||
wxString text = m_panes[number].arrStack.back();
|
||||
m_panes[number].arrStack.pop_back(); // also remove it from the stack
|
||||
|
||||
|
||||
Reference in New Issue
Block a user