Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread TLink in EWB3
Fri, Jan 22 2021 5:38 AMPermanent Link

Martin Pflug

Hello,

in EWB2 i used to simulate a click at TLink  with "mylink.DoClick".
Now, in EWB3 this doesn't work.
Please tell me what i have to do.

Thank you
Martin
Fri, Jan 22 2021 12:45 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Martin,

<< in EWB2 i used to simulate a click at TLink  with "mylink.DoClick".
Now, in EWB3 this doesn't work.
Please tell me what i have to do. >>

Add this class declaration in your "type" section:

TCrackLink = class(TLink)
end;

And then use this code instead:

TCrackLink(MyLink).DoClick;

EWB 3 now uses the same protected scope rules as Delphi, so you have to use the above technique to call protected methods of classes defined in different units.

Tim Young
Elevate Software
www.elevatesoft.com
Sun, Jan 24 2021 3:03 AMPermanent Link

Martin Pflug

it works fine...
Thank you

Martin
Image