<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>My principal reason for choosing the ListView was that I needed
something akin to the DBGrid to display at least 4 columns (the data
comes from the properties of the object (which is the ListView "Item").
I considered the TreeView and whilst there would only be about 4
levels, there can be a lot of child items for each top level item.
Using Master-Detail views seemed to me more sensible in terms of
navigating through the Master objects - there would be a lot of
scrolling through the tree otherwise.<br><br>A database approach would
have been really easy in terms of Master-Detail display grids.
Unfortunately, however, using a database isn't straightforward as the
program configuration data I'm reading has "Elements", each of which can
have a list of references to one or more other "Elements", i.e.
circular references (don't bite me, I didn't write the other program =
jOrgan).<br><br>If I had an understanding of emulating a dataset then I
could use the DataSource and DBGrid components and life would be
simple. I suspect, though, that its not a trivial exercise.<br><br>Yes,
TListView is a pain to use in comparison with the visual TString
ancestors. Its actually a bit oddball in many respects, so I will take a
look at the StringGrid as an alternative.<br><br><div><hr id="stopSpelling">From: johnkbird@paradise.net.nz<br>To: delphi@listserver.123.net.nz<br>Date: Mon, 28 Jul 2014 11:38:18 +1200<br>Subject: Re: [DUG] ListView - Scroll Event<br><br>
<div dir="ltr">
<div style="FONT-SIZE:12pt;FONT-FAMILY:'Calibri';COLOR:#000000;">
<div><font face="Tahoma" size="2">I have not used Listviews – for displaying lists I
have generally used grids, listboxes, or checklistboxes. Out of curiosity
what are the main advantages of Tlistview as it seems to have a couple of extra
hurdles to use. Or is it better to go the whole way and use
something like Virtual Tree View (which I am not sure if is supported in Unicode
Delphi). Myself I have generally favoured driving stringgrids quite
hard with quite a bit of code in the drawcell event which gives a lot of
flexibility (I did a VCL stringgrid version of the Firemonkey periodic table
with TList and Stringgrids that looks pretty cool with colours and multiple
texts in each cell.).</font></div>
<div><font face="Tahoma" size="2"></font> </div>
<div><font face="Tahoma" size="2">The firemonkey controls allowing embedding of
other controls in them look very promising as well (although I can hear comments
starting up about scorched chimp even as I type this!)</font></div>
<div><font face="Tahoma" size="2"></font> </div>
<div><font face="Tahoma" size="2">Comments on merits of each (Listview and Virtual
Tree View) and any references for further reading would be welcome.</font></div>
<div><font face="Tahoma" size="2"></font> </div>
<div><font face="Tahoma" size="2">This is apropos a larger topic – how to figure out
which control to use for a particular purpose – something which the help does
not really give much help on.</font></div></div></div>
<br>_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: delphi@listserver.123.net.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-request@listserver.123.net.nz with Subject: unsubscribe</div>                                            </div></body>
</html>