Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Clear()

Help
2009-01-29
2013-05-22
  • Hi, quick question, I'm trying to remove all properties and categories from a wxPoropertyGridManager, but running Clear() on it results to nothing, am I missing something or is it not yet implemented?

    Thanks
    Krister

     
    • Jaakko Salli
      Jaakko Salli
      2009-01-29

      Yes, it is implemented and should work. You can try calling manager->GetPage(x)->Clear() or manager->GetGrid()->Clear() to see if they work better. Anyway, I'm going to need more info if I'm going to look into this.

      Regards,
        Jaakko

       
    • Hi, GetGrid()->Clear() worked well, thanks for that one.
      Don't know why the just Clear() didn't work, and don't know what information you need too look into it, but what I tried to do was just clear all the properties and categories if any, to insert other ones.

      Thanks for the help.
      Krister

       
      • Jaakko Salli
        Jaakko Salli
        2009-01-30

        Difference with manager->Clear() is that it removes all pages, while grid->Clear() instead deletes all properties on the current page. There is probably some subtle bug here that I may need to look into.

        Jaakko