Static Items
This section modifies context menu items added by the system or by a third party. more than one item can be added with some properties to customize the context menu. explained below in more details.
The items must have the property find
. to search in the titles of the menu items to catches them and customize by other properties such as changing the title, icon, visibility, or moving it to another location.
In the following example, it shows how to write add an items to static:
shell
{
static
{
item(find = 'copy'image = #00ff00)
item(find = 'paste' image = #0000ff)
}
}
Properties
Property | Summary | ||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Where | Allow menu item to be passed if a true value is returned Default = true |
||||||||||||||||||||||||||||||||
Find | Accept menuitem when the specific menuitem title is contains or equal to the current find property. Use this delimiter | to separate patterns.
This property must be included with another property at least if where property is not defined. Default = nullSyntax find = 'undo' Find any word contains "undo" find = '"undo"' Match whole word only find = '*undo' Find a word that ends with find = 'undo*' Find a word that starts with find = '!undo' Find any word not contains "undo" find = '!"undo"' Search for any word not equal to "undo" find = '!*undo' Find a word that not ends with find = 'undo*!' Find a word that starts with find = 'undo delete|undo copy' Find an equal title for "undo delete" or "undo copy" |
||||||||||||||||||||||||||||||||
In |
Determine the path of the menu being searched. Default = null |
||||||||||||||||||||||||||||||||
Title |
Change value indicating the caption of the menuitem. Default = null |
||||||||||||||||||||||||||||||||
Mode | Accept item by selections behavior. Value have one of the following parameters:
|
||||||||||||||||||||||||||||||||
Type | Specify the types of object files allowed for the menu item to appear. The property is assigned to one or more of these parameters and this character | is used to separate types.Add a character ~ before single type to exclude.
The property not supported syntax expressions.
Required for menu, item, separator. |
||||||||||||||||||||||||||||||||
Visibility (vis) | Visibility of menuitem and can have one of the following parameters:.
|
||||||||||||||||||||||||||||||||
Position (pos) | The position at which a menuitem should be inserted into the menu. Position can have one of the following parameters:
|
||||||||||||||||||||||||||||||||
Separator (sep) | Add separator with menuitem position by parameters:
|
||||||||||||||||||||||||||||||||
Image, Icon | The icon that appears in a menuitem, This property can be assigned as image files, resource icons, glyph or color. With one of the following parameters
|
||||||||||||||||||||||||||||||||
Checked | Value that indicates whether the menuitem checked type:
Required for item. |
||||||||||||||||||||||||||||||||
Parent, Menu | Move current menu item(s) to another menu. Default = null |
||||||||||||||||||||||||||||||||
Keys | Show keyboard shortcuts. Default = null |
||||||||||||||||||||||||||||||||
Tip |
Show a tip for the current item Default = nullSyntax
|
||||||||||||||||||||||||||||||||
Default |
Specifies that the menuitem is the default. A menu can contain only one default menuitem, which is displayed in bold. Default = false |
This page is open source.
Noticed a typo? Or something unclear?
Improve this page on GitHub