#30 wxTreeListCtrl - FindItem not working


Actually it doesn't seem to be fully implemented. It searches only the node it was sent (actually I think it grabs the next node after the node you send it). I implemented a fix in my version however I don't think it fully works but in a nutshell all that I really needed to do was add a while loop to the method. Hope this helps.


  • Ronan Chartois

    Ronan Chartois - 2011-04-03
    • assigned_to: nobody --> pgriddev
    • priority: 5 --> 3
    • status: open --> open-accepted
  • Ronan Chartois

    Ronan Chartois - 2011-04-03

    Thanks for the input!

    The method works as documented: is searches from the next item onward, looking only at visible items (specifying no item results in a search from the root). It is meant as a core facility with which other methods can be implemented (e.g. in inherited classes).

    But agreed, the search is not multi-column; if nobody disagrees I will change the semantic of FindItem(item, str, node) from 'searching the main column' to 'searching all columns'. Drop a comment or email if that does not cover your needs !

    Priority reduced because the method can be implemented easily in an inherited class.

  • Ronan Chartois

    Ronan Chartois - 2011-09-26

    By default FindItem() will now search all columns instead of the main column only.
    It is also possible to specify a column to restrict the search

    checked in SVN, will be part of the next release.

  • Ronan Chartois

    Ronan Chartois - 2011-09-26
    • status: open-accepted --> pending-fixed

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks