Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>>I was working on a custom form for displaying results of an automatic process running from the .activate event of the form. It works fine, there's just one glitch that I don't mind this time, but would certainly need solved for some other cases if it reappears.
>>
>>The numeric columns in the grid were assigned an InputMask of "999,999,999.99"; the numbers still display without separators. I've used a currency field, and the grid (quite unnecessarily) displayed all four decimals. Tried with n(16,2), it displayed the decimals ok (of course), but sitll didn't show the separators.
>>
>>The InputMask is assigned in the form's init, like this:
>>
>>this.nGrid1.column5.text1.InputMask=g_pc
>>
>>G_pc is defined elsewhere; in the debugger I see it properly assigned to the InputMask property of the textbox in the column. Still, the numbers show without it. Any clues?
>
>Is your column's sparse property set to .F.? Otherwise default textbox displays in inactive cells.
I have found that often (more often than not), you must set the focus to the column in order for the input mask to appear. I've even written a method called
SetFocusAllColumns() within my grid class which does that after the grid is built (self building grid).
Steve
Précédent
Suivant
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