Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why do textboxes in grid columns do weird back color thi
Message
De
28/05/2009 16:50:01
 
 
À
28/05/2009 16:40:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01402534
Message ID:
01402552
Vues:
64
>>>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
Fil
Voir

Click here to load this message in the networking platform