Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to Change the color of grid line which is highlighte
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00031010
Message ID:
00031559
Vues:
48
>>
>>
>>Look at the properties that start with 'dynamic' in the grid class column. You can enter a function in it whose result is the color that you want, and this way you can let this color depend on the data of the cursor underlying the grid.
>>
>>For example, if you wanted to change the backcolor of a grid for the selected line, you could have an the following statement in the DynamicBackcolor property of each of your columns:
>>
>>iif(recno()=thisform.nSaveRecno,rgb(selected),rgb(not selected))
>>
>>You have to make sure that you set thisform.nSaveRecno= recno() of the underlying cursor/table before the form is refreshed.
>>
>>This works in VFP3.0. It is neighter very OO, nor very fast, so you
>I've tried this technique and it works but it is slow and when you scroll the grid fast, it leaves a trail of highlight which I found to be unappealing. There's got to be a better way like being part of the original feature of the grid. I've not upgraded to VFP 5.0 so does anybody know if this feature have become part of the grid or now?

I think I read in this forum (Arnon was it not?) that the feature that is supposed to support this does not work in VFP5.0.

Marc

If things have the tendency to go your way, do not worry. It won't last. Jules Renard.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform