Modifying .Xdefaults to get the scroll wheel to work with IDL X11 widgets


Tip from: http://ssc.spitzer.caltech.edu/archanaly/contributed/cubism/manual/cubism_4.html

Add this to your "~/.Xdefaults" file:

*XmList.baseTranslations:       #augment Shift: ListNextItem()\n\
        Shift: ListPrevItem()\n\
        : ListNextPage()\n\
        : ListPrevPage()\n

*XmScrollBar.baseTranslations:  #augment : IncrementUpOrLeft(0) IncrementUpOrLeft(1)\n\
        : IncrementDownOrRight(0) IncrementDownOrRight(1)\n

*XmText.baseTranslations:       #augment Shift: page-left()\n\
        Shift: page-right()\n\
        : scroll-one-line-up()\n\
        : scroll-one-line-down()\n 

X11 must then be restarted before the scroll wheel will actually start working.


Return to NewMacIntel.