Cocoa: TSpinEdit value not updated correctly
Original Reporter info from Mantis: crlab @neurolabusc1
-
Reporter name: Chris Rorden
Original Reporter info from Mantis: crlab @neurolabusc1
- Reporter name: Chris Rorden
Description:
With Cocoa, when you type into a SpinEdit, the value does not automatically change when you edit it. It seems like you have to change the focus to another component for the value to be updated. Perhaps the TButton OnClick event is generated before it takes focus, but in any case the behavior is different from other widgetsets: the value of the TSpinEdit should mirror the text written in the component.
Steps to reproduce:
Place a SpinEdit on the form, place a Button on the form. Have the button report the value of the SpinEdit. Run the application as Cocoa. Type a different number into the SpinEdit, e.g. "9" and press the button - it reports the previous value. Press the button again and you get the new value. Note that you can press the increment buttons on the SpinEdit and it works accurately, but typing a new value is problemation
procedure TForm1.Button1Click(Sender: TObject);
begin
Showmessage(inttostr(SpinEdit1.Value));
end;
Mantis conversion info:
- Mantis ID: 33047
- OS: Darwin
- OS Build: 10.11.6
- Build: 57109
- Platform: MacBook 2012 Retina 13"
- Version: 1.9 (SVN)
- Fixed in revision: 57187 (#deb99c1a)
- Monitored by: » @neurolabusc1 (Chris Rorden)