Geant4 11.2.2
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)
extern

Definition at line 126 of file wheelmouse.cc.

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