stavarengo / delphi-tdi

Delphi class to create applications that work with tabs similar to what we see in browsers.
http://www.devmedia.com.br/artigo-clube-delphi-110-formularios-em-abas/14379
37 stars 22 forks source link

Exception regarding window focus #10

Open Zero3K opened 2 years ago

Zero3K commented 2 years ago

According to one developer, there is an exception regarding window focus that is happen. You commented in the code responsible for it the following:

"Although it never happened to me, some people warned me about a focus exception that the line below generates in very specific cases. I leave it uncommented and if you prefer you can comment the line below."

Can you fix it or not?

Zero3K commented 2 years ago

TDI.pas: 390 ''' {Embora comigo nunca tenha acontecido, algumas pessoas me avisaram sobre uma exceção de focus que a linha abaixo gera em casos bem especificos. Eu deixo descomentado e se você prefefir pode comentar a linha abaixo.} try Perform(WM_NEXTDLGCTL, 0, 0);//muda o foco para o primeiro controle do formulario //<<<<<< 390 except end;

Zero3K commented 2 years ago

The developer has fixed it by changing the code to be as shown in https://github.com/Zero3K/Tardsplaya/commit/660a6fe51890c11386f0f0da0b30e31a078ab23f.