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