>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:
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