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
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
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
However, it doesn't seem like a very good solution since you have to modify FW source.
Regards,
James
Thank you. I will wait for a solution that don't require to change FWH sources.
EMG
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
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