Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
wheelmouse.h File Reference

Go to the source code of this file.

Functions

void xmAddMouseEventHandler (Widget w)
 

Function Documentation

◆ xmAddMouseEventHandler()

void xmAddMouseEventHandler ( Widget  w)

Definition at line 125 of file wheelmouse.cc.

126{
127 Widget wid;
128
129 /* we need to pass the scrollbar widget to the handler */
130 XtVaGetValues(XtParent(w),XmNverticalScrollBar, &wid, NULL);
131
132 /* handler for the scrolledList/ScrolledText */
133 XtAddEventHandler(w, ButtonReleaseMask, False,
134 (XtEventHandler) mouseScroll, wid);
135 /* and for the scrollbar itself */
136 XtAddEventHandler(wid, ButtonReleaseMask, False,
137 (XtEventHandler) mouseScroll, wid);
138}