>>>
>>>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
But the text box doesn't exist at the grid class level. I played around with creating a textbox class with code like you suggested above and removing the default textbox and replacing it with my txtBoxClass at run-time. The only problem is you can't add any code to the textbox events in the form designer because the object gets replaced at run time. Is there any way around that?
>
>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...
Roi
'MCP' Visual FoxPro
In Rome, there was a poem.
About a dog, who found two bone.
He lick the one, he lick the other.
He went pyscho, he drop dead!