Hi Team,
I am updating a piece of code to D10.3 and have reached a confusing point.
The original code is..
{code}
if ThemesEnabled then DrawElement(Canvas.Handle,GetElementDetails(tebExplorerBarRoot), ClientRect)
else
....
{code}
To this I was getting the message at build time.. "[dcc32 Warning] myprocs.pas(123🙂 W1000 Symbol 'ThemesEnabled' is deprecated: 'Use TCustomStyleServices.Enabled'"
So, I changed the code to..
{code}
// if ThemesEnabled then
if TCustomStyleServices.Enabled then DrawElement(Canvas.Handle,GetElementDetails(tebExplorerBarRoot), ClientRect)
else
...
{code}
Now I get the message.. "[dcc32 Error] myprocs.pas(123😞 E2233 Property 'Enabled' inaccessible here"
Clearly I have done something untoward. How should I correct this please?
Regards & TIA,
Ian