Página 1 de 1

tBrowseMod killfocus?

Publicado: Jue Mar 07, 2024 4:04 pm
por Maarten Roos
Dear all.

Why does tBrowseMod not losing its focus when in edit mode, when exiting it with tab or using the mouse on another control? It doesn't CancelEdit...

See example

Imagen

Re: tBrowseMod killfocus?

Publicado: Vie Mar 08, 2024 11:41 am
por ignacio
Hello,

I believe this code will do the job:

Código: Seleccionar todo

 METHOD WMKillFocus( hCtl ) INLINE ( ::Super:WMKillFocus( hCtl ),;
  IIf( GetParent( hCtl ) != ::oParent:Handle,;
  ::oBrowse:CancelEdit(), ) )
Module BrwColMod.prg, class: TEditForGrid, line (aprox): 695

It will be available on next Xailer release.

Regards,

Re: tBrowseMod killfocus?

Publicado: Jue Mar 28, 2024 8:39 pm
por Maarten Roos
Hi, that does not working when using beGET_LISTBOX, beGET_CALENDAR etc.

Re: tBrowseMod killfocus?

Publicado: Lun Abr 01, 2024 5:24 pm
por ignacio
Hi,

It has been necessary to make more important modifications. With this message I attach the modified code. If you can try it, I would appreciate it.

Regards,

Re: tBrowseMod killfocus?

Publicado: Mié Abr 03, 2024 3:29 pm
por Maarten Roos
Hi! That appears to work :-)

Re: tBrowseMod killfocus?

Publicado: Jue Abr 04, 2024 2:34 pm
por ignacio
Hi,

Great! Thank you for the feedback.

Regards,