Possible Duplicate:
Why do I get “type has no typeinfo” error with an enum type
I have a component with a property like this:-
enum class Foo {VAL0, VAL1, VAL2, VAL4 =4};
class TDummy : public TComponent
{
...
Foo f;
TDummy() : f(Foo:VAL2) {};
__published:
__property Foo foo{ read = f, write = f};
}
However, when installed, the IDE object instpector doesn't give me a dropdown list of choices for 'foo', but just displays an edit field with the value '2' in it.
How can I get the IDE to show "VAL2" instead of "2", and display a dropdown list of choices VAL0/VAL1/VAL2, etc../?