FoxInCloud
PageFrame - Click
Gravatar is a globally recognized avatar based on your email address. PageFrame - Click
  Vincent H.
  All
  Nov 18, 2021 @ 10:48am

Hi Thierry,

I think the code in the click() of a pageframe is not interpreted

No message, just ignored

Gravatar is a globally recognized avatar based on your email address. re: PageFrame - Click
  FoxInCloud Support - Thierry N.
  Vincent H.
  Nov 19, 2021 @ 03:20am

Hi Vincent,

You're the first in 10 years who ever noticed that!
Good catch!

To see how VFP behaves, DO Home(1) + "tools\ab\aw\samples\fic\fictuto\tutolan.prg" with 'event.scx' (time line is bottom-up):

&& click on page, outside tab:
Page          pgf.pag1.Click
Page          pgf.pag1.MouseUp(1,0,30,99)
Page          pgf.pag1.MouseDown(1,0,30,99)


&& click on page tab:
Pageframe     pgf.MouseUp(1,0,88,24)

Page          pgf.pag1.Click

Pageframe     pgf.Click
Pageframe     pgf.MouseUp(1,0,88,24)

Page          pgf.pag1.Activate
Page          pgf.pag1.Deactivate

Pageframe     pgf.MouseDown(1,0,88,24)

Conclusion:

  1. pgf.Click() fires only when clicking a page tab (not sure if it ever fires when pgf.Tabs = .F.
  2. pgf.Click() fires before pgf.pag1.Click
  3. pgf.MouseUp() fires twice

Does it match your experience?

Would it help if we implement something exactly the same? Or would this code be enough?

procedure awPag.ClickInet
…
this.Parent.Click && regardless where user has clicked, in or outside tab.
this.Click
Gravatar is a globally recognized avatar based on your email address. re: PageFrame - Click
  Vincent H.
  FoxInCloud Support - Thierry N.
  Nov 19, 2021 @ 06:30am

Thank you Thierry for this complete answer.

The click in the page works, it is simply to avoid repetition in each tab. Not sure that this justifies a development.

To your good heart ...

Gravatar is a globally recognized avatar based on your email address. re: PageFrame - Click
  Vincent H.
  Vincent H.
  Nov 19, 2021 @ 06:57am

I answered you too quickly, sorry.

In fact, the click() in the tab is not interpreted either.

Only Activate() is

Gravatar is a globally recognized avatar based on your email address. re: PageFrame - Click
  FoxInCloud Support - Thierry N.
  Vincent H.
  Nov 27, 2021 @ 05:41am

We will make this event model more similar to what happens in VFP.

Gravatar is a globally recognized avatar based on your email address. re: PageFrame - Click
  Vincent H.
  FoxInCloud Support - Thierry N.
  Nov 27, 2021 @ 08:50am

Thanks in advance

Gravatar is a globally recognized avatar based on your email address. re: PageFrame - Click
  FoxInCloud Support - Thierry N.
  Vincent H.
  Jan 6, 2022 @ 03:27am

The FoxInCloud Live Tutorial Event Sample now implements this:

&& click on page tab:
Page          pgf.pag1.Click
Pageframe     pgf.Click

Not sure why .mouse*() don't fire -- will investigate

Will update V 3.0.0-beta.7 installation on our site with this new feature.

Gravatar is a globally recognized avatar based on your email address. re: PageFrame - Click
  FoxInCloud Support - Thierry N.
  Vincent H.
  Jan 6, 2022 @ 03:39am

Will update V 3.0.0-beta.7 installation on our site with this new feature.

done!

Gravatar is a globally recognized avatar based on your email address. re: PageFrame - Click
  Vincent H.
  FoxInCloud Support - Thierry N.
  Jan 6, 2022 @ 04:33am

Great, thanks !

Gravatar is a globally recognized avatar based on your email address. re: PageFrame - Click
  FoxInCloud Support - Thierry N.
  Vincent H.
  Jan 6, 2022 @ 06:41am

Not sure why .mouse*() don't fire

Fixed and new V 3.0.0-beta.7 uploaded

© 1996-2024