Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I stop users from sizing columns in a grid?
Message
From
21/10/2000 01:58:50
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00432415
Message ID:
00432436
Views:
24
Place an object on the headers:
CREATE TABLE DATA (field1 c(5), field2 c(5))
FOR i = 1 TO 20
	APPEND BLANK
	REPLACE field1 WITH [Hello]
	REPLACE field2 WITH [World]
ENDFOR
GO TOP

PUBLIC oForm1
oForm1 = CREAT([oForm])
oForm1.AUTOCENTER = .T.
oForm1.SHOW

DEFINE CLASS oForm AS FORM
	ADD OBJECT oGrid1 AS oGrid
	ADD OBJECT oNoSizing1 AS oNoColumnResize WITH ;
		LEFT = 25
ENDDEFINE

DEFINE CLASS oGrid AS GRID
	TOP = 20
	LEFT = 25
ENDDEFINE

DEFINE CLASS oNoColumnResize AS SHAPE
	BACKSTYLE = 0
	WIDTH = 303
	HEIGHT = 20
	TOP = 20
ENDDEFINE
Dave

>I would like to stop users from sizing the columns in a grid. I know I can prevent row and header sizing. Is this possible?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform