Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread renaming a button (or other object) causes event to fire at create time?
Wed, Mar 4 2020 2:44 PMPermanent Link

Bruno Larochelle

Windows 10 EWB 3.00 Build 1

I am having some strange event firing occurring if I rename a button (or other object).

This is a simple project (snippet) with a button and a label:

procedure TForm1.Button1Click(Sender: TObject);
begin

label1.caption := label1.caption + ' X ';

end;

This works fine.

If I rename the button to 'btnMain', it appears as if the 'onClick' event handler is assigned on all possible events of the button. This leads to multiple firing of events.. every possible event on that object is firing and calling that handler.

I tried this with a TPanel (instead of TButton), and it did the same thing.

Attached are two screenshots showing the IDE with the multiply assigned event.

(I called them 'recursive' because I thought they were.. but they might just be multiple/frequent)



Attachments: recursive event firing part B.PNG
Wed, Mar 4 2020 4:10 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Bruno,

Thanks, I'll take a look at this one along with the form renaming issue.

Tim Young
Elevate Software
www.elevatesoft.com
Thu, Mar 5 2020 12:10 AMPermanent Link

Bruno Larochelle

I confirm this is fixed in build 3.. super!
Image