Updates for makefile.unx
Converted numdlg to use wxSizer Corrcted bug in default size of wxStaticLine Other optical corrections git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3333 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -253,7 +253,7 @@ bool wxSingleChoiceDialog::Create( wxWindow *WXUNUSED(parent), const wxString& m
|
||||
|
||||
#if wxUSE_STATLINE
|
||||
// 3) static line
|
||||
topsizer->Add( new wxStaticLine( this, -1 ), 0, wxEXPAND | wxLEFT|wxRIGHT|wxTOP, 3 );
|
||||
topsizer->Add( new wxStaticLine( this, -1 ), 0, wxEXPAND | wxLEFT|wxRIGHT|wxTOP, 10 );
|
||||
#endif
|
||||
|
||||
|
||||
|
@@ -49,9 +49,25 @@ bool wxStaticLine::Create( wxWindow *parent, wxWindowID id,
|
||||
}
|
||||
|
||||
if ( IsVertical() )
|
||||
{
|
||||
m_widget = gtk_vseparator_new();
|
||||
if (size.x == -1)
|
||||
{
|
||||
wxSize new_size( size );
|
||||
new_size.x = 4;
|
||||
SetSize( new_size );
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
m_widget = gtk_hseparator_new();
|
||||
if (size.y == -1)
|
||||
{
|
||||
wxSize new_size( size );
|
||||
new_size.y = 4;
|
||||
SetSize( new_size );
|
||||
}
|
||||
}
|
||||
|
||||
m_parent->DoAddChild( this );
|
||||
|
||||
|
@@ -97,7 +97,7 @@ wxTextEntryDialog::wxTextEntryDialog(wxWindow *parent, const wxString& message,
|
||||
|
||||
#if wxUSE_STATLINE
|
||||
// 3) static line
|
||||
topsizer->Add( new wxStaticLine( this, -1 ), 0, wxEXPAND | wxLEFT|wxRIGHT|wxTOP, 3 );
|
||||
topsizer->Add( new wxStaticLine( this, -1 ), 0, wxEXPAND | wxLEFT|wxRIGHT|wxTOP, 10 );
|
||||
#endif
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user