wheelmouse.cc File Reference

#include <X11/Intrinsic.h>
#include <X11/Xlib.h>
#include <Xm/Xm.h>
#include <Xm/ScrollBar.h>

Go to the source code of this file.

Functions

void xmAddMouseEventHandler (Widget w)


Function Documentation

void xmAddMouseEventHandler ( Widget  w  ) 

Definition at line 125 of file wheelmouse.cc.

00126 {
00127    Widget wid;
00128 
00129    /* we need to pass the scrollbar widget to the handler */    
00130    XtVaGetValues(XtParent(w),XmNverticalScrollBar, &wid, NULL);
00131 
00132    /* handler for the scrolledList/ScrolledText */
00133    XtAddEventHandler(w, ButtonReleaseMask, False,
00134                      (XtEventHandler) mouseScroll, wid);
00135         /* and for the scrollbar itself */    
00136         XtAddEventHandler(wid, ButtonReleaseMask, False,
00137                                                   (XtEventHandler) mouseScroll, wid);
00138 } 


Generated on Mon May 27 17:51:17 2013 for Geant4 by  doxygen 1.4.7