Page 1 of 1

Text Field: how to lock TAB button?

Posted: Sun Aug 09, 2009 9:31 pm
by ale870
Hello,

I created a text area, and I need to insert a TAB (in text area) and not sending focus to the next field.
How can I modify behaviour of TAB keyboard button?

Thank you!

Posted: Sun Aug 09, 2009 10:06 pm
by ale870
Solved!
I putted the event on rawKeyDown argKey and used the following code:

Code: Select all

if argKey is 65289 then
   put tab before char (word 2 of the selectedChunk) of field "fldMain"
end if
Please note that field "fldMain" is field where I need to intercept TAB.

Posted: Mon Aug 10, 2009 6:53 am
by BvG
if you set the tabstop property to any value (on the table tab of the inspector) then tab entry works as expected.