 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Raymond Ng Guest
|
Posted: Fri Nov 19, 2004 8:35 am Post subject: Default button and TSyntaxMemo |
|
|
Hi,
I find a problem in using a TSyntaxMemo with a default button in a
form. Normally, if I press "Enter" key in a TMemo, the default button
will not be fired, but TSyntaxMemo does. How can I tune the
TSyntaxMemo so that the default button will not be fired when I press
"Enter" inside a TSyntaxMemo?
Thx.
Raymond Ng.
|
|
| Back to top |
|
 |
Ron Tuijnman Guest
|
Posted: Mon Dec 13, 2004 10:25 am Post subject: Re: Default button and TSyntaxMemo |
|
|
Maybe
form.keypreview := true;
OnKeypress
IF key = #13 THEN key := 0;
???
"Raymond Ng" <raymond.cs (AT) gmail (DOT) com> schreef in bericht
news:6b429ecd.0411190035.450ae76b (AT) posting (DOT) google.com...
| Quote: | Hi,
I find a problem in using a TSyntaxMemo with a default button in a
form. Normally, if I press "Enter" key in a TMemo, the default button
will not be fired, but TSyntaxMemo does. How can I tune the
TSyntaxMemo so that the default button will not be fired when I press
"Enter" inside a TSyntaxMemo?
Thx.
Raymond Ng.
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|