TSpinEdit not make the readonly
Original Reporter info from Mantis: everton
-
Reporter name: Everton Vieira
Original Reporter info from Mantis: everton
- Reporter name: Everton Vieira
Description:
I have an spinedit that is read only but when his button is clicked they apply the operation what should not be done.
Additional information:
Correction suggested:
procedure TCustomFloatSpinEdit.SetValue(const AValue: Double);
begin
if (FValue = AValue) or (FReadOnly) then Exit;
FValue := AValue;
// clear FValueChanged to prevent getting the old value from the widget
FValueChanged := False;
FUpdatePending := True;
UpdateControl;
end;
Mantis conversion info:
- Mantis ID: 20601
- Version: 0.9.30.2RC2
- Fixed in revision: 33274 (#6fe6fe4e)
- Target version: 0.99.0