BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TMethod

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi VCL Components Using
View previous topic :: View next topic  
Author Message
Alejandro Castro
Guest





PostPosted: Mon Jul 28, 2003 2:23 am    Post subject: TMethod Reply with quote



Hi

I have the next code

var xOnClick: TMethod;
begin
xOnClick:=GetMethodProp(MenuItem,'onClick');
end;

My question:

How can I run the 'onclick' method using the xOnClick pointer ?

Thanks

--
Alejandro Castro
www.alfra.info
[email]alejandro (AT) alfra (DOT) info[/email]



Back to top
Ignacio Vazquez
Guest





PostPosted: Mon Jul 28, 2003 2:30 am    Post subject: Re: TMethod Reply with quote



"Alejandro Castro" <alejandro (AT) alfra (DOT) info> wrote

Quote:
How can I run the 'onclick' method using the xOnClick pointer ?

Just call it.

Cheers,
Ignacio



Back to top
Brian Cook
Guest





PostPosted: Mon Jul 28, 2003 5:02 am    Post subject: Re: TMethod Reply with quote



Quote:
Hi

Greetings.


Quote:
I have the next code

var xOnClick: TMethod;
begin
xOnClick:=GetMethodProp(MenuItem,'onClick');
end;

My question:

How can I run the 'onclick' method using the xOnClick pointer ?

TNotifyEvent(xOnClick)( nil );

Good luck, Brian


Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi VCL Components Using All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.