home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-386-Vol-2of3.iso / b / bricon20.zip / bricons / trans.h < prev    next >
Text File  |  1992-07-23  |  1KB  |  42 lines

  1. static char* sccs_trans_h = "%W%%G%";
  2.  
  3. /*
  4.     translations for the main menu buttons to popup the sub menu.  
  5.     SetPopup positions the shell.  MenuPopup realizes the shell.
  6. */
  7.  
  8. static    String pb_Trans =
  9.     "<EnterWindow>:    highlight() \n\
  10.     <LeaveWindow>:    unhighlight() \n\
  11.     <Btn1Down>:    set_popup(box.action%d.popup_menu) MenuPopup(popup_menu) unhighlight()";
  12.  
  13. /*
  14.     translations for the command buttons of the popup menus the
  15.     command callback is invoked when the button is released with
  16.     the pointer in the command widget.
  17. */
  18.  
  19. static    String cb_Trans =
  20.     "<EnterWindow>:    set() \n\
  21.     <LeaveWindow>:    unset() \n\
  22.     <Btn1Up>:    notify() delay() reset()";
  23.  
  24. /*
  25.     translations for the shell of the popup menu.  When the button
  26.     is released the shell catches it and pops itself down.
  27. */
  28.  
  29. static    String pm_Trans =
  30.     "<Btn1Up>:    MenuPopdown()";
  31.  
  32. /* add new actions to this program */
  33.  
  34. static    XtActionsRec    menu_actions[] = {
  35.     { "set_popup", set_popup },
  36.     { "delay", delay }
  37. };
  38.  
  39. /*  the name of the shell, used by SetPopup and MenuPopup actions */
  40. static  String popup_menu_name = "popup_menu";
  41.  
  42.