Page 1 of 1
How to insert a TAB in TMultiGet using the keyboard
Posted: Mon Jan 04, 2010 9:11 pm
by Enrico Maria Giordano
Dear friends, is there an easy way to insert a TAB character (CHR( 9 )) in a TMultiGet object using the keyboard? ALT-9 doesn't seem to work.
Thanks in advance.
EMG
Re: How to insert a TAB in TMultiGet using the keyboard
Posted: Tue Jan 05, 2010 12:00 am
by James Bott
Enrico,
This is from my notes.
-------------------------
To allow the Tab key in memo gets add this to keyDown method:
// add next two lines
case nKey == VK_TAB
return 0
Normally the Tab just goes to the next field.
-------------------------
However, it doesn't seem like a very good solution since you have to modify FW source.
Regards,
James
Re: How to insert a TAB in TMultiGet using the keyboard
Posted: Tue Jan 05, 2010 12:44 am
by Enrico Maria Giordano
Thank you. I will wait for a solution that don't require to change FWH sources.
EMG
Re: How to insert a TAB in TMultiGet using the keyboard
Posted: Tue Jan 05, 2010 7:30 am
by Antonio Linares
Enrico,
Please be ware that if you want to insert Tabs then you will not able to use Tab to give focus to the next control.
I would try it this way:
oMemo:nDlgCode = DLGC_WANTALLKEYS
Re: How to insert a TAB in TMultiGet using the keyboard
Posted: Tue Jan 05, 2010 10:58 am
by Enrico Maria Giordano
For the moment I'm using this:
Method KeyChar()
if nKey == 63 .and. nAnd( nFlags / 65536, 255 ) == 57
::Replace( CHR( 9 ) )
if ::bChange != nil
Eval( ::bChange, nKey, nFlags, Self )
endif
return 0
endif
It allows me to use ALT-9 to insert a TAB. The TAB key on the keyboard is untouched.
Do you think it is a good solution for the standard TMultiGet?
EMG