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.