Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 9 of 9 total
Thread incorrect event names generated
Wed, Jan 13 2016 6:18 PMPermanent Link

Emin

I have this problem since 2.04.
When I double click an event in object inspector, form designer generates wrong named events like:

1) select component named ORDR_ORDER_TYPE_NAME_Combo
2) in the object inspector double click the event
3) form designer generated this event name
procedure TOrderCrudForm.EncounterOrderListDSClick(Sender: TObject);
begin

end;

Actually EncounterOrderListDS is a name of an other component on this form.

And this problem occurs on any form since 2.04.

Emin
Thu, Jan 14 2016 7:54 AMPermanent Link

Walter Matte

Tactical Business Corporation

I cannot reproduce your error.

You need to make sure that your code is 100% correct.  If there is a syntax error then the automatic event code generation will not work.  Does it compile clean.  Then try to make event by double click.

Walter


Emin wrote:

I have this problem since 2.04.
When I double click an event in object inspector, form designer generates wrong named events like:

1) select component named ORDR_ORDER_TYPE_NAME_Combo
2) in the object inspector double click the event
3) form designer generated this event name
procedure TOrderCrudForm.EncounterOrderListDSClick(Sender: TObject);
begin

end;

Actually EncounterOrderListDS is a name of an other component on this form.

And this problem occurs on any form since 2.04.

Emin
Thu, Jan 14 2016 8:30 AMPermanent Link

Raul

Team Elevate Team Elevate

On 1/13/2016 6:18 PM, Emin wrote:
> When I double click an event in object inspector, form designer generates wrong named events like:
>
> 1) select component named ORDR_ORDER_TYPE_NAME_Combo
> 2) in the object inspector double click the event
> 3) form designer generated this event name
> procedure TOrderCrudForm.EncounterOrderListDSClick(Sender: TObject);
> begin
> end;

Not seeing it here either.

Even the event generated does not really make sense - if your component
is a combo box then it should generate a "Change" event by default (i.e.
ORDR_ORDER_TYPE_NAME_ComboChange).


Assuming your other component is a TDataset then double click for that
should normally generate a AfterLoad event.


> And this problem occurs on any form since 2.04.

I would suggest you zip up the project in question and send copy to Tim
so he can check it out.

Few other questions

1. Does this happen with a new project ?

2. Have you manually edited the auto-generated code ? (for example
changing the component name in code instead of using IDE and object
inspector?)

2. Like Matthew said is the code compilable (no syntax errors etc)


Raul


Thu, Jan 14 2016 9:38 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Emin,

<< When I double click an event in object inspector, form designer generates wrong named events like:

1) select component named ORDR_ORDER_TYPE_NAME_Combo
2) in the object inspector double click the event
3) form designer generated this event name
procedure TOrderCrudForm.EncounterOrderListDSClick(Sender: TObject);
begin

end;

Actually EncounterOrderListDS is a name of an other component on this form. >>

As Raul said, please email me a copy of a form (.wbf and .wbs) that exhibits this issue, and I'll take a look.

Thanks,

Tim Young
Elevate Software
www.elevatesoft.com
Thu, Jan 14 2016 11:41 AMPermanent Link

Emin

Walter, Raul
Thank you for testing I will send form resource/code to Tim (which compiles fine).
By the way, when I restart the IDE this problem goes away and comes after few changes.
Thanks
Emin
Tue, Feb 2 2016 11:06 AMPermanent Link

Uli Becker

Tim,

> As Raul said, please email me a copy of a form (.wbf and .wbs) that exhibits this issue, and I'll take a look.

Could that be fixed meanwhile? If not, I can confirm that behaviour, but
not replicate it. After a restart of the IDE it works fine again.

Uli
Tue, Feb 2 2016 12:15 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Uli,

<< Could that be fixed meanwhile? >>

Could *what* be fixed ?  If I can't replicate the issue here, then I can't fix it.

Tim Young
Elevate Software
www.elevatesoft.com
Tue, Feb 2 2016 12:34 PMPermanent Link

Uli Becker

Tim,

> Could *what* be fixed ?  If I can't replicate the issue here, then I can't fix it.

Emin sent you his project, that's why I asked. Just wanted to avoid
useless tests on my side.

Uli

Wed, Feb 3 2016 2:33 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Uli,

<< Emin sent you his project >>

Actually, he didn't send over anything, so I'm still without a reproducible test case.

Tim Young
Elevate Software
www.elevatesoft.com
Image