Corrected bmpbutton size
added wxNO_BORDER style to button classes added WMclass and WMname strings to dialogs and frames added flag to scroll sample git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2365 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -80,7 +80,13 @@ bool wxButton::Create( wxWindow *parent, wxWindowID id, const wxString &label,
|
||||
|
||||
SetValidator( validator );
|
||||
|
||||
m_widget = gtk_button_new_with_label( m_label.mbc_str() );
|
||||
m_widget = gtk_button_new_with_label( "" );
|
||||
|
||||
#if (GTK_MINOR_VERSION > 0)
|
||||
if (style & wxNO_BORDER)
|
||||
gtk_button_set_relief( GTK_BUTTON(m_widget), GTK_RELIEF_NONE );
|
||||
#endif
|
||||
|
||||
SetLabel(label);
|
||||
|
||||
if (newSize.x == -1) newSize.x = 15+gdk_string_measure( m_widget->style->font, label.mbc_str() );
|
||||
|
Reference in New Issue
Block a user