Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to change Grid Header color dynamic
Message
De
17/06/2009 08:54:01
 
 
À
17/06/2009 08:10:00
Raza Malik
Universal Accounting Software
Edgewater, New Jersey, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01406534
Message ID:
01406548
Vues:
46
Hi Raza,

>Hi All:
>
>I have a created a custom class... cGrid which is based on VFP base class grid. Is it possible to change the color of the
> grid header and border from default value of RGB(236,233,216) ---to---> RGB(176,196,222) and how ?
>
>Do I need to place a command such as:
>
> This.Parent.ParentcGrid.SetAll("DynamicHeaderColor ???
>
>command in the init event of the cGrid ?.
>
>Any help is greately appreciated.
>
>Thank you in advance..
>
>Raz

First of all you will have to deactivate the Grid property 'Themes'.
Then you could use something like this:

FOR EACH oColumn IN oMyGridRef.Columns
oColumn.Header1.BackColor = RGB(176,196,222)
ENDFOR
Best Regards
-Tom

Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it.

Oh, and BTW: 010101100100011001010000011110000101001001101111011000110110101101110011
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform