Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BUG#6: Scrollbug with Invisible columns in grid
Message
From
19/02/2003 14:00:52
Walter Meester
HoogkarspelNetherlands
 
 
To
19/02/2003 13:56:52
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00754850
Message ID:
00755101
Views:
25
Jim,

Thanks for the workarround, this should do nicely...

Walter,
>DEFINE CLASS grd AS grid
>    columncount = 6
>    procedure init
>    	procedure init
>		FOR EACH oColumn IN this.Columns
>			* can bind props also
>			BindEvent(oColumn,'visible',this,'vischeck')
>		ENDFOR
>	endproc
>	
>	procedure visCheck
>		AEvents(aCol,0) && populate array w/ eventsource
>		with aCol[1]  	&& first element is eventsource obj
>			if .&aCol[2]. && 2nd element is bound PEM
>				.tag =  Transform(.Width)
>				.Width = 0
>			else
>				.Width = Val(.tag)
>			endif
>			this.scrollbars = this.scrollbars
>		endwith 	
>	endproc
>ENDDEFINE
>
Previous
Reply
Map
View

Click here to load this message in the networking platform