Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DynamicForeColor on Textbox in a container in a grid
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00451525
Message ID:
00451587
Views:
30
Nick,
With all the possibilities, you could be getting into a deep pit here. I suggest you specify a hook interface that you support. Your class will pass color information to the specified method/property of the Container. Then developers could implement that information anyway they wanted at the container level.

Just my $0.02.


>>>Hi,
>>>
>>>I want to change the forecolor on a textbox which is placed in a container which again is placed in an grid.
>>>
>>>If the value is >= 5 the forecolor should change to RED.
>>>
>>>Is this possible ?????
>>
>>Yes. Have the DynamicForeColor of the Grid.Column call a function that not only returns a valid color but sets the Textbox ForeColor as well. You can create a grid class with a special function for that or call a form level method.
>>
>>HTH.
>
>I can add such functionality to my GridHighlighter class.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform