views:

432

answers:

4

Is there really not a TSpinEdit control for floats in Delphi? It looks like there are third party components that supply a control that will work.

How do you implement TSpinEdit for floats? I've been creating my own with a TEDit field and a TSpinButton positioned right beside it but it seems like there should be a better way.

+2  A: 

As far as I know there exists no such component in Delphi.

I'm also using a component from a 3rd party library, SpTBXLib, which is very good for other things, too.

DR
+5  A: 

TJvSpinEdit is a part of the JEDI Visual Component Library. As far as I know it has a property called ValueType which you can set to vtFloat.

Peter
It works just fine as a float spinner. You just set ValueType tp vtFloat and Increment to some floating number and off you go.
gabr
That sounds like what I need. Are there some screenshots of all the controls that are available with that library? Tks.
Dave
There are about 500 visual components in the JVCL... so, no Screenshot, but you can download the "MegaDemo" here: http://sourceforge.net/projects/jvcl/
Peter
A: 

Even if there aren't, you can easily create one using two buttons and a textbox.

Cyril Gupta
A: 

There is non in Delphi, but you can create your own. I have done so for my open source project, you might check it out as a starting point for your own.

EDIT: You will also need following two file to get it working:

Drejc