Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DisabledBackColor for Grid
Message
De
18/02/2002 13:48:33
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00621603
Message ID:
00621606
Vues:
11
Tommy,
you can not mix DYNAMIC* Propertys with normal ones.

A DYNAMIC* Propertie will evaluated by the grid over. So you put a string that evaluates in it. This evaluation results in a number from RGB(). DISABLED*COLOR evaluates nothing - it's a static property. That's your typemismatch - you cannot put a string in it. Just a number.

So for just "look" DISABLED it will work with DYNAMICBACKCOLOR.

If you want to disable the cell it get's more tricky.

Agnes
>Hi... I'm having some trouble trying to get a grid to highlight it's disabled rows according to this concept...
>
>If the dist_order value of a record of the Dist table is 1, then make the DisabledBackColor property be WHITE....
>
>else
>
>make it GREEN..
>
>using this code below in the Form's refresh...
>
>ThisForm.grdLocate.SETALL('DisabledBackColor', ;
> "IIF(t_dist.dist_order = 1, RGB(255, 255, 255), RGB(0,255,0))")
>
>
>but it just errors out, with the error...
>
>"Data type is invalid for this property"....
>
>(Not all of the cells of the row are disabled... just the first cell, the rest are enabled.)
>
>Just for fun, I changed the above command to...
>
>ThisForm.grdLocate.SETALL('DynamicBackColor', ;
> "IIF(t_dist.dist_order = 1, RGB(255, 255, 255), RGB(0,255,0))")
>
>and this works fine for the enabled cells.....
>
>??? Any ideas?? What am I overlooking??
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform