Method AutotextTriggerArgs.Menu
Overload
Creates and shows a menu below the text cursor (caret) or mouse cursor, and calls AutotextTriggerArgs.Replace.
public void Menu(params TAMenuItem[] items)
Parameters
items (TAMenuItem[])
Menu items. An item can be specified as:
|
Remarks
Keyboard:
-
Esc
- close the menu. -
Enter
,Tab
- select the focused or the first item. -
Down
,Up
,End
,Home
,PageDown
,PageUp
- focus menu items. - Also to select menu items can type the number characters displayed at the right.
- Other keys close the menu and are passed to the active window.
Examples
Code in file Autotext triggers
.
//var tt = Triggers.Autotext;
tt["m1"] = o => o.Menu([
"https://www.example.com",
"<tag>[[|]]</tag>",
new("Label example", "TEXT1"),
null,
new("HTML example", "TEXT2", "<b>TEXT2</b>"),
new(null, "TEXT3"),
]);