Thanks Terry RB's language reference does mention that the scrollbar can AcceptFocus to respond to arrow key presses on Windows only.
I was trying to see if the window keydown event could intercept the arrow keys (or any key) but it wouldn't react to key strokes. I searched a couple of years of mail for keydown event, up arrow key, down arrow key etc and found some code like Msgbox Chr(Asc(Key)) to test for key strokes in the window's keydown event. I think this was it (as I have deleted it now). The window is a shown as a modal window and has one scrollbar and two pushbuttons. The close push button is both the default pushbutton and the cancel pushbutton. Maybe these default settings are interfering with the window's ability to accept key strokes due to focus? I'm unsure. After unsuccessful attempts with the keydown event, I asked about the scrollbar as per my original post as it looks like correct behavior of a scrollbar under Mac OS X is to not respond to arrow keys. Thanks Paul On 1/13/07, Terry Ford <[EMAIL PROTECTED]> wrote:
On Jan 12, 2007, at 2:15 AM, Paul Rehill wrote: > On Mac OS X, a modal window has a scrollbar that doesn't respond to > the up and down arrows when using a MacBook. On Windows, the > scrollbar does respond to the up and down arrow keys. > > I am unsure why the two OSs are behaving differently here and would > appreciate any advice to get the Mac OS X scrollbar responding to > arrow keys like the Windows app does. It might have something to do with the fact that the API's are different and be similar to the fact that Mac Scrollbars cannot accept the focus either. I usually use the Keydown event of a control or window to trap the arrow keys and adjust the value of the scrollbar accordingly.
_______________________________________________ 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>
