Open klaus101 opened 1 day ago
Yes, problem present((
Thanks zamtmn! For to exclude possible side effects of recent updates, i tried with a somehow older verison (around June 2023); but it's the same.
It does feel for me as if calls are triggered or allowed to pass that affect the form's style. And this reminds me somehow on an older Lazarus issue about wrong pointer types shown here: https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/19321
procedure TForm2.FormActivate(Sender: TObject);
begin
SetClassLongPtr( Form2.WindowHandle, GCLP_HICON, 0);
end;
Remark: the testcase given at the end of the report behaves correctly for me with newer Lazarus version and light theme. Do you see any possible dependency, or any chance to track it down?
I don't have any thoughts on how to fix it yet((
Hi zamtmn, from another thread occasionally if found an ugly side effect definiively due to the dark theme:
It appears to me that at hint painting some calls are triggered affecting the dialog style of the form. Could you please try out the test project (you may want to replace the herein embedded metadarkstyle files by your own installation)? _prob_ModalDialog_without_icon.zip