Vista Dialogs are disabled when themes are disabled
Original Reporter info from Mantis: kluug.net @onpok
-
Reporter name: Ondrej Pokorny
Original Reporter info from Mantis: kluug.net @onpok
- Reporter name: Ondrej Pokorny
Description:
When using Windows Vista or 7 with themes disabled, Lazarus does not show the new Vista-style dialog although it is available and should be used.
Steps to reproduce:
Disable themes in your Windows Vista or 7, place TOpenDialog on a form and call OpenDialog1.Execute. You'll see the old style dialog.
Additional information:
The bug is quite easy to fix, you just have to delete all "and ThemeServices.ThemesEnabled" in Win32WSDialogs.pp and Win32WSExtDlgs.pp. That's all.
E.g. from all
"if (WindowsVersion >= wvVista) and ThemeServices.ThemesEnabled then"
will be just
"if (WindowsVersion >= wvVista) then"
------------------
Just a remark: this bug was in Delphi 2009+ as well and got fixed in XE6:
http://qc.embarcadero.com/wc/qcmain.aspx?d=108284
http://qc.embarcadero.com/wc/qcmain.aspx?d=115389