Another Property doubt

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have my custom edit, and i add it some properties. I want that you can "only" select between some predefined options in the properties window.?

this can be? How?

Thanks in advantage.
 
Make your property type an enumeration and add your "predefined options" as
enum values.

- this is the easy way.

If you want more flexibility, you should look up UITypeEditor in MSDN

-vJ

Hector Martinez said:
I have my custom edit, and i add it some properties. I want that you
can "only" select between some predefined options in the properties window.?
 
Make the value an ENUM.
Realize however, that an enum value is basically an integer under the
covers, so people will be able to set the value to something else (outside
the properties browser) unless you also restrict the value in the mutator
(property Set block).

-Rob Teixeira [MVP]

Hector Martinez said:
I have my custom edit, and i add it some properties. I want that you
can "only" select between some predefined options in the properties window.?
 
Back
Top