Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dynamic Color in Grid
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00244921
Message ID:
00245235
Vues:
21
>>
>>If you're allowing users into cells and want to keep the colors when in cell, you can use textbox Gotfocus...something like
>>
>>this.backcolor = appropriate color
>>this.forecolor = appropriate color
>
>PMFJI- Is it possible to handle that through a grid class?

Certainly, one way or another :) I make the colors into a grid property, which can be obtained by various means (preset, parameter, etc.)

then the column textbox gotfocus code is something like

this.backcolor = this.parent.parent.nbackcolor
this.forecolor = this.parent.parent.nforecolor

or you could do it in an ARCC by looping through the columns, too, I guess, would be another way...or in vfp6, you could even use ADDPROPERTY, too...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform