Jump to content


Photo

onSpin minimum value

TNxSpinEdit6

  • Please log in to reply
1 reply 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

#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 7,955 posts
  • Gender:Male

Posted 27 December 2020 - 07:06 PM

Hi,

 

Thank you, I have added your fix into upcoming update.


boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Members Section: bms.bergsoft.net
Articles and Tutorials: dn.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users