No events occur during scrolling
Posted: Thu Jan 10, 2019 12:40 am
I wrote a pragram and that uses a scroll bar gadget and I wanted to signal when the value it returns changes while scrolling. So I "binded" the scoll bar and had it post an event when its value changed. Fail. Investigating I discovered that while scolling with mouse button depressed no events would occur. Here is a snippet of test code. Normally debug prints "timer" twice a second as expected. But when scolling nothing. When I release the mouse button a whole bunch of "timer" are printed by debug. I infer that the events are posted to the event queue but not being acknowledged by the WaitWindowEvent command until the mouse button is released.
Anyone care to comment.
Anyone care to comment.
Code: Select all
AddWindowTimer(0,6,500) ;many lines of code above this line
Repeat ;Main Loop
Event = WaitWindowEvent() ;After plotting wait for window events
If Event = #PB_Event_CloseWindow
End
EndIf
If event=#PB_Event_Timer
Debug "timer"
EndIf