Article View: borland.public.cppbuilder.database.ado
Article #1451Custom Event Coding
From: Scott
Date: Mon, 14 Jun 2004 21:10
Date: Mon, 14 Jun 2004 21:10
20 lines
1601 bytes
1601 bytes
Good Evening! I have constructed a large array of TEdit objects for a graphical interface application and I am having some trouble adding in EventHandlers using code rather than the Object Editor. The code i have to call the event, onChange is below with <problem parameters> filled in for the part I am unable to resolve: box_array[i]->OnChange(<problem parameters>); The suggested parameter is given as: void TEdit::OnChange(_fastcall * (_closure)(TObject *))(TObject *) If, for example I have an event handler function called ColorChange(), how would I call this OnChange function such that the Edit box would go to the function ColorChange during the appropriate event? Thanks! Scott
Technical Details
Message-ID:
<40ce1426@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newshosting.com!nx02.iad01.newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,a31cc75b973c937b,start X-Google-Attributes: gid10698b,public Reply-To: "Scott" <the1scot@aol.com> From: "Scott" <the1scot@aol.com> Newsgroups: borland.public.cppbuilder.database.ado Subject: Custom Event Coding Date: Mon, 14 Jun 2004 17:10:05 -0400 Lines: 22 Organization: Boston University X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 128.197.177.187 Message-ID: <40ce1426@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1087247398 128.197.177.187 (14 Jun 2004 14:09:58 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newshosting.com!nx02.iad01.newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail