Home > front end >  Cannot invoke the latest Common Dialogs when using custom styles, only when using Windows theme
Cannot invoke the latest Common Dialogs when using custom styles, only when using Windows theme

Time:06-16

I have an application which uses Windows11 Modern styles (Light and Dark).

It seems that any of the custom styles default the Common Dialogs to use the old-style dialogs, which means the dialogs do not show mapped network drives, etc. If I revert to the default Windows theme, all the dialogs correctly show the mapped network drives.

I have UseLatestCommonDialogs:=true, but this seems to be ignored when using themes. Tried before and after setting the StyleManager to the appropriate style.

How can I force the application to show this is the dialog style? enter image description here

This is the dialog style I get when using "Windows11 Modern Light" enter image description here

CodePudding user response:

I have found a solution using vcl-style-utils

This library supports Classic and Modern styles and works well on hi-Res screens.

  • Related