Would anyone happen to know how to get the colour of a wxColourProperty? I've hacked it in by fiddling with the wrapper a little ( didn't need much ) and I can set it just fine, but I can't seem to get it. I've tried getting it as an object pointer and casting to wxColour or a wxColourValueProperty. I've tried getting it as a wxVariant and casting to a wxColour or a wxColourValueProperty. I even tried getting it as a wxVariant and casting it to a ulong or a string ( since these can be both represent colors, it seems. ) I've tried various snippets of code from the website ( including two from the wxPropertyGrid site itself, and one where all the text apart from the code was in chinese ) but I get a memory exception error no matter what.
It must be my expectations are wrong on what I'm getting with these functions, I guess. Perhaps someone with experience of the property grid in another language can point me in the right direction.
EDIT: Forgot to mention. When I get the variant and call GetType() it returns "wxColour" so I don't know why casting it never works.
It must be my expectations are wrong on what I'm getting with these functions, I guess. Perhaps someone with experience of the property grid in another language can point me in the right direction.
EDIT: Forgot to mention. When I get the variant and call GetType() it returns "wxColour" so I don't know why casting it never works.