Type: info
Title: FormattedField may use input format of numberformat instead of
output format
Posted by: [EMAIL PROTECTED]
Affected: svtools
Effective from: CWS chart11 (SRC680)
*Summary*
--------
+void FormattedField::UseInputStringForFormatting( bool bUseInputStr = true );
+bool FormattedField::IsUsingInputStringForFormatting() const;
*Description*
-------------
When calling UseInputStringForFormatting at a FormattedField, it will
format the number represented by the field using GetInputLineFormat
rather than GetOutputString at the Numberformatter.
E.g., using the output format with number format "Standard" (precision
2), when you enter "0.001" into such an edit field you will get "0" as
formatted text.
This seems in general more appropriate, as an edit field is for
editing numbers. The input line format is what you also have in Calc
when editing the content of a cell using "F2" or the edit field in the
function bar.
Note: As FormattedField is derived from SpinField it may still make
sense to use the output format, when changing values happens only
using the spin-controls.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]