FireTexBox and negative value below 1

Started by Jean-pierre Leroy, January 24, 2010, 07:04:34 PM

Previous topic - Next topic

Jean-pierre Leroy

Hi,

It doesn't seem possible to enter a negative value below 1, let say -0.50

My "FireTextBox control" is defined like that:

- "Numeric" mask style.
- "Allow Negative Sign" is ticked.
- "Whole Digits" 6
- "Decimal Places" 2

In fact I can fill a value like -0.50 but as soon as I put the focus on another control, the remaining value is 0.50

Can you report in this thread if you have the same behavior as me on your PC ?

PS: Here is a small project that you can use to test and some screen shot to illustrate this issue.

Thanks you.
Jean-Pierre

Cho Sing Kum

Same behaviour here with value from -0.01 to -0.99.

WinXP SP3 32bit

Jean-pierre Leroy

Hi Cho,

thanks for your report.

Jean-Pierre

Rolf Brandt

#3
Hi Jean-Pierre,

it works correct here, the minus sign remains there.
Using the same environment as Cho.
WinXP SP3 32bit

Did you use the new FireTextBox.inc that Paul had uploaded?

Rolf

Added:
I just noticed that I can replicate the error if I use for input of the decimal point the numerc block (which has a comma as decimal separator on my German keyboard). It does format properly but looses the minus sign.
Rolf Brandt
http://www.rbsoft.eu
http://www.taxifreeware.com
I cook with wine, sometimes I even add it to the food.
(W. C. Fields)

Paul Squires

Please try the attached new FireTextBox.inc file. I made a change and it seems to have corrected the problem.

Please let me know.
Paul Squires
PlanetSquires Software

Rolf Brandt

I guess that cured the problem. Works fine now.
Rolf Brandt
http://www.rbsoft.eu
http://www.taxifreeware.com
I cook with wine, sometimes I even add it to the food.
(W. C. Fields)

Jean-pierre Leroy

Rolf, you were faster than me to test the fix from Paul  ;)

But it works fine also for me  :)

Robert Eaton

There is still a minor little bug in it.

1) Enter a negative number
2) Now select (highlight) the number you just entered
3) Type a negative sign (as if you were going to input a new negative number)

Entering a negative sign as the first character does not erase the highlighted text as it should. (Entering a number instead of the negative sign does erase the highlighted text.

Win XP, SP3


Paul Squires

Thanks Bob, I'll check that out and get it fixed up before the next update is released.
Paul Squires
PlanetSquires Software

Paul Squires

Hi Bob,

Could you please test the attached new FireTexBox include file. I made a change that seems to have fixed it.
Paul Squires
PlanetSquires Software

Robert Eaton


Rolf Brandt

Jim,
the one from January 26 is the last (and right) one: FireTextBox20090126.inc
Rolf Brandt
http://www.rbsoft.eu
http://www.taxifreeware.com
I cook with wine, sometimes I even add it to the food.
(W. C. Fields)

John Montenigro

#12
Quote from: Rolf Brandt on January 30, 2010, 02:04:54 PM
Jim,
the one from January 26 is the last (and right) one: FireTextBox20090126.inc

Ooops!??   should that be: FireTextBox20100126.inc

???



From the perspective of managing documentation well, I'd like to suggest that the .ZIPfile contain not only the .INC file, but a .TXT that contains info about that release...

I'm checking into "documentation generators", and hope to soon be able to provide suggested practices... later this week.

-JohnM.