[DUG] ListView - Scroll Event
John Bird
johnkbird at paradise.net.nz
Mon Jul 28 12:59:34 NZST 2014
I see on a little research that Virtual Tree View is still open source and has been moved from SoftGems to Jam – versions up to XE5 look to be available at
http://www.jam-software.com/virtual-treeview/
Any comments on worth versus ease of use?
From: Eric A
Sent: Monday, July 28, 2014 12:47 PM
To: Delphi ListServer
Subject: Re: [DUG] ListView - Scroll Event
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.
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).
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.
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.
--------------------------------------------------------------------------------
From: johnkbird at paradise.net.nz
To: delphi at listserver.123.net.nz
Date: Mon, 28 Jul 2014 11:38:18 +1200
Subject: Re: [DUG] ListView - Scroll Event
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.).
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!)
Comments on merits of each (Listview and Virtual Tree View) and any references for further reading would be welcome.
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.
_______________________________________________ NZ Borland Developers Group - Delphi mailing list Post: delphi at listserver.123.net.nz Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to delphi-request at listserver.123.net.nz with Subject: unsubscribe
--------------------------------------------------------------------------------
_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: delphi at listserver.123.net.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-request at listserver.123.net.nz with Subject: unsubscribe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20140728/52f6ebd8/attachment-0001.html
More information about the Delphi
mailing list