From 1549243768443905306
X-Google-Thread: f78e5,f292bdd67daeb7bb
X-Google-Attributes: gidf78e5,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: g2news2.google.com!news4.google.com!news.glorb.com!news.alt.net!comp-std-cpp-robomod!not-for-mail
From: "Earl Purple" <earlpurple@gmail.com>
Newsgroups: comp.std.c++
Subject: Re: C++ Embraces Procedural Programming Over OO Programming [OT]
Date: Tue, 28 Nov 2006 10:31:01 CST
Organization: http://groups.google.com
Lines: 44
Approved: Fergus Henderson <fjh@cs.mu.oz.au>, moderator of comp.std.c++
Message-ID: <1164731078.745258.94860@h54g2000cwb.googlegroups.com>
References: <eka8bt$thg$1@news2.ipartners.pl>
   <memo.20061126140058.144A@brangdon.cix.compulink.co.uk>
   <ekd1ul$o3r$1@kujawiak.man.lodz.pl>
   <UvvqlIS46taFFwvB@robinton.demon.co.uk>
   <ekfqa2$11k0$1@news2.ipartners.pl>
   <1164672100.910750.78080@45g2000cws.googlegroups.com>
   <ekh41r$1ogo$1@news2.ipartners.pl>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
X-Trace: posting.google.com 1164731084 29235 127.0.0.1 (28 Nov 2006 16:24:44 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Tue, 28 Nov 2006 16:24:44 +0000 (UTC)
Return-Path: <devnull@stump.algebra.com>
X-Authentication-Warning: mulga.csse.unimelb.edu.au: fjh set sender to devnull@stump.algebra.com using -f
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
X-Original-To: std-c++@mailman.ucar.edu
Delivered-To: std-c++@mailman.ucar.edu
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727),gzip(gfe),gzip(gfe)
Complaints-To: groups-abuse@google.com
Injection-Info: h54g2000cwb.googlegroups.com; posting-host=139.149.31.195;
   posting-account=xCbleA0AAACqqYkCx67r8koxNUGmomq_
X-Virus-Scanned: amavisd-new at ucar.edu
X-Virus-Scanned: amavisd-new at csse.unimelb.edu.au
X-Virus-Scanned: amavisd-new at csse.unimelb.edu.au
Xref: g2news2.google.com comp.std.c++:4814


"Kristof Zelechovski" wrote:
> Uzytkownik "Earl Purple" <earlpurple@gmail.com> napisal w wiadomosci
> news:1164672100.910750.78080@45g2000cws.googlegroups.com...
> >
> > Now we can then put them all together as "a mouse click event occurred
> > whilst the mouse was pointed at coordinate (x,y) on a logical graphic
> > device". And of course if we have defined a concept of a "button" we
> > can say that the button was "clicked".
>
> In order to define the mouse click, you need to know what the mouse is and
> that it can point and click.
> What events would you define for the crocodile?
> And how can you be sure you have not missed anything important?
> Chris

You have defined the mouse exactly, at least with regard to this
situation, it can point and it can click.

It doesn't have to look like a computer mouse. You could touch the
screen in a location with your finger. You could use the remote control
on your digital TV to achieve it.

The logic of a mouse click is a location and an event. Events are
something that require handling in pretty much any situation that has a
microprocessor, even pressing one of the buttons on my microwave.

Now sometimes, often in fact, the area is split into regions such that
the click in an area translates to a click on one of an enumerable
number of regions (eg pressing a button).

There is no standard concept of an event-driven application, as such,
in C++. That, perhaps, is the concept the OP was trying to aim at. And
that, perhaps, is what might be standardised in such a way that any GUI
could be implemented with regards to such.

And why, by the way, is there no such thing as C++ scripting language?

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html                      ]



