Steve Garman said:
> I have a canvas that I need to accept tabs. It's a crossword grid
where you can use the tab key to go to the next box in the grid. If I =
tab from within my canvas, other items in that window (like my push =
buttons) get selected instead. If I'm in my grid, I want to stay in =
there.
Check the "Accept Tabs" property of the Canvas so the KeyDown event =
will
fire.
Return True from the KeyDown Event so the focus doesn't move to the =
next
control. Something like
if asc (key) =3d 9 Then
speak "next column"
Return True
end if
Awesome, thanks! I assume this works even if the code checks for a
tab plus a shift key press at the same time?
BTW, I've been using "key = Chr (9)" for my tab press check. Is that
a kosher way to do it in my code, rather that your way above? I also
do similarly when checking for space key tabs [Chr (32)] or an arrow
key press [Keyboard.AsyncKeyDown (126) for the up arrow].
_______________________________________________
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>