In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

How to avoid pushbuttons when TApplication:lUseReturn == .T.?

Xailer professional forum in English
Responder
Mahanimann
Mensajes: 216
Registrado: Dom Sep 23, 2007 11:08 pm

How to avoid pushbuttons when TApplication:lUseReturn == .T.?

Mensaje por Mahanimann »

The TApplication:lUseReturn works fine, except that it jumps to- and sets
focus to pushbuttons. On the next K_ENTER the button is pushed, a behaviour
that I don't want (do anybody, at least when the form/dataset is in
EDIT-mode?)
So my question is: Suggestions on how to let K_ENTER only jump to
data-controls, not buttons etc? (No matter if the form/oDataSet are in VIEW
or EDIT-mode)
Thanks for any reply.
Paal
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9469
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

How to avoid pushbuttons when TApplication:lUseReturn == .T.?

Mensaje por ignacio »

Paal,
I am afraid that is not possible. I never liked the lUseReturn property. Now
you can see why.
Regards,
--
Ignacio Ortiz de Zúñiga
http://www.xailer.com
"Mahanimann" <paaldalen@gmail.com> escribió en el mensaje
news:[email=470ac6e8@ozsrv2.ozlan.local...]470ac6e8@ozsrv2.ozlan.local...[/email]
> The TApplication:lUseReturn works fine, except that it jumps to- and sets
> focus to pushbuttons. On the next K_ENTER the button is pushed, a
> behaviour that I don't want (do anybody, at least when the form/dataset is
> in EDIT-mode?)
>
> So my question is: Suggestions on how to let K_ENTER only jump to
> data-controls, not buttons etc? (No matter if the form/oDataSet are in
> VIEW or EDIT-mode)
>
> Thanks for any reply.
> Paal
>
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
NoName
Mensajes: 531
Registrado: Vie Feb 03, 2006 7:27 pm

How to avoid pushbuttons when TApplication:lUseReturn == .T.?

Mensaje por NoName »

Paal,
I am afraid that is not possible. I never liked the lUseReturn property. Now
you can see why.
Regards,
--
Ignacio Ortiz de Zúñiga
http://www.xailer.com
"Mahanimann" <paaldalen@gmail.com> escribió en el mensaje
news:[email=470ac6e8@ozsrv2.ozlan.local...]470ac6e8@ozsrv2.ozlan.local...[/email]
> The TApplication:lUseReturn works fine, except that it jumps to- and sets
> focus to pushbuttons. On the next K_ENTER the button is pushed, a
> behaviour that I don't want (do anybody, at least when the form/dataset is
> in EDIT-mode?)
>
> So my question is: Suggestions on how to let K_ENTER only jump to
> data-controls, not buttons etc? (No matter if the form/oDataSet are in
> VIEW or EDIT-mode)
>
> Thanks for any reply.
> Paal
>
Mahanimann
Mensajes: 216
Registrado: Dom Sep 23, 2007 11:08 pm

How to avoid pushbuttons when TApplication:lUseReturn == .T.?

Mensaje por Mahanimann »

> I am afraid that is not possible. I never liked the lUseReturn property.
> Now you can see why.
No, not really :-) But I leave it for now, K_TAB *is* the Windows way so
I'll try to get used to it :-)
Thanks for the reply.
Paal
Mahanimann
Mensajes: 216
Registrado: Dom Sep 23, 2007 11:08 pm

How to avoid pushbuttons when TApplication:lUseReturn == .T.?

Mensaje por Mahanimann »

> I am afraid that is not possible. I never liked the lUseReturn property.
> Now you can see why.
No, not really :-) But I leave it for now, K_TAB *is* the Windows way so
I'll try to get used to it :-)
Thanks for the reply.
Paal
notengo
Mensajes: 417
Registrado: Vie Oct 12, 2007 1:29 pm

How to avoid pushbuttons when TApplication:lUseReturn == .T.?

Mensaje por notengo »

Mahanimann,
> The TApplication:lUseReturn works fine, except that it jumps to- and sets
> focus to pushbuttons. On the next K_ENTER the button is pushed, a behaviour
> that I don't want (do anybody, at least when the form/dataset is in
> EDIT-mode?)
I don't like the lUseReturn feature but you can try to play with
TButton:lTabStop and TButton:nModalResult (setting it to mrNONE).
Regards,
José Lalí­n
notengo
Mensajes: 417
Registrado: Vie Oct 12, 2007 1:29 pm

How to avoid pushbuttons when TApplication:lUseReturn == .T.?

Mensaje por notengo »

Mahanimann,
> The TApplication:lUseReturn works fine, except that it jumps to- and sets
> focus to pushbuttons. On the next K_ENTER the button is pushed, a behaviour
> that I don't want (do anybody, at least when the form/dataset is in
> EDIT-mode?)
I don't like the lUseReturn feature but you can try to play with
TButton:lTabStop and TButton:nModalResult (setting it to mrNONE).
Regards,
José Lalí­n
Mahanimann
Mensajes: 216
Registrado: Dom Sep 23, 2007 11:08 pm

How to avoid pushbuttons when TApplication:lUseReturn == .T.?

Mensaje por Mahanimann »

> I don't like the lUseReturn feature but you can try to play with
> TButton:lTabStop and TButton:nModalResult (setting it to mrNONE).
Yes I have done that and it makes K_ENTER "miss" the buttons. But then
again the K_TAB also do that so I have startet to dislike lUseReturn myself.
Thanks,
Paal
Mahanimann
Mensajes: 216
Registrado: Dom Sep 23, 2007 11:08 pm

How to avoid pushbuttons when TApplication:lUseReturn == .T.?

Mensaje por Mahanimann »

> I don't like the lUseReturn feature but you can try to play with
> TButton:lTabStop and TButton:nModalResult (setting it to mrNONE).
Yes I have done that and it makes K_ENTER "miss" the buttons. But then
again the K_TAB also do that so I have startet to dislike lUseReturn myself.
Thanks,
Paal
Responder