Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>>>Please see attached image.
>>>
>>>When the user tabs into the column, ALL of the textboxes in the enitre column get a dark grey background. I have tried everyting to make the background appear white.
>>>
>>>It is a plain textbox in a grid colum with the following settings:
>>>column.spare=.f.
>>>column.readonly=.t.
>>>textbox.InputMask="999,999.99" (To show commas as a thousands separator)
>>>
>>>
>>>I've tried both settings on the textbox for BackStyle (Transparent and Opaque), I've tried forcing the BackColor to 255,255,255. I've tried disabled baclcolor=255,255,255
>>>
>>>What am I missing?
>>>
>>>If I set Sparse to .T. the color works correctly, but I lose the commas.
>>
>>Generally you'll want .Sparse = .T., so really we need to figure out some way for your mask to stay in effect.
>>
>>Various DisabledProperties only apply when the control.Enabled = .F., not when .ReadOnly = .T. - they are different things.
>>
>>Are you using a framework? The old VFE5 framework by default sets backcolors when .ReadOnly = .T. which can be a real PITA sometimes.
>
>No framework.
>
>Also, even if I clear the InputMask, it still does it.
FIXED IT!!!!
The trick is to use Column.DynamicInputMask=["@R ###,###,###.##"] and then you can turn off the Column.Sparse
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