Vote UpVote

XE3 Visual LiveBindings: User defined C++ objects

Jim Tierney – In the previous post, TListBindSourceAdapter<TContact> is used to enable a list of Delphi TContact objects with LiveBindings, using the CreateAdapter event handler: implementation {$R *.dfm} uses ContactsUnit, System.Generics.Collections; procedure TForm1.AdapterBindSource1CreateAdapter(Sender: TObject; var ABindSourceAdapter: TBindSourceAdapter); begin ABindSourceAdapter := TListBindSourceAdapter<TContact>.Create(Self, LoadContacts); end; C++ custom object can also be enabled for LiveBindings.   Here is a C++ version of TContact for example: #pragma explicit_rtti ...
Favorite? Off-Topic? Jim Tierney @ 2012-12-11 22:04


Visits: 347
Votes: 2
Favorites: 0
Off-Topic: 1

Visits by Source

User Actions

Users who voted for this posting

Daniele Teti
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


Please login or register to use this functionality.
(click on this box to dismiss)