Jump to content


Photo

onSpin minimum value

TNxSpinEdit6

  • Please log in to reply
No replies to this topic

#1 janz

janz
  • Members
  • 9 posts
  • Gender:Male
  • Location:Brazil
  • Interests:delphi

Posted 18 November 2020 - 12:23 AM

it is not possible to set the minimum value defined using the spin button in SpinEdit6 InplaceEdit of NextGrid6

Max = 10.0

Min = 0.05

Increment = 0.01

Precision = 2

 

correction possible in

procedure TNxSpinEdit6.DoButtonsSpin(Sender: TObject; Buttons: TNxSpinButton);

from

if CheckRange and (Value - FIncrement < Min) then Exit;

to

if CheckRange and (CompareValue(Value - FIncrement, Min) = LessThanValue) then Exit;

 


J.C.Janz




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users