🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.oodesign
Article #108

Re: event and OOP

#108
From: Stuart Borden
Date: Tue, 19 Oct 2004 06:34
21 lines
1611 bytes
On 18 Oct 2004 01:05:53 -0700, "fwang11" <fwang11@pub3.fz.fj> wrote:

>
>
>How could a Button object send ButtonClick() event message to 
>a Form object? It is not an OOP concept. 
>The Form object "has a" Button object. 
>So, a button can not send message to a form object.
>

It does not.  The form actually sends the message to the "button" that the button has been clicked, then the button acts
upon that information.

>The ButtonClick event handler is IDE-managed, it is not OOP. 


Don't confuse OOP with how a program actually functions.  They are not always related.  But in this case, they are.

Advice: Look into message handling by Windows and VCL. You will begin to see the burdensome reality of OOP.

Stuart B.
Technical Details
Message-ID: <tnc9n0d6n621dieqi93f0bbl391b4il4dr@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <41737961$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: Stuart Borden <sborden@spectrontech.com>
Newsgroups: borland.public.cppbuilder.oodesign
Subject: Re: event and OOP
Date: Tue, 19 Oct 2004 15:34:03 +0900
Message-ID: <tnc9n0d6n621dieqi93f0bbl391b4il4dr@4ax.com>
References: <41737961$1@newsgroups.borland.com>
X-Newsreader: Forte Free Agent 2.0/32.652
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 61.42.125.14
X-Trace: newsgroups.borland.com 1098167562 61.42.125.14 (18 Oct 2004 23:32:42 -0700)
Lines: 22
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail