Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VFP 6 Scrollbar in grid disabled 1

Status
Not open for further replies.

eric43

Programmer
Apr 29, 2005
94
AU
I am allowing a change of width of a grid on a form via a button.

Code:
	PROCEDURE cmdStretch.Click

	IF extender = 0

		WITH _screen
			.width = 1600
		ENDWITH

		ooGsForm1.width = 1595
		ooGsForm1.grid1.width = 1585

		mywidth = ooGsForm1.grid1.Column7 .width
		ooGsForm1.grid1.Column7.width = 940

		thisform.grid1.setfocus()
		thisform.grid1.refresh()

		extender = 1

	ELSE

		WITH _screen
		.width = 795
		ENDWITH

		ooGsForm1.width = 785
		ooGsForm1.grid1.width = 780
		ooGsForm1.grid1.Column7.width = mywidth
		
		thisform.grid1.setfocus()
		thisform.grid1.refresh()
		thisform.grid1.columns(17).refresh()

		extender = 0

	ENDIF


The grid after the first button press lacks a horizontal scroll bar yet all columns are NOT displayed in the wider grid.

Any ideas?

Thanks

Eric
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top