Hi,
I have a problem with teh AUTOTAB, as I cannot really control it as I thought it is possible.
I have 5 fields that I want to use the tab to have the cursor jumpfrom field to field, but as I have to have the topmost (on-screen) field in teh highest sprite channel and vice versa, the tab jumps in the wrong direciton (from the lower fields up).
Can that be changted - how do i set teh tab myself / catch the key code, etc?
thanks Nik
___________________________________________________
Reduce your company's IT costs today with Officemaster. Sign up for a free trial!
http://www.officemaster.net
You can control the tabbing yourself using the KeyDown event. You must return true at the end of the event so RB doesn't process the TAB itself. The ascii value for tab is 9. So basically what I would do is this :
<code> Function KeyDown(Key As String) As Boolean If Asc(Key) = 9 Then NextEditField.SetFocus Return True Else Return False //Let RB handle the key End If End Function </code>
Deane
Excuse my stupidity I thought I was answering on the REALbasic mailing lists. I do have an answer but it will have to wait till I get into the office :P
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
