Re: [Lazarus] Order of OnCreate and OnActivate in Qt4

2018-11-26 Thread Kostas Michalopoulos via lazarus
I wouldn't rely on event order as anything between the creation to Application.Run could call Application.ProcessMessages - including some components/controls you may be using. As a rule of thumb you should assume that after calling a control (or form) that it can start receiving events. In Qt4 st

[Lazarus] TDBNavigator enabled buttons

2018-11-26 Thread Santiago A. via lazarus
Hello: I'm working with lazarus (Win32, 2.0 Rc2 + ZeosLib) When a not-readonly dataset is in browse state, all the buttons in navigator are enabled except post and cancel. When dataset enters in  edit or insert mode,  post and cancel are enabled and only edit button is disabled. I expected th

Re: [Lazarus] Order of OnCreate and OnActivate in Qt4

2018-11-26 Thread Vojtěch Čihák via lazarus
Thanks, Kostas, especially part about Qt styling.   I answered my solution yesterday, but it didn't appear in ML, it went to zejlko only - I noticed later. So here it is:   I don't have QtNativeEventFilter in qtdefines.inc at all. However, I found simple workaround. I create main form with Visibl