Hi,
I'm trying to retrieve the current skin ContentEvenColor (odd) but I'm getting an A.V
in:
GetExtendedStylePainters()->GetPainterData(APainter, APainterInfo)
Could you please provide me a code sample of how to correctly retrieve this
information from the current selected skin?
TIA,
Eduardo
We have closed this ticket because another page addresses its subject:
Get Skin color for NavBar
Hi Eduardo,
We discussed this topic in other reports, posted to this Support Center. For example, take a look at report Q96392 ("Get Skin color for NavBar"). It refers to other threads, which contain the necessary information.
Thanks,
Serge
Hi,
I attached a sample project that generates the Access Violation when trying to get Skin colors.
Please run it to see what I meant.
TIA,
Eduardo
Hi
The TcxExtendedStylePainterInfo::GetPainterData() method requires an address as the 2nd parameter:
bool __fastcall GetPainterData(TMetaClass* APainter, void *Data);
So, please change your code as follows:
Thanks,
Serge