Is There a TSpinEdit for Floats in Delphi?
Asked Answered
S

5

7

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.

Santossantosdumont answered 19/1, 2009 at 12:23 Comment(1)
Yes. There is. Here is one. Commercial ($10) - soft.tahionic.com/download-Delphi_float_spin_edit/index.htmlLaurinda
D
7

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.

Doug answered 19/1, 2009 at 12:27 Comment(3)
It works just fine as a float spinner. You just set ValueType tp vtFloat and Increment to some floating number and off you go.Moersch
That sounds like what I need. Are there some screenshots of all the controls that are available with that library? Tks.Santossantosdumont
There are about 500 visual components in the JVCL... so, no Screenshot, but you can download the "MegaDemo" here: sourceforge.net/projects/jvclDoug
M
2

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.

Mckeown answered 19/1, 2009 at 12:26 Comment(1)
actually there are. example: soft.tahionic.com/download-Delphi_float_spin_edit/index.htmlLaurinda
M
0

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

Malpractice answered 19/1, 2009 at 12:30 Comment(0)
T
0

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:

Theravada answered 19/1, 2009 at 12:34 Comment(2)
links are not there anymoreSolomon
Seems that SourceForge has moved files around. Try your luck at: sourceforge.net/projects/monex don't know the state the project is in haven't touched it for some years.Theravada
K
0

Well that depends on the Delphi version, if you are using Delphi 10.4 Sydney or later versions you can just use TNumberBox and turn the Mode property to nbmFloat, just make sure that the SpinButtonOptions.Placement property is other than nbspNone and you have your control with SpinEdit behaviour and float values...

Kurd answered 9/10 at 8:28 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.