Página 1 de 1

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

Publicado: Mié Abr 15, 2015 10:29 am
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.

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

Publicado: Mié Abr 15, 2015 11:25 am
por ignacio
Hello,
I'm afraid I can not reproduce your error. Please send a sample.
Regards,

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

Publicado: Mié Abr 15, 2015 2:33 pm
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)Â

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

Publicado: Jue Abr 16, 2015 11:00 am
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