As TObject covers any type of object you can pass any object reference, or
nil. The sender is normally the component that is calling the event
procedure and can be used to determine which component is calling it when
multiple components are set to execute it.

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Joel van Velden
> Sent: Wednesday, 29 November 2000 15:47
> To: Multiple recipients of list delphi
> Subject: [DUG]: Procedure Problem
>
>
> Hi there all,
>
> Just 1 newbie question:
>
> How do I run an event-handlers procedure from somewhere else in
> the program?
> ie, What do I give as 'Sender' in 'procedure TForm3.ListBox1Click(Sender:
> TObject);'

=======================================================================
Patrick Dunford, Christchurch, NZ - http://pdunford.godzone.net.nz/

   He replied, "Blessed rather are those who hear the word of God
and obey it."
    -- Luke 11:28
http://www.heartlight.org/cgi-shl/todaysverse.cgi?day=20001128
=======================================================================
Created by Mail2Sig - http://pdunford.godzone.net.nz/software/mail2sig/


---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"

Reply via email to