🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.pascal.delphi.misc
Article #221

Re: Delphi equivalent in the C world or Scheme/LISP world

#221
From: Hans-Peter Diettrich
Date: Fri, 22 Aug 2008 12:27
33 lines
2923 bytes
gnuist006@gmail.com schrieb:

> Take a look at this site:
> http://www.delphibasics.co.uk/
> 
> It has good colors but I cant understand my first program in detail.

If you mean the "first program" sample, the only line of "your" program 
sits in the Button1Click procedure. That procedure, and all the other 
stuff in the TForm1 class, is managed and updated by the IDE. Don't 
worry about it, for now.

BTW, you should have some Delphi version running, so that you can 
explore everything yourself. If not, get Lazarus 
<www.lazarus.freepascal.org> for an free Delphi clone, with very similar 
behaviour.

When you never wrote a GUI program yourself, you may wonder how and when 
any of the procedures are ever called. Then open the Object Inspector, 
select one of the components on your form, and look at the Events page 
of that component. For every user action, on a menu, button or other 
control, you can create an event handler procedure, that is invoked when 
the user clicks on the component, or does something else with it. In the 
Button1 event properties, you'll find Button1Click attached to the 
OnClick event. You can remove that relationship, by simply erasing the 
text in that field. Enter an different name, and upon hitting Enter the 
IDE will create the skeleton for your new event handler, in the unit of 
your form. If you want to use another, already existing event handler, 
select it from the drop-down list of the event property. When that list 
is empty, no handler with the required signature (parameters...) exists 
in your code.

DoDi
Technical Details
Message-ID: <6h7vsiFjdrpoU1@mid.individual.net>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
References: <15735381-ff5d-42d9-ab98-50b79ef4774b@a3g2000prm.googlegroups.com> <6h396lFig2knU1@mid.individual.net> <d3fda61c-a4c1-449e-ba39-dc2025cfe8eb@r66g2000hsg.googlegroups.com> <6h5f80Fj2cneU1@mid.individual.net> <30043c58-c049-4dc6-a812-1f0a61f4d8f7@26g2000hsk.googlegroups.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10baee,e51978c8aaf77a0a
X-Google-Thread: 11ae7b,e51978c8aaf77a0a
X-Google-Thread: 109fba,e51978c8aaf77a0a
X-Google-Attributes: gid10baee,gid11ae7b,gid109fba,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: Hans-Peter Diettrich <DrDiettrich1@aol.com>
Newsgroups: comp.lang.pascal.delphi.misc,borland.public.delphi.language.delphi.general,comp.lang.c++
Subject: Re: Delphi equivalent in the C world or Scheme/LISP world
Date: Fri, 22 Aug 2008 14:27:54 +0200
Lines: 33
Message-ID: <6h7vsiFjdrpoU1@mid.individual.net>
References: <15735381-ff5d-42d9-ab98-50b79ef4774b@a3g2000prm.googlegroups.com>  <6h396lFig2knU1@mid.individual.net> <d3fda61c-a4c1-449e-ba39-dc2025cfe8eb@r66g2000hsg.googlegroups.com>  <6h5f80Fj2cneU1@mid.individual.net> <30043c58-c049-4dc6-a812-1f0a61f4d8f7@26g2000hsk.googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net pX+SykExJF4seUYD19YmRwXK3LZBZJfGL2KGChO9JW25D+EoYW
Cancel-Lock: sha1:rLEgAugHH603wZ8OZeHqovFf03k=
User-Agent: Thunderbird 2.0.0.16 (Windows/20080708)
In-Reply-To: <30043c58-c049-4dc6-a812-1f0a61f4d8f7@26g2000hsk.googlegroups.com>