DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Configuring Desktop menus

Pop-up menus

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:


Next topic: Disabling menu commands
Previous topic: Pull-down menus

© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003