 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Tilman Räger Guest
|
Posted: Mon Mar 21, 2005 3:25 pm Post subject: Navigation with ENTER instead of TAB |
|
|
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
|
Posted: Mon Mar 21, 2005 3:46 pm Post subject: Re: Navigation with ENTER instead of TAB |
|
|
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
|
Posted: Mon Mar 21, 2005 8:18 pm Post subject: Re: Navigation with ENTER instead of TAB |
|
|
"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
|
|
| 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
|
|