Implemented wxSpinButton for wxMotif.

Renamed generic wxSpinCtrl::DoGetBestClientSize to DoGetBestSize
  ( the "Client" appears to be a relic of the past ).


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16303 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Mattia Barbon
2002-07-28 13:33:29 +00:00
parent f6b66bc29d
commit dba006200f
4 changed files with 352 additions and 26 deletions

View File

@@ -190,7 +190,10 @@ bool wxSpinCtrl::Create(wxWindow *parent,
}
DoSetSize(pos.x, pos.y, csize.x, csize.y);
#else
DoSetSize(pos.x, pos.y, size.x, size.y);
wxSize best = GetBestSize();
if ( size.x != -1 ) best.x = size.x;
if ( size.y != -1 ) best.y = size.y;
DoSetSize(pos.x, pos.y, best.x, best.y);
#endif
// have to disable this window to avoid interfering it with message
// processing to the text and the button... but pretend it is enabled to
@@ -220,7 +223,7 @@ wxSpinCtrl::~wxSpinCtrl()
// geometry
// ----------------------------------------------------------------------------
wxSize wxSpinCtrl::DoGetBestClientSize() const
wxSize wxSpinCtrl::DoGetBestSize() const
{
wxSize sizeBtn = m_btn->GetBestSize(),
sizeText = m_text->GetBestSize();