Hi David,

Here’s a lazy man’s point of view:  why not just have 3 groups of checkboxes in 
one dialog; the first group (at the top of the dialog) would be “shirt”, the 
second (below the “shirt” group), would be “pants,” and the third group (below 
“pants”) would be “socks.”  So, all you would need to do is tab around and 
check/uncheck to your heart’s content. 

Cheers,

Rod 

From: David 
Sent: Saturday, March 30, 2013 10:01 AM
To: [email protected] 
Subject: Suggestion needed, is a Treeview the right thing?

I am about to start out on a new project. But I want to do things the better 
way, first go. .)

If I, in short terms, would describe the feature I am trying to figure how to, 
let me give this example.

Imagine we have three main levels. Let's for the ease of the example, say they 
are:
    Shirt
    Pant
    Socks

. Now imagine, we have subcategories of each, giving different colors, and 
maybe even subcategories from there, giving the shades. So, the whole 
structure, would look like this:

    Shirt
        Green
        White
        Blue
    pant
        green
        red
        black
    socks
        green
            light
            dark
        white
        blue
            sky
            ocean
            navy
        Black
        Yellow.


My first idea, would be to put all of this into a treeview. Thing is, that I 
wanted to have the chance of "checking" the different entries. That is, a 
person should be able to put a check mark, at the Green, under both Shirt and 
Pant. Maybe even check both Green and and white, for the shirt, and green for 
the pant.

I have never constructed a treeview, and I don't even know, if it is possible 
in a rather simple way - to accomplish what I here am attempting to do. Hence, 
my first question would be, is a treeview the right way to go? Secondly, is it 
even possible to do what I want? And thirdly, is there any tutorial, or 
scripting samples, that would address this kind of task. Preferably, something 
that does not contain thousand of lines, in a high-tech and fancy script. 

Ok, I do understand, I would have to deal with dialogs, and treeviews or 
whatever, from an XML. Fine enough, but what would be suggested from some of 
you more experienced developers out there?

Thanks alot for any feedback,

Reply via email to