Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Change the BackColor of a Single Cell
Message
De
10/01/2008 13:19:07
 
 
À
10/01/2008 12:38:25
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01280909
Message ID:
01280929
Vues:
18
>How can I programatically change the BackColor of a single cell? I will have an RGB combination, and the row I want will be currently selected, but not necessarily the column. I want to be able to change the BackColor of ColumnThisOne for the currently selected row.

If you have Sparse set to .T. for the column, you can simply change the BackColor of the column's Textbox. From another column, something like:

This.Parent.colTheOneYouWant.Text1.BackColor =

If you need Sparse set to .F., you'll have to play with DynamicBackColor for the column. But if you only want to change it for the current row, something based on RECNO() ought to do the trick.

Tamar
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform