Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with AllowCellSelection
Message
From
11/11/2003 04:29:11
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Problem with AllowCellSelection
Miscellaneous
Thread ID:
00848619
Message ID:
00848619
Views:
69
Hi,

From help doc:

"The AllowCellSelection property supports all standard Visual FoxPro controls; however, ActiveX controls embedded within a column are not supported."

But if SomeColumn.CurrentControl.BaseClass=”Container”, and you click on cell, you go into
the container and you can use it’s controls.

Repro:
PUBLIC oform1

oform1=NEWOBJECT("form1")
oform1.Show
RETURN

DEFINE CLASS form1 AS form

	Caption = "Form1"
	Name = "FORM1"

	ADD OBJECT grid1 AS grid WITH ;
		ColumnCount = 1, ;
		Left = 20, ;
		RowHeight = 23, ;
		Top = 15, ;
		AllowCellSelection = .F., ;
		Column1.Width = 135

	PROCEDURE grid1.Init
		STORE this.AddObject('col2','columnCont') TO this.col2.Visible
	ENDPROC
	
	PROCEDURE Load
		CREATE CURSOR test ( f1 I DEFAULT RECNO(), f2 c(20) DEFAULT STR(RECNO()))
		FOR J=1 TO 100
		 APPEND BLANK 
		ENDFOR
		GO TOP
	ENDPROC


ENDDEFINE

DEFINE CLASS columnCont AS Column
	Width = 109
	Sparse = .F.

	ADD OBJECT container1 AS contControl

ENDDEFINE

DEFINE CLASS contControl AS Container
	ADD OBJECT text1 AS textbox WITH ControlSource = "TEST.F2"
ENDDEFINE
For VFPT:
I think, this behavior is caused from the other BIG bug on the container:
"Within a Grid, Container.GotFocus event is not fired, and VFP internal code not cut program sequence for cell control gotfocus. If this is true, when you fix GotFocus problem, also AllowCellSelection is fixed without job". WITH THIS ( GotFocus ) BUG A CONTAINER IN UNUSABLE ON A GRID, FIXED IT PLEASE.

Fabio
Next
Reply
Map
View

Click here to load this message in the networking platform