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.
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.
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
-
- Mensajes: 133
- Registrado: Dom Dic 27, 2009 9:54 am
- 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
Hello,
I'm afraid I can not reproduce your error. Please send a sample.
Regards,
I'm afraid I can not reproduce your error. Please send a sample.
Regards,
-
- Mensajes: 133
- Registrado: Dom Dic 27, 2009 9:54 am
MsgInfo() Sets Focus on the First Control of the Form
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)Â
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)Â
MsgInfo() Sets Focus on the First Control of the Form
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
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