Update of /cvsroot/audacity/audacity-src/src/widgets
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv6810

Modified Files:
        ASlider.cpp 
Log Message:
Make keyboard increments a bit more granular and allow the slider to gain focus 
when click with right mouse button.

Index: ASlider.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/widgets/ASlider.cpp,v
retrieving revision 1.72
retrieving revision 1.73
diff -u -d -r1.72 -r1.73
--- ASlider.cpp 7 Jun 2009 10:42:30 -0000       1.72
+++ ASlider.cpp 9 Jul 2009 15:02:51 -0000       1.73
@@ -435,8 +435,8 @@
    mDefaultValue = 0.0f;
    mDefaultShortcut = false;
    mBitmap = NULL;
-   mScrollLine = 1;
-   mScrollPage = 5;
+   mScrollLine = 0.05;
+   mScrollPage = 0.5;
 
    // Get the Thumb bitmap.  Generic version fo rnow...
 //#ifdef USE_AQUA
@@ -810,6 +810,10 @@
          mCurrentValue = mDefaultValue;
       }
 
+      if( event.RightDown() ) {
+         mParent->SetFocus();
+      }
+
       // Thumb clicked?
       //
       // Do not change position until first drag.  This helps


------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Audacity-cvs mailing list
Audacity-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/audacity-cvs

Reply via email to