Just investigating a transition to FNC UI Components
Is this it or am I missing something ?
Simon
For the moment these are all the predefined styles that we have available.
It is set up in this way that you can always create your own styles to have available in multiple projects.
Most of the FNC controls also adapt to the VCL style.
If you find some that don’t work as expected please let us know.
FNCDataGrid doesn’t
Can you point out what exactly FNCDataGrid doesn’t? We have loaded the manager and applied a dark style with success. When setting AdaptToStyle it should also listen to VCL & FMX styles.
I am talking about the VCL Style provided with Delphi 13. When I apply Windows10 Dark style, I get this image:
If it’s supposed to work with vcl style, you could tell me what am I doing wrong?
FncStyleTest.zip (185.8 KB)
The FNC Styles manager is a separate way of styling (aside from VCL & FMX styles). If you want to apply the Windows10 Dark style on your VCL application, you need to set AdaptToStyle property to true on the component. There is no need for an FNC Styles manager then. AdaptToStyle is only viable for application styles.
I see that AdaptToStyle is set to true, so there must be something going wrong in the retrieval of colors. I’ll further investigate
I was about to say that I did activate the AdapToStyle. But you were faster
I will wait on you investigation.
Hi, we have investigated this here. The issue is complicated, but i’ll try to explain. When setting AdaptToStyle to true, it automatically picks up the appearance of the chosen style. Unfortunately, it’s not possible to load this style at designtime. When there is no style applied, it falls back to “Windows” style. the global cell appearance style is synchronized with the columns, and flags this in column settings. When applying a different style, such as the Windows10 Dark, during the load sequence, it gets mixed up with the default style loaded at designtime. The best option right now is to set AdaptToStyle to true in the constructor of the form, and add a fresh data grid.