Code: Select all
; PureBasic 6.00 LTS (x86)
; Windows 11 21H2 (Build 22000.856)
OpenWindow(0,0,0,300,300,"test")
Repeat
Event = WaitWindowEvent()
Select Event
Case #PB_Event_LeftDoubleClick:Debug "double"
Case #PB_Event_LeftClick:Debug "single"
EndSelect
Until Event = #PB_Event_CloseWindow
=> a singe left mouse click should display "single" in debugger window (this part is fine)
=> a double left click should only display "double" - but it doesn't

Instead this three messages are displayed: "single", "double" and "single" again.

What's wrong with this code?