Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 9 of 9 total
Thread TImage IDE
Tue, Jan 24 2017 6:23 AMPermanent Link

Uli Becker

Tiny thing: when I doubleclick a TImage component in the IDE, the OnLoad
procedure is opened, shouldn't it be the OnClick procedure?

Just wondered why the OnClick event did not fire. Smile

Uli
Tue, Jan 24 2017 7:17 AMPermanent Link

Michael Dreher

Uli Becker wrote:

// ... the OnLoad procedure is opened, shouldn't it be the OnClick procedure?

I just tried this and it works fine (IDE 2.05B4). My click or double-click handlers fire while clicking, the onload OnLoad handler only once after startup (when loaded).

Michael Dreher
Tue, Jan 24 2017 7:26 AMPermanent Link

Matthew Jones

Michael Dreher wrote:

> // ... the OnLoad procedure is opened, shouldn't it be the OnClick procedure?
>
> I just tried this and it works fine (IDE 2.05B4).

Tim said he would be changing this, so I guess that's the build it got fixed in. For some reason I'm still on 2.05B3 which has the OnLoad default.

--

Matthew Jones
Tue, Jan 24 2017 8:45 AMPermanent Link

Uli Becker

Michael,

> I just tried this and it works fine (IDE 2.05B4). My click or double-click handlers fire while clicking, the onload OnLoad handler only once after startup (when loaded).

I mean the default handler which is opened (created) when clicking on
the component itself.

Uli
Tue, Jan 24 2017 8:46 AMPermanent Link

Uli Becker

Matthew,

> Tim said he would be changing this, so I guess that's the build it got fixed in. For some reason I'm still on 2.05B3 which has the OnLoad default.

OK, thanks. Maybe it was even me who reported that (long time ago). Smile

Uli

Tue, Jan 24 2017 9:21 AMPermanent Link

Matthew Jones

Uli Becker wrote:

> > Tim said he would be changing this, so I guess that's the build it got fixed in. For some reason I'm still on 2.05B3 which has the OnLoad default.

Just tried with 2.05B4 in a VM I have it on, and it still does the OnLoad.

--

Matthew Jones
Tue, Jan 24 2017 9:56 AMPermanent Link

Michael Dreher

Uli Becker wrote:

   //  I mean the default handler which is opened (created) when clicking on
   // the component itself.
   //
   // Uli

The double click at design time, I see. TImage inherit the OnLoad-default from TWebControl (in 2.05B4).

Michael Dreher
Wed, Jan 25 2017 1:53 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Uli,

<< Tiny thing: when I doubleclick a TImage component in the IDE, the OnLoad procedure is opened, shouldn't it be the OnClick procedure? >>

Not for the TImage control.  I try to pick the event handler that is most likely to be useful as the "default" event handler at design-time.  If you don't like my choice, then you can change it:

WebBrwsr unit:

  TImage = class(TWebControl)
...
     published
...
        property OnClick; default;  <<< Add the ; default part

Tim Young
Elevate Software
www.elevatesoft.com
Thu, Jan 26 2017 10:43 AMPermanent Link

Uli Becker

Tim,

> I try to pick the event handler that is most likely to be useful as
the "default" event handler at design-time.  If you don't like my
choice, then you can change it

I nearly always like your choice. Smile

Thank you.

Uli
Image