Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to set grid border color
Message
From
06/07/2008 07:51:35
 
 
To
06/07/2008 07:23:43
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01329210
Message ID:
01329211
Views:
11
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform