SetSelection must not send an event. Fixed an off

by one index, and a crash (probably a Motif bug).
  Improved wxSpinButton appearance.
  Fixed some build warnings here and there in the samples,
removed use of deprecated wxList methods in prntdlgg.cpp, fixed
aot-of-range ID in tipdlg.cpp, fixed some errors detected by
valgrind.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19825 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Mattia Barbon
2003-03-26 22:20:59 +00:00
parent 6789bce964
commit d8d1818419
11 changed files with 33 additions and 16 deletions

View File

@@ -209,6 +209,7 @@ bool wxArrowButton::Create( wxSpinButton* parent, wxWindowID id,
parentWidget,
XmNarrowDirection, arrow_dir,
XmNborderWidth, 0,
XmNshadowThickness, 0,
NULL );
XtAddCallback( (Widget) m_mainWidget,
@@ -364,7 +365,7 @@ void wxSpinButton::Increment( int delta )
wxSize wxSpinButton::DoGetBestSize() const
{
return IsVertical() ? wxSize( 24, 34 ) : wxSize( 34, 24 );
return IsVertical() ? wxSize( 20, 30 ) : wxSize( 30, 20 );
}
// Attributes