Documents

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 = null

Syntax
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"
Title

Change value indicating the caption of the menuitem.

Default = null
Mode Accept item by selections behavior. Value have one of the following parameters:
None Accept item when there are no selections.
Single Accept menuitem when there are single selection.
MultiUnique Accept when multiple selections are single type.
MultiSingle Accept when multiple selections are single file extension.
Multiple Accept all types.
Default = single
Visibility (vis) Visibility of menuitem and can have one of the following parameters:.
Hidden Hide the menuitem.
Normal Enabled the menuitem.
Disable Disabled the menuitem.
Extended The menuitem appears when the Shift key is pressed.
ExtendedHidden Hide the menuitem when the Shift key is pressed.
ExtendedDisable The item appears disabled when the Shift key is pressed.
Default = normal
Position (pos) The position at which a menuitem should be inserted into the menu.
Position can have one of the following parameters:
Auto Insert the menuitem to the current position.
Middle Insert the menuitem to the middle of the menu.
Top Insert the menuitem to the top of the menu.
Bottom Insert the menuitem to the bottom of the menu.
Number sets Insert the menuitem to a specified position with integer numbers.
Default = auto
Separator (sep) Add separator with menuitem position by parameters:
None Not adding a separator with the menuitem.
Before Add a separator before the menuitem.
After Add a separator after the menuitem.
Both Add a separator before and after the menuitem.
Default = none
Image 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
Null Show menuitem without icon.
Inherit Inheriting the image from the parent.
Glyph Assign image as Glyph.
Color Assign image as color.
Path Assign image from location path or resource icon.
Default = null
Parent

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 = null
Syntax

tip = "Lorem Ipsum is simply dummy text."
tip = ["Lorem Ipsum is simply dummy text.", tip.info]
tip = ["Lorem Ipsum is simply dummy text.", tip.info, 1.2]
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