TIP: Click on subject to list as thread! ANSI
echo: delphi
to: ALL
from: MARTIN MAAT
date: 1997-08-25 19:39:00
subject: TListView

Yo, All.
I picked up working on an application for which I needed a listbox with a 
header control and nice little pictures . So I made that a while ago. Now it 
suddenly occured to me that I was gradually creating a TListView, which was 
already available. So why not use that instead, I thought. Now I know.
TListView maintains it's items in a collection of type TListItems. TListItems 
holds several items of type TListItem.
What really ticks me off is that I cannot create a TListItem, have my way 
with it and then add that TListItem to a TListItems collection.
I would like to have:
  function TListItems.Add(ListItems :TListItem) :TListItem;
Instead Delphi gives me:
  function TListItems.Add :TListItem;
Which is no good to me. I want several lists with shared items. That is, some 
items may be in several lists. The items, list and view however are so 
tightly connected and dependent to one another that this does not seem to be 
possible. TListItem has a mandatory create parameter of type TListItems on 
which it depends for several methods. TListItems is connected to TListView in 
a likewise manor.
I almost really liked TListView. Has anyone tried doing what I tried to do? 
If so, please share your experiences and thoughts, if any, on the matter.
Groeten, Martin.
--- FMail/Win32 1.22
---------------
* Origin: -=[ E-mail: m_maat@knoware.nl .......... ]=- (2:286/420.1)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.