I have a form where the min and max of a TUpDown change according to the options selected. A user could set the position and then change the options making his position setting out of the range. I have discovered that Delphi automatically moves the position to the new min or max but the associated TEdit does not reflect this change. How can I make the TEdit show the correct position?
Example:
Example:
Code:
begin
case rgOptions.ItemIndex of
0: begin
updRoll.min:= 4;
updRoll.max:= 12;
end;
1: begin
updRoll.min:= 4;
updRoll.max:= 20;
end;
2: begin
updRoll.min:= 13;
updRoll.max:= 20;
end;
3: begin
updRoll.min:= 15;
updRoll.max:= 20;
end;
end; {case}
end; {proc}