Board index » delphi » Form question

Form question

On the KeyPress Event of your DB Control try

  If Key = Chr(VK_RETURN) Then Perform(WM_NEXTDLGCTL,0,0);

This will move to the next  Tab Order.

Regards
Les

Quote
Tove <tove.bjornb...@c2i.net> wrote in message

news:86k6u8$o9m9@bornews.borland.com...
Quote
> Hi all,

> I have a form with several database controls (fields). Standing on the
first
> field, I want the cursor to move to the next field when I press <enter>.
> Couldn't find out about it in the tutorial...

> Thanks,

> Tove

 

Re:Form question


Hi all,

I have a form with several database controls (fields). Standing on the first
field, I want the cursor to move to the next field when I press <enter>.
Couldn't find out about it in the tutorial...

Thanks,

Tove

Re:Form question


Thanks a lot.
Is there a way to solve this on fields within a grid as well?

Quote
"Les Piotrowski" <l...@municipal-associates.com> wrote in message

news:86kqc3$on017@bornews.borland.com...
Quote
> On the KeyPress Event of your DB Control try

>   If Key = Chr(VK_RETURN) Then Perform(WM_NEXTDLGCTL,0,0);

> This will move to the next  Tab Order.

> Regards
> Les

> Tove <tove.bjornb...@c2i.net> wrote in message
> news:86k6u8$o9m9@bornews.borland.com...
> > Hi all,

> > I have a form with several database controls (fields). Standing on the
> first
> > field, I want the cursor to move to the next field when I press <enter>.
> > Couldn't find out about it in the tutorial...

> > Thanks,

> > Tove

Re:Form question


Hi,
On a couple of the forms in my application, I get a compilation error as
follows:
[Error] FrmLev.pas(96): Undeclared identifier: 'WM_NEXTDLGCTL'
What is missing?

Thanks in advance,
Tove

Quote
"Les Piotrowski" <l...@municipal-associates.com> wrote in message

news:86kqc3$on017@bornews.borland.com...
Quote
> On the KeyPress Event of your DB Control try

>   If Key = Chr(VK_RETURN) Then Perform(WM_NEXTDLGCTL,0,0);

> This will move to the next  Tab Order.

> Regards
> Les

> Tove <tove.bjornb...@c2i.net> wrote in message
> news:86k6u8$o9m9@bornews.borland.com...
> > Hi all,

> > I have a form with several database controls (fields). Standing on the
> first
> > field, I want the cursor to move to the next field when I press <enter>.
> > Couldn't find out about it in the tutorial...

> > Thanks,

> > Tove

Re:Form question


Include the 'messages' unit in your uses clause. That's where the
constant 'WM_NEXTDLGCTL' is defined.

Rich

On Wed, 26 Jan 2000 21:59:10 +0100, "Tove" <tove.bjornb...@c2i.net>
wrote:

Quote
>On a couple of the forms in my application, I get a compilation error as
>follows:
>[Error] FrmLev.pas(96): Undeclared identifier: 'WM_NEXTDLGCTL'
>What is missing?

Re:Form question


;)

Other Threads