Information générale
Catégorie:
Gestionnaire d'écran & Écrans
I like for numbers displayed in a text box to have the 1000's separated by a comma,
i.e, 10,000 or 102,000. I can make this happen by setting the Input Mask to "999,999,999."
However, the input mask is also active when keying the data.
This is confusing for the user because as the numbers are keyed,
they show up from left to right, thus, 1000 looks like "100,0"
until you hit the enter key when it changes to "1,000"
The input of the numbers in VFP it is completely mistaken.
The textBox.Text property, for a number, must to be filled from right to the left ( like Excel ).
Practically the TextBox has not been completed, and for numeric input it is a poor area of editing.
( For Data,Datetime it have a internal logic control )
AFAIK, you must control the
-Value
-SelStart
-SelLen
....
into the Keypress, and use NODEFAULT for skip VFP input.
But it is not simple with a ControlSource binded or into a Grid.
Fabio
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement