Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid row selected
Message
 
 
To
12/08/2002 08:23:30
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00687200
Message ID:
00688557
Views:
31
>I figured adding my own class to the grid was my only option for double clicking on a grid.
>Highlighting an entire row and improving the functionality of double clicking would be nice enhancements to the grid control.
>Thanks for your help!

I believe the first one is implemented in VFP8. But we don't know, when it would be releazed...

Check out FAQ section here for FAQ by Mike Helland about adding controls to Grid in run-time. Or you can do it in design-time, here is builder, I use:
********************************************************************
*  Description.......: GridBuilder - allows to build a grid in design-time
*  Calling Samples...:
*  Parameter List....:
*  Created by........: Cetin Basoz
*  Modified by.......: Nadya Nosonovsky 10/25/2001 04:14:31 PM
********************************************************************
*custom builder not registered
aselobj(arrObj)
for each oObj in arrObj
	if upper(oObj.baseclass)='GRID'
		for each oColumn in oObj.columns
			with oColumn
*			    .name = "col"+proper(justext(.controlsource))
				.Header1.fontbold = .t.
				.Header1.alignment = 2
				.Header1.caption = proper(justext(.controlsource))
				
				if type(.controlsource)<>"L"
					if type('oColumn.text1')="O" and lower(.text1.baseclass)='textbox'
						.removeobject('text1')
					*	.newobject('text1','EditInGrid','nAdditions.vcx')
						.newobject('text1','InGrid','wgcontrols.vcx')
					endif
				else && Logical field
					if type('oColumn.text1')="O" and lower(.text1.baseclass)='textbox'
						.removeobject('text1')
						.newobject('check1','checkbox')
						.check1.caption = ''
						.sparse = .f.						
					endif
				endif				
			endwith
		next
	endif
next
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform