The GW-Scripting list is a discussion list for information regarding the development and use of Window-Eyes scripts. Any subscriber of the GW-Scripting list has the ability to post on-topic messages.
From:
"BX" <bronx_lab@fltg.net>Subject:
Re: Suggestion needed, is a Treeview the right thing?Date:
Mon, Apr 1, 2013 12:28:32 pmThis is a multi-part message in MIME format.
------=_NextPart_000_0009_01CE2ED4.6D3C35D0
Content-Type: text/plain;
charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Hi Dave,
Chip's suggestion is what I do with my Uninstall program. You will note depending on what tree view item is selected I enable the button corresponding to it. So, my program has everything there you will need. Maybe I lacked in organization for once I wrote it I did not have time to go back and clean it up...
So take a good look at the mainproc and how I enable those buttons. Also download my Uninstall program and get the entire picture on it.
Bruce
Sent: Monday, April 01, 2013 11:47 AM
Subject: RE: Suggestion needed, is a Treeview the right thing?
David,
I think your intuition is good here; when you have choices broken into groups or categories, and especially when the number of these groups might vary so that you can’t design a static dialog setup for just these groups, then a treeview (a multi-select treeview in your case) does sound like the best choice.
Perhaps you’ll want to add a command button so that it will read out to the user a summary of the items which are selected under the current top-level grouping, if that information makes sense for a user to want in your application.
Good luck,
Chip
p.s.
I think there are several apps from GW (Aaron) which show the use of treeviews (one called TreeView, another is UIDesign, and you can still get to older versions of the appGet app to see their source code, and it used a TreeView).
From: David [mailto:trailerdavid@hotmail.com]
Sent: Saturday, March 30, 2013 1:44 PM
To: gw-scripting@gwmicro.com
Subject: Re: Suggestion needed, is a Treeview the right thing?
Well fact is, that the project is going to have more like 50 entries on the main level, and up to five sub-level on some of the entries. That is why, I don't think a load of checkboxes would do. It would not even fit into a screen. The total list, including all sub-lists, holds more than 300 entries.
And, you are not just to decide Shirt, Pant or Socks. You will also choose the color, and if available the shade. So, you can choose only pants (with no color choice), and Shirt with the color green, and for socks, you can choose both black and Blue. Do you choose blue socks, there is the choices of Skyblue, Navy or Ocean blue. If you have the chance, please look at the short list I provided, and pay attention to the levelling of each entry, and you will see how they are connected with each other.
I could have made a multi-selection list, but then the user will have to scroll through a ton of colors, for each piece of cloth. All of this, was the reason, why I thought of a treeview, as it would give the user a quick way of scrolling down to the cloth he wanted, then expand that one, and check the colors he wanted.
But apparently I was not explaining this well enough. Thanks anyway for the ideas. They would have worked in a simpler project, but I have a feeling it would be hard to have to tab through several hundred checkboxes for putting together an outfit. :)
Regards,
----- Original Message -----
From: Rod Hutton
To: gw-scripting@gwmicro.com
Sent: Saturday, March 30, 2013 6:20 PM
Subject: Re: Suggestion needed, is a Treeview the right thing?
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: gw-scripting@gwmicro.com
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,
------=_NextPart_000_0009_01CE2ED4.6D3C35D0
Content-Type: text/html;
charset="utf-8"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:v =
"urn:schemas-microsoft-com:vml" xmlns:o =
"urn:schemas-microsoft-com:office:office" xmlns:w =
"urn:schemas-microsoft-com:office:word" xmlns:m =
"http://schemas.microsoft.com/office/2004/12/omml"><HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19403"><!--[if !mso]>
<STYLE>v:* {
BEHAVIOR: url(#default#VML)
}
o:* {
BEHAVIOR: url(#default#VML)
}
w:* {
BEHAVIOR: url(#default#VML)
}
..shape {
BEHAVIOR: url(#default#VML)
}
</STYLE>
<![endif]-->
<STYLE><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
..MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></STYLE>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></HEAD>
<BODY lang=EN-US link=blue bgColor=white vLink=purple>
<DIV><FONT size=2 face=Arial>Hi Dave,</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial> Chip's suggestion is what I do
with my Uninstall program. You will note depending on what tree view item is
selected I enable the button corresponding to it. So, my program has everything
there you will need. Maybe I lacked in organization for once I wrote it I did
not have time to go back and clean it up...</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial> So take a good look at the
mainproc and how I enable those buttons. Also download my Uninstall program and
get the entire picture on it.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>
Bruce</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<BLOCKQUOTE
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px"
dir=ltr>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, April 01, 2013 11:47
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> RE: Suggestion needed, is a
Treeview the right thing?</DIV>
<DIV><BR></DIV>
<DIV class=WordSection1>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">David,<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt"><o:p> </o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">I
think your intuition is good here; when you have choices broken into groups or
categories, and especially when the number of these groups might vary so that
you can’t design a static dialog setup for just these groups, then a treeview
(a multi-select treeview in your case) does sound like the best
choice.<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt"><o:p> </o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">Perhaps
you’ll want to add a command button so that it will read out to the user a
summary of the items which are selected under the current top-level
grouping, if that information makes sense for a user to want in your
application.<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt"><o:p> </o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">Good
luck,<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt"><o:p> </o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">Chip<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt"><o:p> </o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt"><o:p> </o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">p.s.<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">I
think there are several apps from GW (Aaron) which show the use of treeviews
(one called TreeView, another is UIDesign, and you can still get to older
versions of the appGet app to see their source code, and it used a
TreeView).<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt"><o:p> </o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt"><o:p> </o:p></SPAN></P>
<DIV>
<DIV
style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<P class=MsoNormal><B><SPAN
style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt">From:</SPAN></B><SPAN
style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"> David
[mailto:trailerdavid@hotmail.com] <BR><B>Sent:</B> Saturday, March 30, 2013
1:44 PM<BR><B>To:</B> gw-scripting@gwmicro.com<BR><B>Subject:</B> Re:
Suggestion needed, is a Treeview the right
thing?<o:p></o:p></SPAN></P></DIV></DIV>
<P class=MsoNormal><o:p> </o:p></P>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt">Well fact is, that
the project is going to have more like 50 entries on the main level, and up to
five sub-level on some of the entries. That is why, I don't think a load of
checkboxes would do. It would not even fit into a screen. The total list,
including all sub-lists, holds more than 300
entries.</SPAN><o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal> <o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt">And, you are not
just to decide Shirt, Pant or Socks. You will also choose the color, and if
available the shade. So, you can choose only pants (with no color choice), and
Shirt with the color green, and for socks, you can choose both black and Blue.
Do you choose blue socks, there is the choices of Skyblue, Navy or Ocean blue.
If you have the chance, please look at the short list I provided, and pay
attention to the levelling of each entry, and you will see how they are
connected with each other.</SPAN><o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal> <o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt">I could have made a
multi-selection list, but then the user will have to scroll through a ton of
colors, for each piece of cloth. All of this, was the reason, why I thought of
a treeview, as it would give the user a quick way of scrolling down to the
cloth he wanted, then expand that one, and check the colors he wanted.
</SPAN><o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal> <o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt">But apparently I
was not explaining this well enough. Thanks anyway for the ideas. They would
have worked in a simpler project, but I have a feeling it would be hard to
have to tab through several hundred checkboxes for putting together an outfit.
:) </SPAN><o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal> <o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt">Regards,</SPAN><o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal> <o:p></o:p></P></DIV>
<BLOCKQUOTE
style="BORDER-BOTTOM: medium none; BORDER-LEFT: black 1.5pt solid; PADDING-BOTTOM: 0in; MARGIN: 5pt 0in 5pt 3.75pt; PADDING-LEFT: 4pt; PADDING-RIGHT: 0in; BORDER-TOP: medium none; BORDER-RIGHT: medium none; PADDING-TOP: 0in">
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt">----- Original
Message ----- <o:p></o:p></SPAN></P></DIV>
<DIV>
<P style="BACKGROUND: #e4e4e4" class=MsoNormal><B><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt">From:</SPAN></B><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt"> <A
title=rhstuff@sympatico.ca href="mailto:rhstuff@sympatico.ca">Rod Hutton</A>
<o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><B><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt">To:</SPAN></B><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt"> <A
title=gw-scripting@gwmicro.com
href="mailto:gw-scripting@gwmicro.com">gw-scripting@gwmicro.com</A>
<o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><B><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt">Sent:</SPAN></B><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt"> Saturday, March
30, 2013 6:20 PM<o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><B><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt">Subject:</SPAN></B><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt"> Re: Suggestion
needed, is a Treeview the right thing?<o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><o:p> </o:p></P></DIV>
<DIV>
<DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; FONT-SIZE: 10pt">Hi
David,<o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; FONT-SIZE: 10pt"> <o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; FONT-SIZE: 10pt">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. <IMG id=_x0000_i1025
border=0 alt=Smile src="cid:D0DAA0879B964C33A71B15A6FFA018FC@RoderickH43771"
width=32 height=32><o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; FONT-SIZE: 10pt"> <o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; FONT-SIZE: 10pt">Cheers,<o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; FONT-SIZE: 10pt"> <o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; FONT-SIZE: 10pt">Rod
<IMG id=_x0000_i1026 border=0 alt=Smile
src="cid:D0DAA0879B964C33A71B15A6FFA018FC@RoderickH43771" width=32
height=32><o:p></o:p></SPAN></P></DIV>
<DIV>
<DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; FONT-SIZE: 10pt"> <o:p></o:p></SPAN></P></DIV>
<DIV>
<DIV>
<P style="BACKGROUND: whitesmoke" class=MsoNormal><B><SPAN
style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; FONT-SIZE: 10pt">From:</SPAN></B><SPAN
style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; FONT-SIZE: 10pt">
<A title=trailerdavid@hotmail.com
href="mailto:trailerdavid@hotmail.com">David</A>
<o:p></o:p></SPAN></P></DIV>
<DIV>
<P style="BACKGROUND: whitesmoke" class=MsoNormal><B><SPAN
style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; FONT-SIZE: 10pt">Sent:</SPAN></B><SPAN
style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; FONT-SIZE: 10pt">
Saturday, March 30, 2013 10:01 AM<o:p></o:p></SPAN></P></DIV>
<DIV>
<P style="BACKGROUND: whitesmoke" class=MsoNormal><B><SPAN
style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; FONT-SIZE: 10pt">To:</SPAN></B><SPAN
style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; FONT-SIZE: 10pt">
<A title=gw-scripting@gwmicro.com
href="mailto:gw-scripting@gwmicro.com">gw-scripting@gwmicro.com</A>
<o:p></o:p></SPAN></P></DIV>
<DIV>
<P style="BACKGROUND: whitesmoke" class=MsoNormal><B><SPAN
style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; FONT-SIZE: 10pt">Subject:</SPAN></B><SPAN
style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; FONT-SIZE: 10pt">
Suggestion needed, is a Treeview the right
thing?<o:p></o:p></SPAN></P></DIV></DIV></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"> <o:p></o:p></SPAN></P></DIV></DIV>
<DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; FONT-SIZE: 10pt">I
am about to start out on a new project. But I want to do things the better
way, first go. .)</SPAN><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"><o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"> <o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; FONT-SIZE: 10pt">If
I, in short terms, would describe the feature I am trying to figure how to,
let me give this example.</SPAN><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"><o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"> <o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; FONT-SIZE: 10pt">Imagine
we have three main levels. Let's for the ease of the example, say they
are:</SPAN><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"><o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; FONT-SIZE: 10pt">
Shirt</SPAN><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"><o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; FONT-SIZE: 10pt">
Pant</SPAN><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"><o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; FONT-SIZE: 10pt">
Socks</SPAN><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"><o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"> <o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; FONT-SIZE: 10pt">.
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:</SPAN><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"><o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"> <o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; FONT-SIZE: 10pt">
Shirt</SPAN><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"><o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; FONT-SIZE: 10pt">
Green</SPAN><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"><o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; FONT-SIZE: 10pt">
White</SPAN><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"><o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; FONT-SIZE: 10pt">
Blue</SPAN><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"><o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; FONT-SIZE: 10pt">
pant</SPAN><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"><o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; FONT-SIZE: 10pt">
green</SPAN><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"><o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; FONT-SIZE: 10pt">
red</SPAN><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"><o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; FONT-SIZE: 10pt">
black</SPAN><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"><o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; FONT-SIZE: 10pt">
socks</SPAN><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"><o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; FONT-SIZE: 10pt">
green</SPAN><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"><o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; FONT-SIZE: 10pt">
light</SPAN><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"><o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; FONT-SIZE: 10pt">
dark</SPAN><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"><o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; FONT-SIZE: 10pt">
white</SPAN><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"><o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; FONT-SIZE: 10pt">
blue</SPAN><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"><o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; FONT-SIZE: 10pt">
sky</SPAN><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"><o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; FONT-SIZE: 10pt">
ocean</SPAN><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"><o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; FONT-SIZE: 10pt">
navy</SPAN><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"><o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; FONT-SIZE: 10pt">
Black</SPAN><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"><o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; FONT-SIZE: 10pt">
Yellow.</SPAN><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"><o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"> <o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"> <o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; FONT-SIZE: 10pt">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.</SPAN><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"><o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"> <o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; FONT-SIZE: 10pt">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. </SPAN><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"><o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"> <o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; FONT-SIZE: 10pt">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?</SPAN><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"><o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"> <o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; FONT-SIZE: 10pt">Thanks
alot for any feedback,</SPAN><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"><o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"> <o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"> <o:p></o:p></SPAN></P></DIV></DIV></DIV></DIV></BLOCKQUOTE></DIV></BLOCKQUOTE></BODY></HTML>
------=_NextPart_000_0009_01CE2ED4.6D3C35D0--
------=_NextPart_000_0009_01CE2ED4.6D3C35D0
Content-Type: text/plain;
charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Hi Dave,
Chip's suggestion is what I do with my Uninstall program. You will note depending on what tree view item is selected I enable the button corresponding to it. So, my program has everything there you will need. Maybe I lacked in organization for once I wrote it I did not have time to go back and clean it up...
So take a good look at the mainproc and how I enable those buttons. Also download my Uninstall program and get the entire picture on it.
Bruce
Sent: Monday, April 01, 2013 11:47 AM
Subject: RE: Suggestion needed, is a Treeview the right thing?
David,
I think your intuition is good here; when you have choices broken into groups or categories, and especially when the number of these groups might vary so that you can’t design a static dialog setup for just these groups, then a treeview (a multi-select treeview in your case) does sound like the best choice.
Perhaps you’ll want to add a command button so that it will read out to the user a summary of the items which are selected under the current top-level grouping, if that information makes sense for a user to want in your application.
Good luck,
Chip
p.s.
I think there are several apps from GW (Aaron) which show the use of treeviews (one called TreeView, another is UIDesign, and you can still get to older versions of the appGet app to see their source code, and it used a TreeView).
From: David [mailto:trailerdavid@hotmail.com]
Sent: Saturday, March 30, 2013 1:44 PM
To: gw-scripting@gwmicro.com
Subject: Re: Suggestion needed, is a Treeview the right thing?
Well fact is, that the project is going to have more like 50 entries on the main level, and up to five sub-level on some of the entries. That is why, I don't think a load of checkboxes would do. It would not even fit into a screen. The total list, including all sub-lists, holds more than 300 entries.
And, you are not just to decide Shirt, Pant or Socks. You will also choose the color, and if available the shade. So, you can choose only pants (with no color choice), and Shirt with the color green, and for socks, you can choose both black and Blue. Do you choose blue socks, there is the choices of Skyblue, Navy or Ocean blue. If you have the chance, please look at the short list I provided, and pay attention to the levelling of each entry, and you will see how they are connected with each other.
I could have made a multi-selection list, but then the user will have to scroll through a ton of colors, for each piece of cloth. All of this, was the reason, why I thought of a treeview, as it would give the user a quick way of scrolling down to the cloth he wanted, then expand that one, and check the colors he wanted.
But apparently I was not explaining this well enough. Thanks anyway for the ideas. They would have worked in a simpler project, but I have a feeling it would be hard to have to tab through several hundred checkboxes for putting together an outfit. :)
Regards,
----- Original Message -----
From: Rod Hutton
To: gw-scripting@gwmicro.com
Sent: Saturday, March 30, 2013 6:20 PM
Subject: Re: Suggestion needed, is a Treeview the right thing?
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: gw-scripting@gwmicro.com
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,
------=_NextPart_000_0009_01CE2ED4.6D3C35D0
Content-Type: text/html;
charset="utf-8"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:v =
"urn:schemas-microsoft-com:vml" xmlns:o =
"urn:schemas-microsoft-com:office:office" xmlns:w =
"urn:schemas-microsoft-com:office:word" xmlns:m =
"http://schemas.microsoft.com/office/2004/12/omml"><HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19403"><!--[if !mso]>
<STYLE>v:* {
BEHAVIOR: url(#default#VML)
}
o:* {
BEHAVIOR: url(#default#VML)
}
w:* {
BEHAVIOR: url(#default#VML)
}
..shape {
BEHAVIOR: url(#default#VML)
}
</STYLE>
<![endif]-->
<STYLE><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
..MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></STYLE>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></HEAD>
<BODY lang=EN-US link=blue bgColor=white vLink=purple>
<DIV><FONT size=2 face=Arial>Hi Dave,</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial> Chip's suggestion is what I do
with my Uninstall program. You will note depending on what tree view item is
selected I enable the button corresponding to it. So, my program has everything
there you will need. Maybe I lacked in organization for once I wrote it I did
not have time to go back and clean it up...</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial> So take a good look at the
mainproc and how I enable those buttons. Also download my Uninstall program and
get the entire picture on it.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>
Bruce</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<BLOCKQUOTE
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px"
dir=ltr>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, April 01, 2013 11:47
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> RE: Suggestion needed, is a
Treeview the right thing?</DIV>
<DIV><BR></DIV>
<DIV class=WordSection1>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">David,<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt"><o:p> </o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">I
think your intuition is good here; when you have choices broken into groups or
categories, and especially when the number of these groups might vary so that
you can’t design a static dialog setup for just these groups, then a treeview
(a multi-select treeview in your case) does sound like the best
choice.<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt"><o:p> </o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">Perhaps
you’ll want to add a command button so that it will read out to the user a
summary of the items which are selected under the current top-level
grouping, if that information makes sense for a user to want in your
application.<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt"><o:p> </o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">Good
luck,<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt"><o:p> </o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">Chip<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt"><o:p> </o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt"><o:p> </o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">p.s.<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">I
think there are several apps from GW (Aaron) which show the use of treeviews
(one called TreeView, another is UIDesign, and you can still get to older
versions of the appGet app to see their source code, and it used a
TreeView).<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt"><o:p> </o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt"><o:p> </o:p></SPAN></P>
<DIV>
<DIV
style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<P class=MsoNormal><B><SPAN
style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt">From:</SPAN></B><SPAN
style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"> David
[mailto:trailerdavid@hotmail.com] <BR><B>Sent:</B> Saturday, March 30, 2013
1:44 PM<BR><B>To:</B> gw-scripting@gwmicro.com<BR><B>Subject:</B> Re:
Suggestion needed, is a Treeview the right
thing?<o:p></o:p></SPAN></P></DIV></DIV>
<P class=MsoNormal><o:p> </o:p></P>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt">Well fact is, that
the project is going to have more like 50 entries on the main level, and up to
five sub-level on some of the entries. That is why, I don't think a load of
checkboxes would do. It would not even fit into a screen. The total list,
including all sub-lists, holds more than 300
entries.</SPAN><o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal> <o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt">And, you are not
just to decide Shirt, Pant or Socks. You will also choose the color, and if
available the shade. So, you can choose only pants (with no color choice), and
Shirt with the color green, and for socks, you can choose both black and Blue.
Do you choose blue socks, there is the choices of Skyblue, Navy or Ocean blue.
If you have the chance, please look at the short list I provided, and pay
attention to the levelling of each entry, and you will see how they are
connected with each other.</SPAN><o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal> <o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt">I could have made a
multi-selection list, but then the user will have to scroll through a ton of
colors, for each piece of cloth. All of this, was the reason, why I thought of
a treeview, as it would give the user a quick way of scrolling down to the
cloth he wanted, then expand that one, and check the colors he wanted.
</SPAN><o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal> <o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt">But apparently I
was not explaining this well enough. Thanks anyway for the ideas. They would
have worked in a simpler project, but I have a feeling it would be hard to
have to tab through several hundred checkboxes for putting together an outfit.
:) </SPAN><o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal> <o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt">Regards,</SPAN><o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal> <o:p></o:p></P></DIV>
<BLOCKQUOTE
style="BORDER-BOTTOM: medium none; BORDER-LEFT: black 1.5pt solid; PADDING-BOTTOM: 0in; MARGIN: 5pt 0in 5pt 3.75pt; PADDING-LEFT: 4pt; PADDING-RIGHT: 0in; BORDER-TOP: medium none; BORDER-RIGHT: medium none; PADDING-TOP: 0in">
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt">----- Original
Message ----- <o:p></o:p></SPAN></P></DIV>
<DIV>
<P style="BACKGROUND: #e4e4e4" class=MsoNormal><B><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt">From:</SPAN></B><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt"> <A
title=rhstuff@sympatico.ca href="mailto:rhstuff@sympatico.ca">Rod Hutton</A>
<o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><B><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt">To:</SPAN></B><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt"> <A
title=gw-scripting@gwmicro.com
href="mailto:gw-scripting@gwmicro.com">gw-scripting@gwmicro.com</A>
<o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><B><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt">Sent:</SPAN></B><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt"> Saturday, March
30, 2013 6:20 PM<o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><B><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt">Subject:</SPAN></B><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt"> Re: Suggestion
needed, is a Treeview the right thing?<o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><o:p> </o:p></P></DIV>
<DIV>
<DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; FONT-SIZE: 10pt">Hi
David,<o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; FONT-SIZE: 10pt"> <o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; FONT-SIZE: 10pt">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. <IMG id=_x0000_i1025
border=0 alt=Smile src="cid:D0DAA0879B964C33A71B15A6FFA018FC@RoderickH43771"
width=32 height=32><o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; FONT-SIZE: 10pt"> <o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; FONT-SIZE: 10pt">Cheers,<o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; FONT-SIZE: 10pt"> <o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; FONT-SIZE: 10pt">Rod
<IMG id=_x0000_i1026 border=0 alt=Smile
src="cid:D0DAA0879B964C33A71B15A6FFA018FC@RoderickH43771" width=32
height=32><o:p></o:p></SPAN></P></DIV>
<DIV>
<DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; FONT-SIZE: 10pt"> <o:p></o:p></SPAN></P></DIV>
<DIV>
<DIV>
<P style="BACKGROUND: whitesmoke" class=MsoNormal><B><SPAN
style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; FONT-SIZE: 10pt">From:</SPAN></B><SPAN
style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; FONT-SIZE: 10pt">
<A title=trailerdavid@hotmail.com
href="mailto:trailerdavid@hotmail.com">David</A>
<o:p></o:p></SPAN></P></DIV>
<DIV>
<P style="BACKGROUND: whitesmoke" class=MsoNormal><B><SPAN
style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; FONT-SIZE: 10pt">Sent:</SPAN></B><SPAN
style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; FONT-SIZE: 10pt">
Saturday, March 30, 2013 10:01 AM<o:p></o:p></SPAN></P></DIV>
<DIV>
<P style="BACKGROUND: whitesmoke" class=MsoNormal><B><SPAN
style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; FONT-SIZE: 10pt">To:</SPAN></B><SPAN
style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; FONT-SIZE: 10pt">
<A title=gw-scripting@gwmicro.com
href="mailto:gw-scripting@gwmicro.com">gw-scripting@gwmicro.com</A>
<o:p></o:p></SPAN></P></DIV>
<DIV>
<P style="BACKGROUND: whitesmoke" class=MsoNormal><B><SPAN
style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; FONT-SIZE: 10pt">Subject:</SPAN></B><SPAN
style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; FONT-SIZE: 10pt">
Suggestion needed, is a Treeview the right
thing?<o:p></o:p></SPAN></P></DIV></DIV></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"> <o:p></o:p></SPAN></P></DIV></DIV>
<DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; FONT-SIZE: 10pt">I
am about to start out on a new project. But I want to do things the better
way, first go. .)</SPAN><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"><o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"> <o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; FONT-SIZE: 10pt">If
I, in short terms, would describe the feature I am trying to figure how to,
let me give this example.</SPAN><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"><o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"> <o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; FONT-SIZE: 10pt">Imagine
we have three main levels. Let's for the ease of the example, say they
are:</SPAN><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"><o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; FONT-SIZE: 10pt">
Shirt</SPAN><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"><o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; FONT-SIZE: 10pt">
Pant</SPAN><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"><o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; FONT-SIZE: 10pt">
Socks</SPAN><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"><o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"> <o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; FONT-SIZE: 10pt">.
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:</SPAN><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"><o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"> <o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; FONT-SIZE: 10pt">
Shirt</SPAN><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"><o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; FONT-SIZE: 10pt">
Green</SPAN><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"><o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; FONT-SIZE: 10pt">
White</SPAN><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"><o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; FONT-SIZE: 10pt">
Blue</SPAN><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"><o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; FONT-SIZE: 10pt">
pant</SPAN><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"><o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; FONT-SIZE: 10pt">
green</SPAN><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"><o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; FONT-SIZE: 10pt">
red</SPAN><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"><o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; FONT-SIZE: 10pt">
black</SPAN><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"><o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; FONT-SIZE: 10pt">
socks</SPAN><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"><o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; FONT-SIZE: 10pt">
green</SPAN><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"><o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; FONT-SIZE: 10pt">
light</SPAN><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"><o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; FONT-SIZE: 10pt">
dark</SPAN><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"><o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; FONT-SIZE: 10pt">
white</SPAN><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"><o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; FONT-SIZE: 10pt">
blue</SPAN><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"><o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; FONT-SIZE: 10pt">
sky</SPAN><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"><o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; FONT-SIZE: 10pt">
ocean</SPAN><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"><o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; FONT-SIZE: 10pt">
navy</SPAN><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"><o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; FONT-SIZE: 10pt">
Black</SPAN><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"><o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; FONT-SIZE: 10pt">
Yellow.</SPAN><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"><o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"> <o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"> <o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; FONT-SIZE: 10pt">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.</SPAN><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"><o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"> <o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; FONT-SIZE: 10pt">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. </SPAN><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"><o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"> <o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; FONT-SIZE: 10pt">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?</SPAN><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"><o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"> <o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; FONT-SIZE: 10pt">Thanks
alot for any feedback,</SPAN><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"><o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"> <o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black"> <o:p></o:p></SPAN></P></DIV></DIV></DIV></DIV></BLOCKQUOTE></DIV></BLOCKQUOTE></BODY></HTML>
------=_NextPart_000_0009_01CE2ED4.6D3C35D0--




