Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid Border Color
Message
From
02/10/2018 05:18:45
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
02/10/2018 03:03:26
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Database:
MS SQL Server
Miscellaneous
Thread ID:
01662372
Message ID:
01662430
Views:
59
>>>Hi!
>>>
>>>Is ist possible to set the Border Color of the GridObject?
>>
>>I've seen solutions where there'd be a line around the grid. Four lines, that is, with some distinct color (depending on focus that would change), while the gridlines were some lighter shade of gray. Looks good, to be honest. And the code isn't too complicated, even with a few bindevent()s to support resizing.
>
>Hi,
>
>The idea buy Yousfi to set the grid in a a container is also a nice solution

And it kind of resolves the resizing in a more elegant way. The advantage of Walter's solution is that the grid keeps the reference to the lines (at least by names) so all the code is in the grid's parent class, and it can paint the lines many ways - or even use single pixel wide/tall images for various effects instead of lines, which is a tad harder to do with a container, as a background image in it wouldn't show on the borders. Maybe with two containers, both without borders, outer one having the image. Hmmm... if anyone here had time to play with that, we'd have some interesting solutions.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform