Object.EditShortcut Command

Purpose

Edits shortcut properties.

Parameters of Use

None

Application Features

The command can be used only for shortcuts.

Example

Executing the example requires that the repository contains a form with the Button1 button and a repository shortcut with the SHORTCUT_TO_TABLE1 identifier.

    Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
        Var
        Mb: IMetabase;
        ObjDes: IMetabaseObjectDescriptor;
        Target: IUiCommandTarget;
    Begin
        MB := MetabaseClass.Active;
        ObjDes := MB.ItemById("SHORTCUT_TO_TABLE1");
        Target := WinApplication.Instance.GetObjectTarget(ObjDes);
        Target.Execute("Object.EditShortcut"Null);
    End Sub Button1OnClick;

Clicking the button opens the shortcut with the SHORTCUT_TO_TABLE1 identifier for edit.

See also:

IUiCommandTarget.Execute