FoxInCloud
Menu
Gravatar is a globally recognized avatar based on your email address. Menu
  Arcadio Bianco
  All
  Aug 9, 2018 @ 07:03pm

Today I use a menu class called "sfmenu.vcx", what is the best way to create menus for the FIC?

Gravatar is a globally recognized avatar based on your email address. re: Menu
  Arcadio Bianco
  FoxInCloud Support - Thierry N.
  Aug 10, 2018 @ 04:03am

if I want to create the menu programmatically without using mnx and mnt after the user log in what would be the steps?

Gravatar is a globally recognized avatar based on your email address. re: Menu
  FoxInCloud Support - Thierry N.
  Arcadio Bianco
  Aug 10, 2018 @ 09:35am

create the menu programmatically

I understand build the instructions and execScript() at the end.

Build instructions: wrap instructions into wMenu(); see modify command awPublic > wMenu_cDoc() for more information.

after the user log in

Call your menu program in yourLoginForm.wUserLogin()

Gravatar is a globally recognized avatar based on your email address. re: Menu
  Arcadio Bianco
  FoxInCloud Support - Thierry N.
  Aug 13, 2018 @ 01:35pm

You may also want to sub-class sfMenu.vcx to generate wMenu(…) instructions.

Have you ever adapted the Sfmenu class? There are several items in it that have not been adapted by the FAA. Have you adapted her correctly?

Gravatar is a globally recognized avatar based on your email address. re: Menu
  FoxInCloud Support - Thierry N.
  Arcadio Bianco
  Aug 14, 2018 @ 02:20am

We have no plan to support sfMenu

just taken a look at the code; menu commands are located in specific methods that you can override…

eg.

procedure sfBar.define
…
* Define the bar.

  define bar &lcBarNumber of &lcPopupName prompt .cCaption ;
    message .cStatusBarText skip for &lcSkipFor &lcClauses
…

you can have in your subclass:

procedure awSfBar.define
…
* Define the bar.

  wMenu(Textmerge([define bar <<m.lcBarNumber>> of <<m.lcPopupName>> prompt <<.cCaption>>];
    + [ message <<.cStatusBarText>> skip for <<m.lcSkipFor>> <<m.lcClauses>>])

etc.
Gravatar is a globally recognized avatar based on your email address. re: Menu
  Arcadio Bianco
  FoxInCloud Support - Thierry N.
  Aug 14, 2018 @ 06:28am

Okay, I can try. Are submenus supported?

Gravatar is a globally recognized avatar based on your email address. re: Menu
  FoxInCloud Support - Thierry N.
  Arcadio Bianco
  Aug 14, 2018 @ 07:11am

FoxInCloud supports all menu command and functions except push/pop * and some exotic clauses

You can see the details in home(1) + 'tools\ab\aw\awMenu*.dbf'

Gravatar is a globally recognized avatar based on your email address. re: Menu
  Arcadio Bianco
  FoxInCloud Support - Thierry N.
  Aug 14, 2018 @ 10:01am
		wMenu([DEFINE POPUP files MARGIN RELATIVE SHADOW COLOR SCHEME 4])
		wMenu([DEFINE BAR 1 OF files PROMPT cLocalized("Motivos de Inatividade1")])
		wMenu([DEFINE BAR 2 OF files PROMPT cLocalized("Orders")])
		wMenu([DEFINE BAR 3 OF files PROMPT cLocalized("My Submenu")])
		wMenu([ON BAR 3 OF files ACTIVATE POPUP mysubmenu])

	    wMenu([Define Popup mySubmenu shortcut MARGIN RELATIVE SHADOW COLOR SCHEME 4])
	    wMenu([Define Bar 1 Of mySubmenu Prompt "Current value"])
	    wMenu([Define Bar 2 Of mySubmenu Prompt "Current controlsource"])

		wMenu([On Selection Bar 1 Of mySubmenu] + " DO _56c135eby IN 'MENUFIC.PRG'")
		wMenu([On Selection Bar 2 Of mySubmenu] + " DO _56c135ebz IN 'MENUFIC.PRG'")


		wMenu([ON SELECTION BAR 1 OF files] + " DO _56c135eby IN 'MENUFIC.PRG'")
		wMenu([ON SELECTION BAR 2 OF files] + " DO _56c135ebz IN 'MENUFIC.PRG'")

The submenu appears in lan mode but no in web mode does not appear.

Gravatar is a globally recognized avatar based on your email address. re: Menu
  FoxInCloud Support - Thierry N.
  Arcadio Bianco
  Aug 15, 2018 @ 03:42am

Your findings are right: works in classic mode, not in responsive (Bootstrap) mode.

Will fix ASAP

Gravatar is a globally recognized avatar based on your email address. re: Menu
  FoxInCloud Support - Thierry N.
  Arcadio Bianco
  Aug 15, 2018 @ 04:04am

Arcadio,

After further research, I found that "Bootstrap 3 dropped native support for nested collapsing menus" (see last response).

I understand that nested collapsing menus may not work well on hand-held devices.

I'll dig into that and test/validate some add-on such as smartMenu.

Gravatar is a globally recognized avatar based on your email address. re: Menu
  Arcadio Bianco
  FoxInCloud Support - Thierry N.
  Aug 15, 2018 @ 05:36am

Great! For now I'll leave the submenus out.

Gravatar is a globally recognized avatar based on your email address. re: Menu
  Arcadio Bianco
  FoxInCloud Support - Thierry N.
  Jun 12, 2019 @ 06:05am

Hello,

Do you have a solution for this? Our adaptations are evolving and now this can be a problem.

Gravatar is a globally recognized avatar based on your email address. re: Menu
  FoxInCloud Support - Thierry N.
  Arcadio Bianco
  Jun 13, 2019 @ 01:41am

nothing new unfortunately, you can either flatten your menus or sponsor an evolution.

© 1996-2019