PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Jean-pierre Leroy on January 24, 2010, 07:04:34 PM

Title: FireTexBox and negative value below 1
Post by: Jean-pierre Leroy on January 24, 2010, 07:04:34 PM
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
Title: Re: FireTexBox and negative value below 1
Post by: Cho Sing Kum on January 24, 2010, 07:50:05 PM
Same behaviour here with value from -0.01 to -0.99.

WinXP SP3 32bit
Title: Re: FireTexBox and negative value below 1
Post by: Jean-pierre Leroy on January 25, 2010, 03:13:34 AM
Hi Cho,

thanks for your report.

Jean-Pierre
Title: Re: FireTexBox and negative value below 1
Post by: Rolf Brandt on January 25, 2010, 10:26:45 AM
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.
Title: Re: FireTexBox and negative value below 1
Post by: Paul Squires on January 25, 2010, 01:37:09 PM
Please try the attached new FireTextBox.inc file. I made a change and it seems to have corrected the problem.

Please let me know.
Title: Re: FireTexBox and negative value below 1
Post by: Rolf Brandt on January 25, 2010, 02:40:54 PM
I guess that cured the problem. Works fine now.
Title: Re: FireTexBox and negative value below 1
Post by: Jean-pierre Leroy on January 25, 2010, 02:56:23 PM
Rolf, you were faster than me to test the fix from Paul  ;)

But it works fine also for me  :)
Title: Re: FireTexBox and negative value below 1
Post by: Robert Eaton on January 26, 2010, 11:16:54 AM
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

Title: Re: FireTexBox and negative value below 1
Post by: Paul Squires on January 26, 2010, 11:37:00 AM
Thanks Bob, I'll check that out and get it fixed up before the next update is released.
Title: Re: FireTexBox and negative value below 1
Post by: Paul Squires on January 26, 2010, 12:26:51 PM
Hi Bob,

Could you please test the attached new FireTexBox include file. I made a change that seems to have fixed it.
Title: Re: FireTexBox and negative value below 1
Post by: Robert Eaton on January 26, 2010, 12:57:29 PM
Yup. That's got it!

Thanks,
Bob

Title: Re: FireTexBox and negative value below 1
Post by: Rolf Brandt on January 30, 2010, 02:04:54 PM
Jim,
the one from January 26 is the last (and right) one: FireTextBox20090126.inc
Title: Re: FireTexBox and negative value below 1
Post by: John Montenigro on January 30, 2010, 08:26:39 PM
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.