Rick,

 

What you describe of a listview may be true in some other programming
environments, I don't know.

 

However, in the VBScript xml dialog, and in Word's VBA (and in Visual Foxpro
from MS), mnone of these environments allow you to have elements of a
listview which are themselves other types of controls.

 

In WE's VBScript xml dialog, your columns are restricted to a single string
value per row (much like a two dimensional array or a 2-dimensional table).

 

The difference between a listbox and a listview then is that you can add
extra colums dynamically to a listview, and move them around in their
left/right positions, and delete an entire column (as well as adding or
removing rows).

 

Also, the other significant different is that on the fly, you can change the
appearance of a listview so that it is greatly compacted, only showing the
elements from the first column, and it writes them from left to right across
the screen, then starts over on the next line, thus getting the most
information possible displayed in the space given for the listview.  This
can be made to happen with almost no programming effort on your part; you
only have to change a single property of the listview, which determines if
it appears like a table or just like this compacted list.

 

Hth,

 

Chip

 

 

 

From: RicksPlace [mailto:[email protected]] 
Sent: Tuesday, January 21, 2014 3:31 AM
To: [email protected]
Subject: Re: ListBox, or ListView

 

Hi: Think of a ListBox as a simple list of objects like a list of names.

Each item you arrow up and down in the list has one entry, the name.

You can click on a name and have your program do something.

Think of a ListView as a list of things.


Each item in the list can have objects like TextBoxes, ListBoxes and other
objects.

In a ListBox there is usually a single list going from top to bottom like:

Row1: Jack Pratt

Row2: Linda Lovely

Row3: Pat Patterson

Row4: Jonny Smith

and so on.

You can set up a ListView to act like a ListBox but working with a ListView
is more complicated.

Now, a ListView might have rows with a TextBox in column1 of each row and a
ListBox in Column2.

So you might have a name like Linda Lovely in Row1 Column1 with a list of
her hobbies in a ListBox in Column2.

You could then set up something where as you move up and down the list of
names in each row the values in the ListBox of hobbies changes to reflect
the hobbies for each name ie each person.

This can also be done more simply by using 2 ListBoxes but that is not the
question here but rather what the fundemental diferences are between a
ListBox and a ListView.

I think that something like OutlookExpress might be a listView where you can
cursor up and down a list of folders like InBox, OutBox, SentItems and so on
then tab and see all the e-mail messages within each folder without having
to click anything.

A ListView is much more complicated to work with in code than a ListBox.

Perhaps others will have more insight into the diferences and it matters
greatly whether you are talking about using a Web Framework ListView or a
WindowsForms ListView.

Rick USA

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

From: David <mailto:[email protected]>  

To: [email protected] 

Sent: Monday, January 20, 2014 3:49 PM

Subject: ListBox, or ListView

 

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,

 

Reply via email to