Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid Border Color
Message
De
02/10/2018 06:57:34
 
 
À
02/10/2018 05:18:45
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Database:
MS SQL Server
Divers
Thread ID:
01662372
Message ID:
01662431
Vues:
47
>>>>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.

And also Yousfi's container solution, like mine Shape solution both place a border around the grid and not on top, as required by Walter.
My solution makes use of the Anchor for resizin, Yousfi introduces a rezise procedure.
The effect is for both the same.
If you want t have a 3D effect than you have to make use of Walter's solution which has a lot more coding than Yousfi's which has more codin than the shape solution. Its must what you want.
Enclosed a magnified screen print of Yousfi's container solution
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform