I have a workaround (but I don't like it).  At least it is useful for
checking a project as I can avoid clicking the scrollbars's button and
can use the arrow keys instead.

The workaround was to place the editfield whose keydown event is
detecting keystrokes off the viewable bounds of the window and include
the code to intercept the arrow key strokes in its event.

I returned True in the keydown event.  I think this means keystrokes
are not passed to the Window's keydown event (which isn't working for
me at the moment anyway).  Is this correct?

Thanks Paul

 #If TargetMacOS
   Dim Scroll1 As ScrollBar
   Scroll1=ViewQuestions.SpinButton1
   Select Case Asc(Key)
   Case 30 ' up
     Scroll1.Value=Max(Scroll1.Minimum, Scroll1.Value-1)
   Case 31 ' down
     Scroll1.Value=Min(Scroll1.Maximum, Scroll1.Value+1)
   End Select
   Return True
 #endif

On 1/13/07, Paul Rehill <[EMAIL PROTECTED]> wrote:
Interestingly, I did discover if I added a editfield to the window,
the editfield does detect the keystrokes in its keydown event but I
can't get the window's keydown event to execute the msgbox code even
by returning False in the Editfield's keydown event (I've tried
returning true as well just in case I was confused about how this
event uses the boolean value).  I thought false forces the editfield's
keydown event to be ignored and then the keystroke passes to the
window's keydown event.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to