Fixed small bug in tab code WRT to having only

a single control in a panel.
  sliders now have keyboard handling.
  Missing headers for install (memconf.h and geometry.h).


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5612 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2000-01-23 17:09:48 +00:00
parent 7502bdff47
commit 4ee1741f75
5 changed files with 26 additions and 9 deletions

View File

@@ -107,7 +107,7 @@ bool wxSlider::Create(wxWindow *parent, wxWindowID id,
if (style & wxSL_LABELS)
{
gtk_scale_set_draw_value( GTK_SCALE( m_widget ), TRUE );
gtk_scale_set_digits( GTK_SCALE( m_widget ), 0 );
gtk_scale_set_digits( GTK_SCALE( m_widget ), 0 );
/* labels need more space and too small window will
cause junk to appear on the dialog */
@@ -183,6 +183,8 @@ void wxSlider::SetRange( int minValue, int maxValue )
m_adjust->lower = fmin;
m_adjust->upper = fmax;
m_adjust->step_increment = 1.0;
m_adjust->page_increment = ceil((fmax-fmin) / 10.0);
gtk_signal_emit_by_name( GTK_OBJECT(m_adjust), "changed" );
}