Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Coloring grid cells
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01510768
Message ID:
01510777
Vues:
54
My problem is to highlight a single cell depending on a certain event.
I have a list of terminal which have to upload and download data. I wanted to colour by green the download cell of the terminal if it downloaded data, by red if it is working and by white if it had no data do download and the same regarding the upload.
thanks again
>>>mygrid.column1.dynamicbackcolor="iif(somecondition,rgb(50,255,0),rgb(255,255,255))"
>>this command colors the whole column. I need a single color to be coloured. What if I wanted to have a chess board in a grid ?
>
>you have to use the somecondition part to get whatever pattern you want.
>
>For example, grid bound to a cursor could achieve chessboard pattern with something like:
>
>
>mygrid.column1.dynamicbackcolor="iif(mod(recno('mycursor'),2)=0,rgb(0,0,0),rgb(255,255,255))"
>mygrid.column2.dynamicbackcolor="iif(mod(recno('mycursor'),2)=1,rgb(0,0,0),rgb(255,255,255))"
>mygrid.column3.dynamicbackcolor="iif(mod(recno('mycursor'),2)=0,rgb(0,0,0),rgb(255,255,255))"
>mygrid.column4.dynamicbackcolor="iif(mod(recno('mycursor'),2)=1,rgb(0,0,0),rgb(255,255,255))"
>
>
>Don't forget to set Sparse to .F.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform