Page 1 of 1

X15 Dialogue Caption Background Mixed Colours

Posted: Tue Aug 09, 2022 3:12 am
by simpsonp
Hi,

We've just moved from X6 to X15 and all is working very well apart from the background colour in the dialogue caption now having mixed background colours on Windows 11 (on Windows 10 it looks just as X6 did).

The caption background is uniformly dark across the whole dialogue when viewed in the editor and in the editor Test mode. However, the generated installer shows a mixed colour caption background with the area immediately under the text having the expected background colour while the rest of the area is light grey.

As a test I created the most basic installer possible using the QuickStart Wizard and this also shows the issue. In the attached PDF I have included screen shots from the test together with details of my Windows 11 colour choices.

Is this something I can fix myself through configuration or is it a bug?

Many thanks, Peter

Re: X15 Dialogue Caption Background Mixed Colours

Posted: Wed Aug 10, 2022 3:50 am
by pfennig
Same here. I didn't find anything to change it.
Setup Windows 11 - light theme with blue accent color.png
Setup Windows 11 - light theme with blue accent color.png (115.13 KiB) Viewed 10244 times

Re: X15 Dialogue Caption Background Mixed Colours

Posted: Sun Aug 14, 2022 12:02 pm
by simpsonp
It seems that I'm not alone in seeing this, I was just wondering whether the dev team have been able to reproduce the issue?

Best wishes, Peter

Re: X15 Dialogue Caption Background Mixed Colours

Posted: Sun Aug 14, 2022 12:58 pm
by pfennig
Seems I found it. There's a Glass tab in the Dialog designer, with a component called VistaGlass. It has to be placed on each form, with GlassEnabled set to True and GlassTop to 34.
InstallAware's sample projects mostly use it. So the 34 isn't a number I made up myself :)
You may have to put a replacement for the system icon and the title caption into the client area of the form.

Re: X15 Dialogue Caption Background Mixed Colours

Posted: Mon Aug 15, 2022 6:55 am
by simpsonp
Thanks for posting your work-round. In my tests this approach makes the form icon and caption disappear, I'm really looking for a solution that makes the dialogues appear just as they do in the dialogue designer.

Best wishes, Peter

Re: X15 Dialogue Caption Background Mixed Colours

Posted: Mon Aug 15, 2022 9:12 am
by pfennig
Yes, I see, my solution wasn't what you were looking for.

It is really a strange behaviour. Our setups that were built with X14 and released only a couple of weeks before the release of X15 still look OK.

PS.: So far, I didn't find a single application that has such a broken title bar under Windows 11.

Re: X15 Dialogue Caption Background Mixed Colours

Posted: Mon Aug 15, 2022 5:06 pm
by simpsonp
My guess is that this issue came in with the Mica and Dark Mode support that was new in X15.

Hopefully Francesco can give us an update on assessment and timescale for a fix.

Best wishes, Peter

Re: X15 Dialogue Caption Background Mixed Colours

Posted: Tue Aug 16, 2022 6:20 am
by FrancescoT
Dear Peter,

We are aware of the issue with the Mica Mode. Sadly Windows 11 is a moving target and this behavior can change from day to day, as updates are rolled out from Microsoft.

We expect these issues to be resolved as the OS settles down gradually over time.

Unfortunately, currently the only workaround is with disabling the VistaGlass to get rid of this kind of caption. However, this will also eliminate the Mica surface at the bottom of the dialog.

Hope this helps you.

Re: X15 Dialogue Caption Background Mixed Colours

Posted: Wed Aug 17, 2022 1:42 am
by pfennig
Our dialog's theme didn't use VistaGlass until now. We're using it now for testing purposes to get rid of this bug. But we're undecided, whether or not to live with the bug or the empty titlebar.
For what it's worth, the bug appears in all setups built with X14 as well, but not in in those built with prior versions.

Re: X15 Dialogue Caption Background Mixed Colours

Posted: Wed Aug 17, 2022 8:29 am
by simpsonp
Thanks for the update Francesco.

I've currently got VistaGlass turned on but with SheetOfGlass turned off. This results in missing captions on WIn 10/11 but I already have our brand icon and the dialogue title in the body of the each form so I realised that I could do without the caption and top left corner icon.

Thankfully I don't have any "brand police" to worry about in our open source project! :D

Best wishes, Peter

Re: X15 Dialogue Caption Background Mixed Colours

Posted: Wed Aug 17, 2022 9:08 am
by pfennig
I testet SheetOfGlass, too, but turned it off again. In our custom made welcome dialog with language selection, the listbox with the languages was horribly flickering.
But generally we decided to keep the VistaGlass component.

Re: X15 Dialogue Caption Background Mixed Colours

Posted: Mon Oct 31, 2022 9:11 am
by FrancescoT
This has been fixed by the latest IA x15 minor update v.32.22.
- Caption painting with Glass on Windows 11 (all versions)

Re: X15 Dialogue Caption Background Mixed Colours

Posted: Wed Nov 16, 2022 6:56 am
by pfennig
Thanks.