Article View: borland.public.cppbuilder.nativeapi
Article #12073Re: Binding methods to events
From: Remy Lebeau (TeamB)
Date: Thu, 01 Jan 2004 22:10
Date: Thu, 01 Jan 2004 22:10
15 lines
1567 bytes
1567 bytes
"Hans Galema" <dontusethis@dontusethis.nl> wrote in message news:3ff4632e@newsgroups.borland.com... > An eventhandler should be a memberfunction of a class, > not a standalone function. It is certainly possible to create events that work with standalone functions instead of class methods. When it comes to the VCL, class members are the common way to go, but they are not the only way to go. If you simply remove the __closure from the event type, then it will work with a standalone function as the event handler. Gambit
Technical Details
Message-ID:
<3ff4997a$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3ff3e34b@newsgroups.borland.com> <3ff3fe5b$1@newsgroups.borland.com> <3ff4571a$1@newsgroups.borland.com> <3ff4632e@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,a9208b78d316a119 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-01-01 14:09:25 PST From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3ff3e34b@newsgroups.borland.com> <3ff3fe5b$1@newsgroups.borland.com> <3ff4571a$1@newsgroups.borland.com> <3ff4632e@newsgroups.borland.com> Subject: Re: Binding methods to events Date: Thu, 1 Jan 2004 14:10:15 -0800 Lines: 17 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 67.22.139.199 Message-ID: <3ff4997a$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1072994682 67.22.139.199 (1 Jan 2004 14:04:42 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail