Page 1 of 1
Press Enter in a Memo Field
Posted: Wed Jul 11, 2007 1:10 pm
by Ollie
How can I use Enter (to get a new line) in a memo field?
When I press Enter, it presses my (DEFAULT) "OK" button. (Which is fine, but can I use Shift-Enter or something to get a new line? How?)
Thanks in advance.
Posted: Wed Jul 11, 2007 4:25 pm
by R.F.
Ollie:
If you are creating the memo from resources, double click on it, open properties window and select WANT RETURN to activate de feature.
Posted: Thu Jul 12, 2007 6:30 am
by Ollie
Super. Thank you very much.
Posted: Thu Jul 12, 2007 6:52 am
by JoseLuis
TambiƩn puedes hacer:
El get del campo memo es el siguiente:
Code: Select all
REDEFINE GET ocomen VAR ccomentario MEMO ID 113 OF oDlg
Y ahora le dices que cuando pulses Enter, que salte al objeto siguiente:
Code: Select all
ocomen:bKeyDown := { | nKey, nFlags | iif(nkey==13,ocodcon:Setfocus(),)}
Saludos
Jose Luis