#PB_EVENT_Enumerations
Posted: Tue Sep 12, 2017 1:43 pm
So, I'm trying to find my way through the examples and getting to find the quirks of PureBasic from other compilers etc.
When I look at the example programs, such as the GadgetAdvanced.pb, I see the select case statement as follows....
Now, I would love to believe that the EventType() = 2 is a double click, because when I double click on it, I get a message that says, 'Doubleclick'....
But when I change the '2' to #PB_Event_LeftDoubleClick, I don't get any response when I double click.
In debugging I find that the value of #PB_Event_LeftDoubleClick = 18, not 2.
Where do I get the list of what the enumerations should be?
Regards
Andrew
When I look at the example programs, such as the GadgetAdvanced.pb, I see the select case statement as follows....
Code: Select all
Case 2
SetGadgetText(4, "Tree Gadget. Item selected: "+Str(GetGadgetState(2)))
If EventType() = 2;
MessageRequester("Information", "Doubleclick: item"+Str(GetGadgetState(2))+", Text: "+GetGadgetText(2), 0)
MessageRequester("Information", Str(#PB_Event_LeftDoubleClick),0)
ElseIf EventType() = 1
DisplayPopupMenu(0, WindowID(0))
EndIf
But when I change the '2' to #PB_Event_LeftDoubleClick, I don't get any response when I double click.
In debugging I find that the value of #PB_Event_LeftDoubleClick = 18, not 2.
Where do I get the list of what the enumerations should be?
Regards
Andrew