wxEnumProperty with tree like popup list

Help
2009-01-19
2013-05-22
  • Hi!
    I am using PropertyGridManager and I need to add an EnumProperty which has a popup list of choices with tree like structure, someting like catagories with sub-lists.
    How can I do this?

    Thanks in advance!
    Slavena

     
    • Jaakko Salli
      Jaakko Salli
      2009-01-19

      You will need to create a new editor, ie. derive a new class from wxPGEditor - see the class reference for more info. Actual wxWidgets control to use is probably the wxComboCtrl. I recall there actually is a wxTreeCtrl-as-a-popup example in the wxWidgets/samples/combo.

      Regards,
      Jaakko