Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Color lines in a grid
Message
 
To
30/06/2004 06:02:30
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00876634
Message ID:
00918972
Views:
10
>Nick,
>
>Firstly thanks for GridHighlighter! I can't believe microsoft still can't get it right in VFP8! (comboboxes where the final straw)
>
>I wanted to be so bold as to add a method to the class, but obviously can't as I can't recompile, can I put it forward as a suggestion?
>
>I found myself often wanting to match the highlight colours of the grid to other objects (either on the form or user settings on the application object). Since colour properties are by default stored as Hex and GridHighlighter stores RGB string I had a dilema!
>
>My solution was to write a SetHighlight method that received the property to change and Hex Colour. It Translates the hex value and sets the properties.
>
>So I can call .SetHighlight("cHighBackColor",THISFORM.BackColor)
>
>Any thoughts?
>
>
>Gary.

Hi Gary,

So, you want to set the color properties at runtime. I might add OnPreSetDynamicColor() method for that.

I think right now you can do basically the same by placing the code from your .SetHighlight method into GHL's instance SetDynamicColor() method:
*** GHL's instance SetDynamicColor() method ***
* do your color matching here and manipulate the GHL's color properties.
DODEFAULT()
Let me know if it works for you.
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
Previous
Reply
Map
View

Click here to load this message in the networking platform