classical menu.mnx/mpr
, see
http://foxincloud.com/tutotest/bs/fileDisplay.tuto?tutoSets.prg
http://foxincloud.com/tutotest/bs/fileDisplay.tuto?tuto.mpr
You may also want to sub-class sfMenu.vcx
to generate wMenu(…)
instructions.
if I want to create the menu programmatically without using mnx and mnt after the user log in what would be the steps?
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()
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?
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.
Okay, I can try. Are submenus supported?
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'
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.
Your findings are right: works in classic
mode, not in responsive (Bootstrap)
mode.
Will fix ASAP
Great! For now I'll leave the submenus out.
Hello,
Do you have a solution for this? Our adaptations are evolving and now this can be a problem.