-
Notifications
You must be signed in to change notification settings - Fork 61
Open
Description
Sorry, I don't use Github much so don't know how to create a pull request. Here is an improvement to the value handling in Spin Edits:
procedure TfpgSpinEdit.EditExit(Sender: TObject);
begin
if FEdit.Text = '' then
begin
if FMinValue>0 then
begin
FValue := FMinValue;
FEdit.Value := FValue;
end else
begin
FValue := 0;
FEdit.Value := FValue;
end;
end
else if StrToInt(FEdit.Text) > FMaxValue then
begin
FValue := FMaxValue;
FEdit.Value := FValue;
end
else if StrToInt(FEdit.Text) < FMinValue then
begin
FValue := FMinValue;
FEdit.Value := FValue;
end else
FValue := FEdit.Value;
EnableButtons;
end;
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels