tag:blogger.com,1999:blog-4818293967282096791.post4421798063347446572..comments2023-12-01T01:44:11.747-08:00Comments on Delphi Bar: Why does TSpinEdit not enforce the MaxValue property?Unknownnoreply@blogger.comBlogger4125tag:blogger.com,1999:blog-4818293967282096791.post-20215918154805574602018-06-26T02:42:24.297-07:002018-06-26T02:42:24.297-07:00Yes, the MaxValue is just for the spinner button n...Yes, the MaxValue is just for the spinner button not for the whole component (TCustomEdit with a TSpinButton). This is not clearly obvious at design time naming the property to SpinButtonMaxValue would help. I believe this could have been designed better. Richardhttps://www.blogger.com/profile/03817406301425251310noreply@blogger.comtag:blogger.com,1999:blog-4818293967282096791.post-26648884612585746282018-06-22T13:03:29.736-07:002018-06-22T13:03:29.736-07:00AFAIK, MaxValue is the maximum value for the spinn...AFAIK, MaxValue is the maximum value for the spinner (the TUpDown part), not for the edit.Rudy Velthuishttps://www.blogger.com/profile/04591719175507325825noreply@blogger.comtag:blogger.com,1999:blog-4818293967282096791.post-37210176213867871742018-06-22T00:56:14.496-07:002018-06-22T00:56:14.496-07:00I never use 'with' statements, they are a ...I never use 'with' statements, they are a very very bad idea and have seen issues so many times when people have used them.Richardhttps://www.blogger.com/profile/03817406301425251310noreply@blogger.comtag:blogger.com,1999:blog-4818293967282096791.post-2184215380740575722018-06-20T10:23:35.019-07:002018-06-20T10:23:35.019-07:00with (Sender as TSpinEdit) do Value := Min(Value,...with (Sender as TSpinEdit) do Value := Min(Value, MaxValue);<br /><br />No need to check if it's a TSpinEdit unless you assign the handler to something that is not a TSpinEdit...Anonymousnoreply@blogger.com