[Gambas-user] SpinBox running wild

Charlie Reinl Karl.Reinl at Fen-Net.de
Sun Aug 2 20:23:25 CEST 2020


Am Sonntag, den 02.08.2020, 14:12 -0400 schrieb T Lee Davidson:
> On 8/2/20 2:02 PM, T Lee Davidson wrote:
> > 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. Usin
> > g Stop Event in SpinBox1_Change does not help.
> > 
> 
> I almost forgot to mention that I found a bug in your code.
> 
> If you click the "start" button on the main form, then "Cancel" on
> the FPrePrint form, then "start" again, a Type Mismatch 
> exception occurs at line 85 of FPrePrint.class: dDate =
> Date(CInt(SpinBox1.Text), CInt(ComboBox2.Text), 1)
> 
> This can be fixed by removing the Static keyword from line 6: Static
> Private bLoading As Boolean = True
> 

Thanks, Lee. But this demo, is as we say in Germany 'mit heißen Nadeln
gestrickt'('knitted with hot needles') it should just show the problem
with the SpinBox.



More information about the User mailing list