FoxInCloud
Contextuel menu in bootstrap mode
Gravatar is a globally recognized avatar based on your email address. Contextuel menu in bootstrap mode
  Vincent H.
  All
  Feb 19, 2018 @ 03:59am

Hi,

In boostrap mode, it does not seem possible to generate contextuel menu with DEFINE POPUP ... SHORTCUT

Is there a workaround?

Thanks in advance

Gravatar is a globally recognized avatar based on your email address. re: Contextuel menu in bootstrap mode
  FoxInCloud Support - Thierry N.
  Vincent Helleboid
  Feb 19, 2018 @ 05:20am

Hi Vincent,

In VFP, shortcut makes a difference between a popup that depends on a menu pad or popup bar -vs- a popup that can be displayed anywhere at a given mrow(), mcol(), however it makes no difference in web mode.

For this reason we generate the same HTML for shortcut and regular popups.

What do you expect from the shortcut clause?

Gravatar is a globally recognized avatar based on your email address. re: Contextuel menu in bootstrap mode
  Vincent H.
  FoxInCloud Support - Thierry N.
  Feb 19, 2018 @ 07:47am

Thank's Thierry.

I wish to execute a code like this:

DEFINE POPUP raccourci SHORTCUT RELATIVE FROM MROW(), MCOL()

DEFINE BAR 1 OF raccourci PROMPT "Libellé 1"

DEFINE BAR 2 OF raccourci PROMPT "Libellé 2"

DEFINE BAR 3 OF raccourci PROMPT "\-"

DEFINE BAR 4 OF raccourci PROMPT "\<Annuler" PICTURE IClose

ON SELECTION POPUP raccourci STORE PROMPT () TO Mprompt && Variable publique

ACTIVATE POPUP raccourci

Even with wMenu("ACTIVATE POPUP raccourci", @m.wMenuResult), what's going on Bootstrap ?

Gravatar is a globally recognized avatar based on your email address. re: Contextuel menu in bootstrap mode
  FoxInCloud Support - Thierry N.
  Vincent H.
  Feb 20, 2018 @ 04:28am

Hi Vincent,

Thanks for your detailed issue report and code sample.

We had a bug in supporting the FROM clause in command DEFINE POPUP raccourci SHORTCUT RELATIVE FROM MROW(), MCOL()

Now fixed as you can test by right-clicking in FoxInCloud Live Tutorial's Keypress form (running your code)

We'll soon release V 2.26.2-beta.1 including this fix.

update notice: mobile devices such as tablet don't really support .rightClick().

Gravatar is a globally recognized avatar based on your email address. re: Contextuel menu in bootstrap mode
  Vincent H.
  FoxInCloud Support - Thierry N.
  Feb 20, 2018 @ 05:15am

Hi Thierry,

Thank's for your answer. It will be fine, as usual ...

Gravatar is a globally recognized avatar based on your email address. re: Contextuel menu in bootstrap mode
  FoxInCloud Support - Thierry N.
  Vincent H.
  Feb 20, 2018 @ 10:01am

V 2.26.2-beta.1 just released…

Gravatar is a globally recognized avatar based on your email address. re: Contextuel menu in bootstrap mode
  Vincent H.
  FoxInCloud Support - Thierry N.
  Feb 20, 2018 @ 12:24pm

I saw that and I can not wait to see the result ...
This code is called by a click on a button but nothing append in Web Mode:

wMenu('DEFINE POPUP Praccourci SHORTCUT RELATIVE FROM MROW(), MCOL()')
wMenu('DEFINE BAR 1 OF Praccourci PROMPT "Libellé 1"')
wMenu('DEFINE BAR 2 OF Praccourci PROMPT "Libellé 2"')
wMenu('DEFINE BAR 3 OF Praccourci PROMPT "\-"')
wMenu('DEFINE BAR 4 OF Praccourci PROMPT "\<Annuler"')
wMenu('ON SELECTION POPUP Praccourci STORE PROMPT () TO Mprompt')
wMenuReturn = wMenu("ACTIVATE POPUP Praccourci", "")

Something wrong ?

Gravatar is a globally recognized avatar based on your email address. re: Contextuel menu in bootstrap mode
  FoxInCloud Support - Thierry N.
  Vincent H.
  Feb 20, 2018 @ 12:54pm

Did you see the code in ficTuto > keypress.scx > .rightClick() ?

Gravatar is a globally recognized avatar based on your email address. re: Contextuel menu in bootstrap mode
  Vincent H.
  FoxInCloud Support - Thierry N.
  Feb 21, 2018 @ 12:57am

yes and how to make the popup appear in bootstrap mode ?

in classic mode no worries but I do not get in bootstrap

Gravatar is a globally recognized avatar based on your email address. re: Contextuel menu in bootstrap mode
  FoxInCloud Support - Thierry N.
  Vincent H.
  Feb 21, 2018 @ 01:05am

please try

wMenu('ON SELECTION POPUP Praccourci STORE wMenu('PROMPT()') TO Mprompt')

instead of

wMenu('ON SELECTION POPUP Praccourci STORE PROMPT () TO Mprompt')

also wMenu() returns a success code (.T. / .F.), you better check it as here:

local success, result
success = .T.;
   and wMenu(textmerge([DEFINE POPUP raccourci SHORTCUT RELATIVE FROM MROW(), MCOL()]), @m.result);
   and wMenu(textmerge([DEFINE BAR 1 OF raccourci PROMPT "Libellé 1"]), @m.result);
   and wMenu(textmerge([DEFINE BAR 2 OF raccourci PROMPT "Libellé 2"]), @m.result);
   and wMenu(textmerge([DEFINE BAR 3 OF raccourci PROMPT "\-"]), @m.result);
   and wMenu(textmerge([DEFINE BAR 4 OF raccourci PROMPT "\<Annuler" PICTURE ]), @m.result); && expand iClose to its value
   and wMenu(textmerge([ON SELECTION POPUP raccourci STORE wMenu('PROMPT()') TO mPrompt]), @m.result); && mPrompt is a public variable
   and wMenu(textmerge([ACTIVATE POPUP raccourci]), @m.result)

assert m.success message cAssertMsg(m.result) && in case of a problem in wMenu(), tells you the reason for error
Gravatar is a globally recognized avatar based on your email address. re: Contextuel menu in bootstrap mode
  Vincent H.
  FoxInCloud Support - Thierry N.
  Feb 21, 2018 @ 07:56am

Thanks Thierry, however, I have not managed to activate this popup in bootstrap mode in your ficTuto

Gravatar is a globally recognized avatar based on your email address. re: Contextuel menu in bootstrap mode
  FoxInCloud Support - Thierry N.
  Vincent H.
  Feb 21, 2018 @ 08:12am

can't you see this?

Gravatar is a globally recognized avatar based on your email address. re: Contextuel menu in bootstrap mode
  Vincent H.
  FoxInCloud Support - Thierry N.
  Feb 21, 2018 @ 09:27am

Only in classic mode

Gravatar is a globally recognized avatar based on your email address. re: Contextuel menu in bootstrap mode
  FoxInCloud Support - Thierry N.
  Vincent H.
  Feb 21, 2018 @ 09:28am

which version do you use?

F5?

Gravatar is a globally recognized avatar based on your email address. re: Contextuel menu in bootstrap mode
  Vincent H.
  FoxInCloud Support - Thierry N.
  Feb 22, 2018 @ 12:24am

2.26.2-beta.1
Firefox or Chrome, the problem is identic

Gravatar is a globally recognized avatar based on your email address. re: Contextuel menu in bootstrap mode
  Vincent H.
  FoxInCloud Support - Thierry N.
  Feb 22, 2018 @ 03:04am

YesI do from this adress

Gravatar is a globally recognized avatar based on your email address. re: Contextuel menu in bootstrap mode
  FoxInCloud Support - Thierry N.
  Vincent H.
  Feb 22, 2018 @ 03:27am

please open your browser development tools and check for a JavaScript error (red in console pane)

Gravatar is a globally recognized avatar based on your email address. re: Contextuel menu in bootstrap mode
  FoxInCloud Support - Thierry N.
  Vincent H.
  Feb 26, 2018 @ 01:36am

Thanks for this feedback

I'm aware of this "error"; however it only deals with a font and should not have any impact on the contextual menu display.

Gravatar is a globally recognized avatar based on your email address. re: Contextuel menu in bootstrap mode
  FoxInCloud Support - Thierry N.
  Vincent H.
  Mar 14, 2018 @ 11:29am

Thanks for the feedback;

In fact popup is behind the child form; we need to move it closer on the z-index: you can try this in the browser console:

jQuery('#popup-raccourci').css('z-index', '2000');
Gravatar is a globally recognized avatar based on your email address. re: Contextuel menu in bootstrap mode
  Vincent H.
  FoxInCloud Support - Thierry N.
  Mar 14, 2018 @ 11:57am

Not better. But you have a display: none in .dropdown-menu. Unchecked and this is displayed well

© 1996-2024