Event decoding
Posted: Sat Apr 07, 2012 4:56 am
How do you decode an event? I have this in my
The code I am getting is 512. How do I figure out what it is?
I am getting the code when I right-click on a Scintilla gadget that does not have the focus, but this test does not show a 512:
So, while I DO want to know what event 512 is, even more, I want to know how to reverse-lookup an event number. Clearly, I can just put a DisplayPopupMenu() in that default case, but without knowing for certain what a 512 is, I don't know what unexpected behavior may result.
Thanks!
Edit: It must have to do with focus, because it occurs with left or right clicks.
Code: Select all
Case #PB_Event_Gadget
Select EventGadget()
Default
Debug "Default Event " + Str(EventType())
I am getting the code when I right-click on a Scintilla gadget that does not have the focus, but this test does not show a 512:
Code: Select all
Debug #PB_EventType_LeftClick ; Left mouse button click
Debug #PB_EventType_RightClick ; right mouse button click
Debug #PB_EventType_LeftDoubleClick ; Left mouse button double click
Debug #PB_EventType_RightDoubleClick; Right mouse button double click
Debug #PB_EventType_Focus ; Get the focus.
Debug #PB_EventType_LostFocus ; Lose the focus.
Debug #PB_EventType_Change ; Content change.
Debug #PB_EventType_DragStart ; The user tries To start a Drag & Drop operation.
Thanks!
Edit: It must have to do with focus, because it occurs with left or right clicks.