David,

 

If you'd like a very simple example of a dialog with a listbox, I believe
the "fruit basket" of Jamal's, even though it installs a .exe as the app to
be run, it also includes a .vbs and a .xml file to show you the VBScript
equivalent.  You have very little VBS code to look through in order to find
the "meat" of what you want.

 

There are an unending number of good listbox example programs, but they get
more and more complex; this is the simplest I can think of.

 

Hth,

 

Chip

 

 

 

 

From: David [mailto:[email protected]] 
Sent: Tuesday, January 21, 2014 8:20 AM
To: [email protected]
Subject: Re: ListBox, or ListView

 

Thanks to all, who contributed to line up the differences for me. My actual
case is that I have been using the SimpleDialog feature of the WE module,
and the ListBox it provides. Yet, there you only can have a maximum of two
buttons, like one OK, and one Cancel button. Now, my project has grown, and
I am in need of expanding the number of buttons, due to an increased amount
of features in that very dialog. And that is why I started to browse for the
possibilities in the XML dialogs; and got confused. I see now, that the
ListBox feature is the one to stick with, and again, a great thanks to
everyone. Now, over to the code update. Smile.

 

 

----- Original Message ----- 

From:  <mailto:[email protected]> Chip Orange 

To:  <mailto:[email protected]> [email protected] 

Sent: Tuesday, January 21, 2014 1:16 AM

Subject: RE: ListBox, or ListView

 

And if you only need one column, a listbox sure is easier to program with
(as our confused discussion of another thread shows).

I've never worked with them, but I seem to recall you can have columns with
listbox items if you separate the text using tabs and create the entire line
at once.  It's worth looking at if your needs for columns aren't that much.

 

Also, if you only need a listbox in your dialog and perhaps a few buttons,
have a look at the  SimpleDialogs object of the Gw toolkit.  It can keep you
from having to write an xml dialog at all.

 

Chip

 

 

From: Stephen Clower [mailto:[email protected]] 
Sent: Monday, January 20, 2014 3:53 PM
To: [email protected]
Subject: Re: ListBox, or ListView

 

David,

The primary difference between the two controls is that a list view can have
multiple columns (think Windows Explorer), while a list box can contain only
a single column of data.

Steve

On 1/20/2014 3:49 PM, David wrote:

When creating the XML for one of my projects, I see the options for adding
either a ListBox, or a ListView to my Dialog. Could anyone please try to
explain the real difference of these two controls? Are there difference in
what will be presented to the user, or is it merely a matter of different
programming in your code? Sorry for a dumb question, but I want to go for
the better control - right from the start - so thought I would ask for some
experienced assistance.

 

Thanks,

 

 

-- 
Stephen Clower
Product support specialist & App Development
GW Micro, Inc. * 725 Airport North Office Park, Fort Wayne, IN 46825
260-489-3671 * gwmicro.com

Reply via email to