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.

MsgInfo() Sets Focus on the First Control of the Form

Xailer professional forum in English
Responder
Milan Mehta
Mensajes: 133
Registrado: Dom Dic 27, 2009 9:54 am

MsgInfo() Sets Focus on the First Control of the Form

Mensaje por Milan Mehta »

One Problem we have been facing is :
Whenever we use MsgInfo() in Exit Event of any Control, the Focus shifts to the First Data Control of the Form. We wish to remain on the same control or the next control.
What should we do for that ?
TIA
Milan.
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9252
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

MsgInfo() Sets Focus on the First Control of the Form

Mensaje por ignacio »

Hello,
I'm afraid I can not reproduce your error. Please send a sample.
Regards,
Ignacio Ortiz de Zúñiga
[Equipo de Xailer / Xailer team]
https://www.xailer.com
Milan Mehta
Mensajes: 133
Registrado: Dom Dic 27, 2009 9:54 am

MsgInfo() Sets Focus on the First Control of the Form

Mensaje por Milan Mehta »

Please try the attached sample.
After the Search Combo Box, the Message appears and focus shifts to the first control of the form.
TIA
Milan

Attached files MsgInfo.zip (3.8 KB)Â
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5706
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

MsgInfo() Sets Focus on the First Control of the Form

Mensaje por jfgimenez »

Hi Milan,
it has been fixed and will be available in the next release. Thank for your input.
Meanwhile, you may fix it by adding this code to any of your .prg in your project:

CLASS TComboBox FROM XComboBox
METHOD GoNextControl( Handle, lForce ) INLINE ::oForm:GoNextControl( ::Handle, lForce )
ENDCLASS
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Responder