Chazin Home Chazin Home | Ca-binding Protein DB | Vanderbilt Home Vanderbilt Home
Research Description | Publications | Wisdom | Search
How to contribute | About this page

Customizing the "right-click" menu in Felix


Unfortunately, I found that the right-click Felix menu is really only the ?D Display menu (when you are in ?D mode), not a seperate user configureable menu :-/

However, I was able to change the default menu system in Felix 95.0 on bianca so that it is a seperate menu. Unfortunatly, without quite a bit more hacking, it still won't be a "user configurable" menu, but rather, a "machine configurable" menu, which for most cases in our group is the same thing. Here is what I did for the 2D right click menu. Do the analogous things for the other modes. It should be fairly obvious what things are different for the 1D and nD modes. If you want, you can copy the mouser2d.mac and mouser2d.mnu from bianca's Felix installation as a starting point, although on bianca there have already been modifications that you may not want on your installation.

  1. All the menus are under your machine's biosym directory in 950/macros/felix/menus/mnu and the macros for the menu system are all in 950/macros/felix/menus/mac. Copy display2d.mac to mouser2d.mac in the macros directory and display2d.mnu to mouser2d.mnu in the menus directory.
  2. Back up the original tools2d.mac files to some name like tools2d.mac.orig
  3. In tools2d.mac change:
    if &keyhit eqs mouser then
    exr &2ddisp 1
    to
    if &keyhit eqs mouser then
    exr mouser2d 1
  4. In mouser2d.mac, change:
    mnu insert display2d &xwalk &ywalk 0
    to
    mnu insert mouser2d &xwalk &ywalk 0
  5. in mouser2d.mac change all lines that say:
    mnu rem display2d
    to
    mnu rem mouser2d

    That should take care of making the right-click menu an independent menu that is now ready to be configured by adding entries to the mouser2d.mnu file (don't forget to add to the number of entries on the second line of the mnu file as you add menu entries! See the manual in the menus chapter and the mnu command for details), and then corresponding adding item_#: subroutines to the mouser2d.mac macro.

    -Jarrod