Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


ID: 27815, Create descendent class from a TList class

by Rodrigo Cesar Santos Email: Anonymous


This Live Template make easy to descend a class from TList (or TObjectList, TComponentList, etc).
Download Details
FTP  download also available
CDN Login Required to Download. (You will be redirected to the login page if you click on the Download Link)
To download this, you must have registered:
A free membership

For C++Builder, Version 11.0  to 15.0 41 downloads
Copyright: No significant restrictions


Size: 1,300 bytes
Updated on Thu, 29 Jul 2010 07:28:21 GMT
Originally uploaded on Thu, 29 Jul 2010 07:25:30 GMT
SHA1 Hash: 20AED69047E4CF8C2AC532FBB4A7A24DEE7F7736
MD5 Hash: 2539138B640727F3BFBB5BBBAF2E640C

    Explore the files in this upload

Description
Use this Live Template to descend a class from TList (or TObjectList, TComponentList, etc) and override some functions and procedures to facilitate implementation of a list of any class.

>>>> Example using direct the TList class:

TList* list = new TList();
list->Add(Button1);
list->Add(Button2);
((TButton*)list->Items[0])->Caption = "Test1";
((TButton*)list->Items[1])->Caption = "Test2";

>>>> Example using a class (name by 'TMyButtonClass') that descend from TList:

TMyButtonList* list = new TMyButtonList();
list->Add(Button1);
list->Add(Button2);
list->Items[0]->Caption = "Test1";
list->Items[1]->Caption = "Test2";

   Latest Comments  View All Add New

Move mouse over comment to see the full text

Server Response from: ETNACDC03