+ // update current status text (which will possibly be ellipsized)
+ // also in the native control
+
+ // SetStatusText() typically has an optimization built-in to avoid flickering
+ // which won't refresh the status bar pane if the current top of the stack
+ // is identic to the text passed to that function.
+ // Since this optimization however cannot detect push/pop operations on the stack
+ // we need to explicitely refresh the status bar pane ourselves:
+ wxRect rect;
+ GetFieldRect(number, rect);
+ Refresh(true, &rect);
+ Update();