Execute the event as you would any other routine. If you double click on a 
button1 control and type in some code, you've created an event. To execute that 
event, call it programmatically like this:
 
Buttonclick1(nil);
 
  nil represents Sender which is the button that was clicked. If you wanted to 
centrallize this code to a bunch of different buttons, you could refer to 
Sender in the button click code like this:
 
If Sender = Button1 Then
begin
   some code
end
else If Sender = button2 then
begin
   some different code
end;
 
sometimes that can be very useful.
 
Dave

Vic Fraenckel <[EMAIL PROTECTED]> wrote:
I want to fire a button on-click event in software. How do I do this?

Any enlightenment will be appreciated.

TIA

Vic

________________________________________________________

Victor Fraenckel - The Windman         
victorf ATSIGN windreader DOTcom
KC2GUI                                                  




-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED] 



---------------------------------
Yahoo! Groups Links

   To visit your group on the web, go to:
http://groups.yahoo.com/group/delphi-en/
  
   To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
  
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 


                
---------------------------------
Yahoo! Mail
 Stay connected, organized, and protected. Take the tour

[Non-text portions of this message have been removed]



-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED] 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/delphi-en/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to