This topic, originally addressed by Robert's posting in https://forum.blackboxframework.org/viewtopic.php?f=41&t=716&start=20#p6830,
is for collecting ideas regarding improved flexibility in menu customization.
- Josef
MENU "#Dev:&Tools"
"ViewSizer..." "" "StdCmds.OpenToolDialog ('Wands/Rsrc/ViewSizer', '(Wands)ViewSizer')"
"TextCmds.SingletonGuard"
"Mascara..." "" "StdCmds.OpenToolDialog ('Wands/Rsrc/Mascara', '(Wands)Mascara')" "TextCmds.EditGuard"
SEPARATOR
3 "Insert Commander End" "" "DevCommanders.DepositEnd; StdCmds.PasteView" "StdCmds.PasteViewGuard"
SEPARATOR
SEPARATOR
"#Dev:&Create Target" "T" "StdLinks.CreateTarget" "StdLinks.CreateGuard"
SEPARATOR
SEPARATOR +
"Insert Left" "*F5" "DevSelectors.DepositLeft; StdCmds.PasteView" "StdCmds.PasteViewGuard"
"Insert Middle" "*F6" "DevSelectors.DepositMiddle; StdCmds.PasteView" "StdCmds.PasteViewGuard"
"Insert Right" "*F7" "DevSelectors.DepositRight; StdCmds.PasteView" "StdCmds.PasteViewGuard"
END
Josef Templ wrote:The proposal is based on a single Menu modification file, if I understand it correctly.
But I would like to have the possibility to extend menus (e.g Dev) by adding a subsystem from CPC (e.g. Srcnav).
This particular example needs a single menu item that is best placed in the Dev menu.
I could imagine a mechanism that allows the subsystem Srcnav to specify that there should be a menu item added to Dev,
maybe with an option to specify the insertion point.
Then it suffices to have Srcnav installed and there is no need to manipulate the menus manually.
MENU "#Dev:&Dev"
SEPARATOR
SEPARATOR
SEPARATOR
3 "#Srcnav:New option" "F8", "SrcnavModule.Command" "SrcnavModule.Guard"
END
Another requirement is that often I would like to enable or disable menus, for example Obx or Tut
is only for beginners or for exceptional situations. It should be possible to switch menus off and on.
Josef Templ wrote:Another requirement is providing a programming interface to the menus.
APPENDMENU "#Dev:&Dev"
SEPARATOR
"#Srcnav:New option" "F8", "SrcnavModule.Command" "SrcnavModule.Guard"
END
Zinn wrote:Without APPEND it replace the existing menu as it is doing now.
MENU "#Dev:&Dev"
"#Dev:&Open File List"
"#Srcnav:&Navigator" "G" "SrcnavUI.InitDialog('Srcnav/Rsrc/Tool')" "TextCmds.FocusGuard"
END
Users browsing this forum: No registered users and 0 guests