Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to set grid border color
Message
De
06/07/2008 07:51:35
 
 
À
06/07/2008 07:23:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01329210
Message ID:
01329211
Vues:
12
>Hi guys,
>
>Is it possible to programmatically set the grid control's border color?

Hi,

I believe you can't because there is no grid.BorderColor property by default.
You can use an additional Shape object though:
LOCAL oForm as Form
oForm = CREATEOBJECT('Form')

oForm.AddObject('Grid1','Grid')
WITH oForm.Grid1
	.Move(20,20)
	.Anchor = 15
	.Visible = .T.
ENDWITH

oForm.AddObject('Shape1','Shape')
WITH oForm.Grid1
	oForm.Shape1.Move(.Left-5,.Top-5,.Width+10,.Height+10)
ENDWITH
WITH oForm.Shape1
	.BorderWidth = 5
	.BorderColor = RGB(255,0,0)
	.ZOrder(1)
	.Anchor = 15
	.Visible= .T.
ENDWITH

oForm.Show(1)
hth
-Stefan
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform