Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BUG: HeaderHeight = 0 hide the top grid border
Message
From
05/10/2005 02:57:16
 
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro Beta
Title:
BUG: HeaderHeight = 0 hide the top grid border
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01056138
Message ID:
01056138
Views:
225
It is often useful to hide the grid header with HeaderHeight = 0
The first horizontal black line belongs to the header,
VFP draw it over the upper grid border line
Horrible by to see.
PUBLIC oform1

oform1=NEWOBJECT("form1")
oform1.Show
ACTIVATE SCREEN
? "grid top",OBJTOCLIENT(oform1.grid1,1)
? "header top",OBJTOCLIENT(oform1.grid1.Column1.Header1,1)

RETURN

DEFINE CLASS form1 AS form
	
	autocenter = .T.
	Caption = "Form1"
	BackColor = RGB(255,255,128)
	Name = "Form1"


	ADD OBJECT grid1 AS grid WITH ;
		ColumnCount = 2, ;
		GridLineColor = 255, ;
		HeaderHeight = 0, ;
		Left = 24, ;
		Top = 26

ENDDEFINE
Reply
Map
View

Click here to load this message in the networking platform