Re: Why is onclick event firing here?
- From: "alanglloyd@xxxxxxx" <alanglloyd@xxxxxxx>
- Date: 20 Aug 2006 13:29:33 -0700
Brad Blanchard wrote:
Alanglloyd@xxxxxxx wrote:That's because SetImageClicks is not of TNotifyEvent type.
Code ...
imgarray[num].OnClick := SetImgClicks;
I woud have thought you ought to have got a compile error.
I did and do get an 'Incompatible types' compiler error when I try
your above suggestion. And that's why I'm so miserably stuck right now!
I've been through the Help, through Google Groups, etc, and I don't
know what to look at now.
You have ...
function TMainForm.SetImgClicks(URLIndex : integer) : TNotifyEvent;
TNotifyEvent is ...
procedure(Sender: TObject) of object;
Your "event" is ...
function(URLIndex : integer) : TNotifyEvent of object;
Alan Lloyd
.
- References:
- Re: Why is onclick event firing here?
- From: alanglloyd@xxxxxxx
- Re: Why is onclick event firing here?
- Prev by Date: What compiler directives do i have to delete in the LAST compilation of my program ?
- Next by Date: Re: International messages in a messagebox
- Previous by thread: Re: Why is onclick event firing here?
- Next by thread: Re: Why is onclick event firing here?
- Index(es):
Relevant Pages
|