Article View: borland.public.cppbuilder.oodesign
Article #110Re: event and OOP
From: Alisdair Meredith [TeamB]
Date: Wed, 27 Oct 2004 14:00
Date: Wed, 27 Oct 2004 14:00
19 lines
1701 bytes
1701 bytes
fwang11 wrote: > It does. The ButtonClick() event handler is called from Button object > to Form object. No, the button objects stores a callback object, of a special BCB type called a __closure. If such an object is stored in its OnClick property, it asks it to perform its action. When the form loads, it sets various properties of the Button object it owns, such as Caption, Top and Left. It may also set a value for the OnClick property, by making the appropriate callback object. So the button knows nothing about the form, all it knows is the callback. The callback is created by the form, and typically points to a bound member function in itself. That is OK though, as the form has the info to do this, not the button. AlisdairM(TeamB)
Technical Details
Message-ID:
<417faa07@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-out1.nntp.be!propagator2-sterling!in.nntp.be!caladan.arrakis.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<41737961$1@newsgroups.borland.com> <tnc9n0d6n621dieqi93f0bbl391b4il4dr@4ax.com> <41761d16$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10db1e,4f183edbe82db915 X-Google-Attributes: gid10db1e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Alisdair Meredith [TeamB]" <alisdair.NO.SPAM.PLEASE.meredith@uk.renaultf1.com> Subject: Re: event and OOP Newsgroups: borland.public.cppbuilder.oodesign References: <41737961$1@newsgroups.borland.com> <tnc9n0d6n621dieqi93f0bbl391b4il4dr@4ax.com> <41761d16$1@newsgroups.borland.com> Organization: Renault F1 Team Ltd. User-Agent: XanaNews/1.16.3.1 NNTP-Posting-Host: 195.153.139.2 Message-ID: <417faa07@newsgroups.borland.com> Date: 27 Oct 2004 07:00:39 -0700 X-Trace: newsgroups.borland.com 1098885639 195.153.139.2 (27 Oct 2004 07:00:39 -0700) Lines: 19 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-out1.nntp.be!propagator2-sterling!in.nntp.be!caladan.arrakis.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail