Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dynamic Color in Grid
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00244921
Message ID:
00245235
Views:
20
>>
>>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform