|
|
Pop-up menus are defined using the same syntax as pull-down menus, and are displayed by the popup command.
For example, a simple pop-up FooBar menu could be defined as follows:
menu: foobar_menu { menu_item: FooBar {} %// menu title dividing_line;menu_item: Foo { fyi Foo } menu_item: Bar { fyi Bar } }
The accompanying icon_rules clause would resemble:
icon_rules { foobar /F { title=FooBar; trigger_action: menu { popup foobar_menu } } }
In the above example, foobar_menu refers to the menu clause of that name already defined. The FooBar menu would appear when you hold down mouse button 3 over the FooBar icon, which represents a file called foobar.
See also: