There's no built in color filter, but you could write one yourself,
assuming you have enough self-loathing.
You see, there's nothing in the tree view object itself that provides
color information. So you're left with having to find the clip that
corresponds to the selected node, and obtaining color information from
that. The down side (or, one of the down sides) to that task is that
tree view nodes aren't always visible. You'd have to navigate the entire
tree, focusing and scrolling into view as you go to make each item
visible. Fortunately, the TreeViewItem object does have a ScrollTo
method. Unfortunately, there no easy way to get the rectangle for the
selected item to correlated with your clips. TreeViewItem does have a
Handle property, but it's not a handle that you could use with, say, the
Windows Find method. Doug humorously suggestion routing the mouse to
each node after its been made visible, and pulling the clip from it.
Honestly, I'm not sure I can think of a less humorous way to do it.
Aaron
On 2/23/2011 9:10 PM, J.J. Meddaugh wrote:
Hello. Suppose I have a treeview with various items, some of which are
in different colors. Is it possible to do a filter by color on the
treeview and return a list of items of just one color?
Thanks.
J.J. Meddaugh - A T Guys
Your source for Code Factory, the iBill, KNFB Reader, Sendero GPS,
audio games, braillers, and more!
http://www.atguys.com
--
Aaron Smith
Product Support Specialist * Web Development
GW Micro, Inc. * 725 Airport North Office Park, Fort Wayne, IN 46825
260-489-3671 * gwmicro.com
To insure that you receive proper support, please include all past
correspondence (where applicable), and any relevant information
pertinent to your situation when submitting a problem report to the GW
Micro Technical Support Team.