| View previous topic :: View next topic |
| Author |
Message |
Alejandro Castro Guest
|
Posted: Mon Jul 28, 2003 2:23 am Post subject: TMethod |
|
|
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
|
Posted: Mon Jul 28, 2003 2:30 am Post subject: Re: TMethod |
|
|
"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
|
Posted: Mon Jul 28, 2003 5:02 am Post subject: Re: TMethod |
|
|
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 |
|
 |
|