BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Default button and TSyntaxMemo

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi VCL Components Using
View previous topic :: View next topic  
Author Message
Raymond Ng
Guest





PostPosted: Fri Nov 19, 2004 8:35 am    Post subject: Default button and TSyntaxMemo Reply with 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
Ron Tuijnman
Guest





PostPosted: Mon Dec 13, 2004 10:25 am    Post subject: Re: Default button and TSyntaxMemo Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi VCL Components Using All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.