wxUSE_STATTEXT fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32525 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
a6c91f7da9
commit
001e76a930
@ -252,6 +252,7 @@ bool wxGenericValidator::TransferToWindow(void)
|
||||
}
|
||||
} else
|
||||
#endif
|
||||
#if wxUSE_STATTEXT
|
||||
if (m_validatorWindow->IsKindOf(CLASSINFO(wxStaticText)) )
|
||||
{
|
||||
wxStaticText* pControl = (wxStaticText*) m_validatorWindow;
|
||||
@ -261,6 +262,7 @@ bool wxGenericValidator::TransferToWindow(void)
|
||||
return true;
|
||||
}
|
||||
} else
|
||||
#endif
|
||||
#if wxUSE_TEXTCTRL
|
||||
if (m_validatorWindow->IsKindOf(CLASSINFO(wxTextCtrl)) )
|
||||
{
|
||||
@ -474,6 +476,7 @@ bool wxGenericValidator::TransferFromWindow(void)
|
||||
}
|
||||
} else
|
||||
#endif
|
||||
#if wxUSE_STATTEXT
|
||||
if (m_validatorWindow->IsKindOf(CLASSINFO(wxStaticText)) )
|
||||
{
|
||||
wxStaticText* pControl = (wxStaticText*) m_validatorWindow;
|
||||
@ -483,6 +486,7 @@ bool wxGenericValidator::TransferFromWindow(void)
|
||||
return true;
|
||||
}
|
||||
} else
|
||||
#endif
|
||||
#if wxUSE_TEXTCTRL
|
||||
if (m_validatorWindow->IsKindOf(CLASSINFO(wxTextCtrl)) )
|
||||
{
|
||||
|
@ -105,7 +105,7 @@ wxNumberEntryDialog::wxNumberEntryDialog(wxWindow *parent,
|
||||
wxBeginBusyCursor();
|
||||
|
||||
wxBoxSizer *topsizer = new wxBoxSizer( wxVERTICAL );
|
||||
|
||||
#if wxUSE_STATTEXT
|
||||
// 1) text message
|
||||
topsizer->Add( CreateTextSizer( message ), 0, wxALL, 10 );
|
||||
|
||||
@ -114,6 +114,8 @@ wxNumberEntryDialog::wxNumberEntryDialog(wxWindow *parent,
|
||||
// prompt if any
|
||||
if (!prompt.IsEmpty())
|
||||
inputsizer->Add( new wxStaticText( this, wxID_ANY, prompt ), 0, wxCENTER | wxLEFT, 10 );
|
||||
#endif
|
||||
|
||||
// spin ctrl
|
||||
wxString valStr;
|
||||
valStr.Printf(wxT("%ld"), m_value);
|
||||
@ -121,9 +123,11 @@ wxNumberEntryDialog::wxNumberEntryDialog(wxWindow *parent,
|
||||
#if wxUSE_SPINCTRL
|
||||
m_spinctrl->SetRange((int)m_min, (int)m_max);
|
||||
#endif
|
||||
#if wxUSE_STATTEXT
|
||||
inputsizer->Add( m_spinctrl, 1, wxCENTER | wxLEFT | wxRIGHT, 10 );
|
||||
// add both
|
||||
topsizer->Add( inputsizer, 1, wxEXPAND | wxLEFT|wxRIGHT, 5 );
|
||||
#endif
|
||||
|
||||
// smart phones does not support or do not waste space for wxButtons
|
||||
#ifdef __SMARTPHONE__
|
||||
|
Loading…
Reference in New Issue
Block a user