27.5.1 The Custom Menu Organizer Dialog BoxCustomMenuOrganizer-Dialog
The Custom Menu Organizer allows you to create new menus or hide the built-in menus.
The File Menu
The configuration of the customized menus can be saved as an .omc file, which can be easily shared with others. The File menu in the Custom Menu Organizer offers a group of options to operate .omc files.
New
|
Create a new .omc file.
|
Open...
|
Open an existing .omc file.
|
Delete
|
Delete the current .omc file from the disk permanently.
|
Save
|
Save the current file to disk using the current file name.
|
Save As...
|
Save the current file using a new file name.
|
The list of the available .omc file
|
The highlighted part in the above screenshot shows all the .omc files which are found in Origin's System folder, User Files Folder and the Group folder. You can select one of them to edit it.
|
Exit
|
Exit the Custom Menu Organizer.
|
Other Controls in this Dialog
Show as fly-out under Preferences: Menu
|
Specify whether to show the name of the current .omc file as a fly-out menu under the Preferences menu.
|
Position
|
Specify the position of the custom menu.
Option list:
- Append after Help menu
- Add the custom menu after the Help menu.
- Insert before Window menu
- Insert the custom menu before the Window menu.
|
Close
|
Click this button to close the Custom Menu Organizer dialog.
|
The Add Custom Menu Panel
The left part of this panel lists custom menus in a tree-like structure. You can create up to 3 main popup menus by creating them with the New Main Popup short-cut menu commands (You can right-click on the blank place of the left panel to open the short-cut menu) or by duplicating the existed main popup menu. Each main popup menu may include several popup menus, menu items and separators.
- Popup menu: contains multi-level menus. The maximum menu level is 5.
- Menu item: contains scripts that are executed when the menu item is selected.
- Separator: separate a group of menu options which have a similar function.
The right part of this panel contains different controls to set the properties of the popup menus or menu items. Note that the controls in right panel will be different if the type of the menu option has been changed.
Dialog Box Controls and Context Menu when a Main Popup Menu is selected
Dialog Box Controls
Popup Text
|
Specify the label of the main popup menu.
|
Window Type
|
Specify the instances when the main popup menu is available.
- If the checkbox to the right of a window type is not selected, the popup menu and its sub-menus will be unavailable when the active window is of this window type. Including: Workbook, Graph, Matrix, Layout, Image and Notes
- Note: By default, the window type does not include Excel. Set system variable @ECEM to 1, then it is show Excel option.
- If this radio button is selected, the popup menu will always be available regardless of the active window type.
|
Context Menu
Add Popup
|
Add a sub-popup at the end of the menu option list of the current main popup menu.
|
Add Item
|
Add a menu item at the end of the menu option list of the current main popup menu.
|
Add Separator
|
Add a separator at the end of the menu option list of the current main popup menu.
|
Insert Popup
|
It is available only when the number of main popup menus is fewer then 3. Insert a main popup menu before the current main popup menu.
|
Cut
|
Cut the selected main popup menu.
|
Copy
|
Copy the selected main popup menu.
|
Paste Before
|
It is available only when a popup menu has been cut or copied. Paste the popup menu before the current main popup menu.
|
Paste After
|
It is available only when a popup menu has been cut or copied. Paste the popup menu after the current main popup menu.
|
Paste Inside
|
It is available only when a menu option has been cut or copied. Paste the menu option inside the current main popup menu.
|
Duplicate
|
It is available only when the number of main popup menus less than 3.Duplicate the selected main popup menu.
|
Delete
|
Delete the selected main popup menu.
|
Dialog Box Controls and Context Menu when a Sub Popup Menu is Selected
Dialog Box Controls
Popup Text
|
Specify the label of the sub popup menu.
|
Window Type
|
Specify the instances when the sub popup menu is available.
- If the checkbox to the right of a window type is not selected, the sub popup menu will be unavailable when the active window is of this window type. Including: Workbook, Graph, Matrix, Layout, Image and Notes
- Note: By default, the window type does not include Excel. Set system variable @ECEM to 1, then it is show Excel option.
- If this radio button is selected, the sub popup menu will always be available regardless of the active window type.
|
Merge Tag
|
Specify the merge tag. If two or more sub popup menus have the same tag, they will be merged as one when the menus has been activated.
|
Context Menu
Add Popup
|
Add a sub popup menu at the end of the menu option list of the selected popup menu.
|
Add Item
|
Add a menu item at the end of the menu option list of the selected popup menu.
|
Add Separator
|
Add a Separator at the end of the menu option list of the selected popup menu.
|
Insert Popup
|
Insert a popup menu before the selected popup menu.
|
Insert Item
|
Insert a menu item before the selected popup menu.
|
Insert Separator
|
Insert a separator before the selected popup menu.
|
Cut
|
Cut the selected popup menu.
|
Copy
|
Copy the selected popup menu.
|
Paste Before
|
It is available only when a menu option has been cut or copied. Paste the menu option before the selected popup menu.
|
Paste After
|
It is available only when a menu option has been cut or copied. Paste the menu option after the selected popup menu.
|
Paste Inside
|
It is available only when a menu option has been cut or copied. Paste the menu option inside the selected popup menu.
|
Duplicate
|
Duplicate the selected popup menu.
|
Delete
|
Delete the selected popup menu.
|
Dialog Box Controls and Context Menu when a Menu Item is Selected
Dialog Box Controls
Item Text
|
Specify the label of the menu item.
|
LabTalk Script
|
Enter the LabTalk script that should be associated with the menu item in this edit box. When the menu item is clicked, the script will be executed.
|
Item Enable Condition
|
Specify the condition when the menu item should be enabled. For example, enter wks.ncols>2 in this edit box. Then the menu item will be enabled only when the active worksheet has more than two columns. Leave this edit box empty if you want the menu item to be always enabled.
|
Status Bar Text
|
Specify the text that will be shown in the Status Bar when the mouse hovers over the menu item.
|
Window Type
|
Specify the instances when the sub popup menu is available.
- If the checkbox to the right of a window type is not selected, the menu item will be unavailable when the active window is of this window type. Including: Workbook, Graph, Matrix, Layout, Image and Notes
- Note: By default, the window type does not include Excel. Set system variable @ECEM to 1, then it is show Excel option.
- If this radio button is selected, the menu item will always be available regardless of the active window type.
|
Context Menu
Insert Popup
|
Insert a popup menu before the selected menu item
|
Insert Item
|
Insert a menu item before the selected menu item.
|
Insert Separator
|
Insert a separator before the selected menu item.
|
Cut
|
Cut the selected menu item.
|
Copy
|
Copy the selected menu item.
|
Paste Before
|
It is available only when a menu option has been cut or copied. Paste the menu option before the selected menu item.
|
Paste After
|
It is available only when a menu option has been cut or copied. Paste the menu option after the selected menu item.
|
Duplicate
|
Duplicate the selected menu item.
|
Delete
|
Delete the selected menu item.
|
The context menu When a Separator is selected
Insert Popup
|
Insert a Popup menu before the selected separator.
|
Insert Item
|
Insert a menu item before the selected separator.
|
Insert Separator
|
Insert a separator before the selected separator.
|
Cut
|
Cut the selected separator.
|
Copy
|
Copy the selected separator.
|
Paste Before
|
It is available only when a menu option has been cut or copied. Paste the menu option before the selected separator.
|
Paste After
|
It is available only when a menu option has been cut or copied. Paste the menu option after the selected separator.
|
Duplicate
|
Duplicate the selected separator.
|
Delete
|
Delete the selected separator.
|
The Hide Built-in Menus Panel
This panel lists all of the built-in menus in tree view. You can use the check box to the right of each popup menu or menu item to specify whether to shown.
Dialog Box Controls and Context Menu on this panel
Dialog Box Controls
Window Type
|
Different menus correspond different window types in Origin. A window type is selected in the Window Type drop-down list, the menus listed in the dialog will be automatically updated.
Including: Workbook, Graph, Matrix, Layout, Image and Notes
|
Reset
|
Make all the check boxes selected.
|
Context menu
The context menu when a menu has been highlighted.
Show
|
Show the highlighted menu option. The corresponding check box will be selected accordingly.
|
Hide
|
Hide the highlighted menu option. The corresponding check box will be unselected accordingly.
|
Apply to Worksheet Menus
|
It is available only when Graph or Matrix is selected in the Window Type drop-down list. It applies the current setting (Show/Hide) of the highlighted menu option to the same menu when a worksheet is active.
|
Apply to Graph Menus
|
It is available only when Workbook or Matrix is selected in the Window Type drop-down list. It applies the current setting (Show/Hide) of the highlighted menu option to the same menu when a graph is active.
|
Apply to Matrix Menus
|
It is available only when Graph or Workbook is selected in the Window Type drop-down list. It applies the current setting (Show/Hide) of the highlighted menu option to the same menu when a matrix is active.
|
The context menu that shows when you right-click on the gray area of this panel.
Show All
|
Show all the menu options that are currently listed in the panel.
|
Hide All
|
Hide all the menu options that are currently listed in the panel.
|
|