In a message regarding keeping tabs in a canvas dated Sat, 4 Feb 2006
19:34:41 -0500, Joe Cabrera said that ...

> 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) = 9 Then
    speak "next column"
    Return True
  end if

--
Steve Garman
Using REALbasic 2006r1 Professional on Windows XP Pro


_______________________________________________
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