SpinCtrl editor's 'value change by mouse motion' feature is made optional, enabled via 'MotionSpin' attribute. Also, for now only enabled on MSW (mouse capture etc. inconsistent on native wxGTK spinbutton?).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57252 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1371,6 +1371,7 @@ void FormMain::PopulateWithExamples ()
|
||||
pg->SetPropertyAttribute( wxT("SpinCtrl"), wxPG_ATTR_MIN, (long)-10 ); // Use constants instead of string
|
||||
pg->SetPropertyAttribute( wxT("SpinCtrl"), wxPG_ATTR_MAX, (long)16384 ); // for reduced binary size.
|
||||
pg->SetPropertyAttribute( wxT("SpinCtrl"), wxT("Step"), (long)2 );
|
||||
pg->SetPropertyAttribute( wxT("SpinCtrl"), wxT("MotionSpin"), true );
|
||||
//pg->SetPropertyAttribute( wxT("SpinCtrl"), wxT("Wrap"), true );
|
||||
|
||||
pg->SetPropertyHelpString( wxT("SpinCtrl"),
|
||||
|
Reference in New Issue
Block a user