PDA

View Full Version : Windows 10 theme in DataFlex 2022



Peter van Mil
17-Nov-2021, 10:10 AM
In the commnandbar classes I am missing the support for the Windows 10 theme. The Windows 10 theme (Windows10.dll) is new in CodeJock 20.0.0. The constant xtpThemeNativeWindows10 is defined in cCJCommandBars.pkg, but it isn't applied in the cCJCommandBarSystem class.

Does DAW have plans to support this in the released version of DataFlex 2022?

Russell McDougall
17-Nov-2021, 02:01 PM
Peter try this
Send ApplyVisualTheme "Windows10.dll" "Windows10Light.ini"
I have it in Procedure OnCreateCommandBars in a subclass based on cSigCJRibbonBar


There are two Ini themes within the Windows10.dll
1. Windows10Light.ini
2. Windows10Dark.ini

I have already posted that the inbuilt xtpTheNativeWindows10 is faulty logic. It needs to be altered for the two ini themes.

Russell McDougall
17-Nov-2021, 03:24 PM
15024

A bit insipid but this is the light theme

Peter van Mil
17-Nov-2021, 05:53 PM
Hi Russell,

Sometimes things a easier than expected. I never used the ptrocedure ApplyVisualTheme like this, but it works.


Procedure OnCreateCommandBars
Forward Send OnCreateCommandBars


// Send ApplyVisualTheme xtpThemeOffice2013 "Office2016.dll" "Office2016OutlookWhite.ini"
Send ApplyVisualTheme xtpThemeNativeWindows10 "Windows10.dll" "Windows10Light.ini"
End_Procedure