Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid Highlight Problem - Can you Duplicate it?
Message
 
À
16/09/2005 10:54:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01049139
Message ID:
01050367
Vues:
22
Hi Malcolm,

I just did quck and dirty (since Tracy wanted is so bad :) modification to standard GHL. I've set the DynamicBackColor to these 3 columns individually in GHL.SetDynamicColor method. Each expression calls the method in the Form, that returns the cell color based on field value (just a DO CASE in the sample, as I wanted something easily traceable). However, the "coloring" method may also belong to GHL instance, being placed in one of the hook methods.

I changed GHL.Highlight_row method to call the "coloring" form method again to set the correct BackColor fot the active cell.

The code can be optimized further and can be made more generic to apply to any grid without grid modifications. I can send you a sample from home if you want.

>Nick,
>
>Can you share a high level overview of the technique you passed on to Tracy?
>
>I'm familar with your GridHighlighter class (THANKS!) and wonder what type of changes you needed to make to this class to accomodate Tracy's grid highlighting needs.
>
>Thanks,
>
>Malcolm
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform