[Gambas-user] SpinBox running wild

T Lee Davidson t.lee.davidson at gmail.com
Sun Aug 2 20:02:40 CEST 2020


On 8/1/20 2:16 PM, Karl Reinl wrote:
> - after pushing [start]
> 
> - go down with the Year-Spinbox to 2006
> - a MsgBox will raise, answer yes or no
> - here it starts to count down to 1999
> 
> or
> 
> - push button 'Service date'
> - a MsgBox will raise, answer yes
> - go down with the Year-Spinbox
> - a
> MsgBox will raise, answer yes or no

It appears that the use of the Message box (and even a custom modal form, for that matter) interferes with proper event 
handling. SpinBox1_Change gets re-triggered even without a user-generated SpinBox change. If the If/Endif Message box block is 
commented out, the event is handled without issue.

Using Wait after the If/Endif Message box block does not help. Using Stop Event in SpinBox1_Change does not help.


-- 
Lee


More information about the User mailing list