make wxStatusBarPane a 'full class' with getters and protected data; document it; provide more accessors in wxStatusBar (closes #10574)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59566 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -232,7 +232,7 @@ void wxStatusBar::UpdateFieldText(int nField)
|
||||
|
||||
// Get field style, if any
|
||||
int style;
|
||||
switch(m_panes[nField].nStyle)
|
||||
switch(m_panes[nField].GetStyle())
|
||||
{
|
||||
case wxSB_RAISED:
|
||||
style = SBT_POPOUT;
|
||||
@@ -338,7 +338,7 @@ wxSize wxStatusBar::DoGetBestSize() const
|
||||
for ( size_t i = 0; i < m_panes.GetCount(); ++i )
|
||||
{
|
||||
int widthField =
|
||||
m_bSameWidthForAllPanes ? DEFAULT_FIELD_WIDTH : m_panes[i].nWidth;
|
||||
m_bSameWidthForAllPanes ? DEFAULT_FIELD_WIDTH : m_panes[i].GetWidth();
|
||||
if ( widthField >= 0 )
|
||||
{
|
||||
width += widthField;
|
||||
|
Reference in New Issue
Block a user