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 

Navigation with ENTER instead of TAB

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage)
View previous topic :: View next topic  
Author Message
Tilman Räger
Guest





PostPosted: Mon Mar 21, 2005 3:25 pm    Post subject: Navigation with ENTER instead of TAB Reply with quote



Hello,

Is there an easy way to tell an VCL form to react on the ENTER key in the
same way as on the TAB key. At the moment, the only way I see, is to write
a function for the KeyPressed-Event.

Thanks for all answers.

Tilman

--
Tilman Räger
D-76297 Stutensee
http://www.raeger.net
Back to top
Vladimir Stefanovic
Guest





PostPosted: Mon Mar 21, 2005 3:46 pm    Post subject: Re: Navigation with ENTER instead of TAB Reply with quote



void __fastcall TForm1::Edit1KeyPress(TObject *Sender, char &Key)
{
if ( Key == VK_RETURN )
{
Key = 0; // No beeps...
PostMessage ( Handle, WM_NEXTDLGCTL, 0, 0 );
}
}


--
Best regards,
Vladimir Stefanovic
"Tilman Räger" <tilman (AT) raeger (DOT) net> wrote

Quote:
Hello,

Is there an easy way to tell an VCL form to react on the ENTER key in the
same way as on the TAB key. At the moment, the only way I see, is to write
a function for the KeyPressed-Event.

Thanks for all answers.

Tilman

--
Tilman Räger
D-76297 Stutensee
http://www.raeger.net



Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Mon Mar 21, 2005 8:18 pm    Post subject: Re: Navigation with ENTER instead of TAB Reply with quote




"Tilman Räger" <tilman (AT) raeger (DOT) net> wrote


Quote:
Is there an easy way to tell an VCL form to react on the ENTER key
in the same way as on the TAB key. At the moment, the only way I see,
is to write a function for the KeyPressed-Event.

Please go to http://www.deja.com and do a search through the archives of
these newsgroups. This topic has been discussed many times before.


Gambit



Back to top
Analian
Guest





PostPosted: Wed Mar 30, 2005 1:47 pm    Post subject: Re: Navigation with ENTER instead of TAB Reply with quote


http://bcbjournal.org/articles/vol4/0007/Customized_form_navigation.htm


Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage) 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.