Lazarus

Programming => Widgetset => Cocoa => Topic started by: apeoperaio on September 18, 2019, 02:33:21 pm

Title: [closed] TSpinEdit value is not properly updated using cocoa
Post by: apeoperaio on September 18, 2019, 02:33:21 pm
I noticed that TSpinEdit value is not properly updated using cocoa widgetset.
It seems related to the fact that the value is not updated when the TSpinEdit lose the focus.

I got this error putting a TSpinEdit on a modal form.

I attach a sample project to reproduce this behaviour.
To reproduce it just launch the application, press the button on form1. Change the value in the SpinEdit1 then, using the mouse, click the Button1 on Form2 to close the form.
If you change control on Form2 using TAB the SpinEdit1.Value is properly updated, if I change the SpinEdit1 value then using the mouse I click the Button1 on Form2 the SpinEdit1 Value is not updated.

Is it a known bug?

Lazarus 2.0.5 r61860 FPC 3.0.4 x86_64-darwin-cocoa (alpha)
Title: Re: TSpinEdit value is not properly updated using cocoa
Post by: apeoperaio on September 20, 2019, 06:04:06 pm
Reported as bug ID: 0036096
https://bugs.freepascal.org/view.php?id=36096
Title: Re: TSpinEdit value is not properly updated using cocoa
Post by: apeoperaio on October 22, 2019, 11:50:09 am
Fixed and closed in Trunk rev 62106

Thank you Dmitry Boyarintsev
TinyPortal © 2005-2018