Jump to content


Photo

NxSpinEdit Min Max


  • Please log in to reply
6 replies to this topic

#1 bertrod

bertrod
  • Members
  • 101 posts
  • Gender:Male
  • Location:Switzerland

Posted 22 December 2010 - 07:10 PM

Hello Boki,

I would like to use a SpinEdit with Minimum = 0 and no maximum. Is it possible to configure this ?

Until now, I had customized the SpinEdit source code to be able to do it, but I just installed the latest version and I was wondering if it is now possible to configure the SpinEdit this way using only its properties.

Thank you !

#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 23 December 2010 - 12:04 AM

Hello,

You may set MaxDouble to the Max?

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.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.

#3 bertrod

bertrod
  • Members
  • 101 posts
  • Gender:Male
  • Location:Switzerland

Posted 23 December 2010 - 10:09 AM

Hello,

MaxDouble ? I don't see this property for the TNxSpinEdit (NextGrid version 5.2.7).

#4 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 23 December 2010 - 08:48 PM

Hello Bertrod,

This is a global variable. You may simply use it within statement.

CODE
NxSpinEdit1.Max := MaxDouble;


Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.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.

#5 bertrod

bertrod
  • Members
  • 101 posts
  • Gender:Male
  • Location:Switzerland

Posted 24 December 2010 - 10:17 AM

QUOTE (Boki (Berg) @ Dec 23 2010, 08:48 PM) <{POST_SNAPBACK}>
Hello Bertrod,

This is a global variable. You may simply use it within statement.

CODE
NxSpinEdit1.Max := MaxDouble;


Best regards


Ok I get it, thanks for the tip I'll try it ;)

#6 d6user

d6user
  • Members
  • 94 posts

Posted 15 January 2013 - 05:16 AM

hi, sorry for waiking old thread, but i can't find answer for setting min value. setting spinedit1.min := 0; does not stop at zero.

so i read the above solution for setting the Max and thought it would apply to Min as well:

NxSpinEdit1.Min := MinDouble;

but the spinedit values scroll past/below 0.0, example: 3, 2, 1, 0, -1, -2, -3, -4, .. etc.

i tried to add MinDouble:=0.0; but that gives "left side can't be assigned" error.

#7 d6user

d6user
  • Members
  • 94 posts

Posted 15 January 2013 - 05:30 AM

solved

ok, by accident, i entered min:=-1, and figured out the answer...you have to first set the value for Max, higher than zero.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users