On 25-Apr-07, at 6:13 PM, Tim Hare wrote: > > Norman Palardy wrote: >> On 25-Apr-07, at 5:32 PM, Pedro fp wrote: >> >>> G'day Folks >>> >>> After a long hiatus I'm doing a bit of RB programming again. >>> >>> I'm currently working on something that requires trapping the tab & >>> arrow keys in the KeyDown event of an EdifField. >>> I thought I might get the tab key with ... >>> >>> If Key = Chr(9) Then >>> >>> But it doesn't work. I have no idea how to catch the arrow keys. Any >>> clues? >> >> Enable AcceptTabs and your code works >> >> left = 28 >> right = 29 >> up = 30 >> down = 31 >> >> make sure you return true for all key strokes you capture and handle > > if key = chr(9) works fine on Windows without AcceptTabs. Is this > a Mac > thing? No It's a holdover from past versions
It should be fine on either as long as you return true to tell RB NOT to do anything with the tab _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
