@beginStyleTable
@style{wxST_SIZEGRIP}
- On Windows 95, displays a gripper at right-hand side of the status bar.
+ Displays a gripper at the right-hand side of the status bar.
@endStyleTable
- @todo reference to win95 may be old and wrong
-
@remarks
It is possible to create controls and other windows on the status bar.
- Position these windows from an OnSize event handler.
+ Position these windows from an OnSize() event handler.
@library{wxcore}
@category{miscwnd}
*/
wxStatusBar(wxWindow* parent, wxWindowID id = wxID_ANY,
long style = wxST_SIZEGRIP,
- const wxString& name = "statusBar");
+ const wxString& name = wxStatusBarNameStr);
/**
Destructor.
*/
bool Create(wxWindow* parent, wxWindowID id = wxID_ANY,
long style = wxST_SIZEGRIP,
- const wxString& name = "statusBar");
+ const wxString& name = wxStatusBarNameStr);
/**
Returns the size and position of a field's internal bounding rectangle.
An array of n integers interpreted in the same way as
in SetStatusWidths().
*/
- virtual void SetFieldsCount(int number = 1, int* widths = NULL);
+ virtual void SetFieldsCount(int number = 1, const int* widths = NULL);
/**
Sets the minimal possible height for the status bar.
- wxSB_FLAT: No border is painted around the field so that it appears flat.
- wxSB_RAISED: A raised 3D border is painted around the field.
*/
- virtual void SetStatusStyles(int n, int* styles);
+ virtual void SetStatusStyles(int n, const int* styles);
/**
Sets the text for one field.
@param n
The number of fields in the status bar. Must be equal to the
number passed to SetFieldsCount() the last time it was called.
- @param widths
+ @param widths_field
Contains an array of n integers, each of which is either an
absolute status field width in pixels if positive or indicates a
variable width field if negative.
@see SetFieldsCount(), wxFrame::SetStatusWidths()
*/
- virtual void SetStatusWidths(int n, int* widths);
+ virtual void SetStatusWidths(int n, const int* widths_field);
};