Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with AllowCellSelection
Message
De
11/11/2003 04:29:11
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Problem with AllowCellSelection
Divers
Thread ID:
00848619
Message ID:
00848619
Vues:
70
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform