Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Change the color of grid line which is highlighte
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00031010
Message ID:
00031545
Views:
43
>>Is there a way to change the color of a grid line, which is currently highlighted.
>>
>>The property which is available for grid line color only changes the color when it is not selected, once it is selected, I guess it uses colors from Windows.
>>
>>Any way to change the color ??
>
>Vinod,
>
>Look at the properties that start with 'dynamic' in the grid class column. You can enter a function in it whose result is the color that you want, and this way you can let this color depend on the data of the cursor underlying the grid.
>
>For example, if you wanted to change the backcolor of a grid for the selected line, you could have an the following statement in the DynamicBackcolor property of each of your columns:
>
>iif(recno()=thisform.nSaveRecno,rgb(selected),rgb(not selected))
>
>You have to make sure that you set thisform.nSaveRecno= recno() of the underlying cursor/table before the form is refreshed.
>
>This works in VFP3.0. It is neighter very OO, nor very fast, so you should implement it only where absolutely necessary.
>
>Make sure you look into help if you want to implement this programmatically.
>
>HTH,
>
>Marc

I've tried this technique and it works but it is slow and when you scroll the grid fast, it leaves a trail of highlight which I found to be unappealing. There's got to be a better way like being part of the original feature of the grid. I've not upgraded to VFP 5.0 so does anybody know if this feature have become part of the grid or now?
It's "my" world. You're just living in it.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform