Joel

nil if you want to - You would normal pass the Instance that the event
applied to

ie Form3.ListBox1Click(ListBox1) but if you don't make reference to the
sender then nil is fine

If you use the same proc for several list boxes then you pass the listbox as
sender - make sense

Neven

----- Original Message -----
From: Joel van Velden <[EMAIL PROTECTED]>
To: Multiple recipients of list delphi <[EMAIL PROTECTED]>
Sent: Wednesday, 29 November 2000 15:46
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);'
>
> TIA,
> Joel van Velden
>
> --------------------------------------------------------------------------
-
>     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"
>

---------------------------------------------------------------------------
    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