Hi Tom,
> GuiTypes.h says "see EGEventTypes", but I cannot find that anywhere.
They are also defined in GuiTypes.h:
// GUI event types. Later merge with EEventType in Button.h and rename
to
// EEventTypes. Also rename in that case kGKeyPress to kKeyPress.
enum EGEventType {
kGKeyPress, kKeyRelease, kButtonPress, kButtonRelease, kMotionNotify, kEnterNotify, kLeaveNotify, kFocusIn, kFocusOut, kExpose, kConfigureNotify, kMapNotify, kUnmapNotify, kDestroyNotify, kClientMessage, kSelectionClear, kSelectionRequest, kSelectionNotify, kColormapNotify, kButtonDoubleClick, kOtherEvent };
Cheers,
Bertrand.
-----Original Message-----
From: owner-roottalk_at_pcroot.cern.ch
[mailto:owner-roottalk_at_pcroot.cern.ch] On Behalf Of Tom Roberts
Sent: Thursday, July 12, 2007 6:07 AM
To: 'ROOT Talk'
Subject: [ROOT] [ROOTTALK] Event_t::fType values
I am trying to use right- and middle- mouse clicks on a TGTextEntry. I can Connect to its ProcessedEvent(Event_t*) signal, and can printf the Event_t field values, but I have no idea what those numbers mean. GuiTypes.h says "see EGEventTypes", but I cannot find that anywhere. Pressing the button generates 5 events, and releasing it generates 1 more. From GuiTypes.h I can identify the button in fCode, and its bit in fState, but the fType values are opaque. I want to be portable, so just deducing the value from the printf does not seem like a good idea. Where are these documented?
Mouse enters TGTextEntry:
fType=5 fCode=0 fState=0x00000010
Right button down:
fType=6 fCode=1 fState=0x00000410 fType=5 fCode=2 fState=0x00000410 fType=2 fCode=3 fState=0x00000010 fType=8 fCode=0 fState=0x00000005 fType=7 fCode=0 fState=0x00000000
Right button released:
fType=3 fCode=3 fState=0x00000410
Mouse leaves TGTextEntry:
fType=6 fCode=0 fState=0x00000010
Tom Roberts Received on Thu Jul 12 2007 - 09:33:22 CEST
This archive was generated by hypermail 2.2.0 : Thu Jul 12 2007 - 11:50:02 CEST