Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Sithu Kyaw
  Where is Sithu Kyaw?
 Yangon
 Myanmar
 Sithu Kyaw
 To: Stefan Wuebbe
  Where is Stefan Wuebbe?
 Hamburg
 Germany
 Stefan Wuebbe
 Tags
Subject: RE: Replace textbox with label in grid
Thread ID: 364968 Message ID: 365264 # Views: 31 # Ratings: 0
Version: Visual FoxPro 9 Category: Grids
Date: Sunday, December 23, 2012 1:57:35 PM         
   


>
> LOCAL oForm
> oForm = CREATEOBJECT("TestForm")
> oForm.Show(1)
> RETURN
> 
> DEFINE CLASS TestForm as Form
> 	AutoCenter = .T.
> 	DataSession = 2
> 	
> 	PROCEDURE Load
> 		CREATE CURSOR test (col1 I, col2 I)
> 		LOCAL i
> 		FOR i = 1 TO 10
> 			INSERT INTO test VALUES (i, i)
> 		ENDFOR
> 		GO TOP IN test
> 	ENDPROC
> 	
> 	ADD OBJECT Grid1 as Grid WITH ;
> 		Left = 5, Top = 5
> 	PROCEDURE Grid1.Init
> 		LOCAL loColumn as Column
> 		FOR EACH loColumn IN This.Columns
> 			BINDEVENT(m.loColumn.Text1, "Click", Thisform, "HandleClick") 
> 		NEXT
> 	ENDPROC
> 	
> 	PROCEDURE HandleClick
> 		LOCAL laEvents[1]
> 		AEVENTS(laEvents, 0)
> 		MESSAGEBOX(laEvents[1].Name)
> 	ENDPROC
> 	
> 	PROCEDURE Destroy
> 		UNBINDEVENTS(This)
> 	ENDPROC
> ENDDEFINE
> 


Hi Stefan,

If Column.Enabled = .F. or Column.Text1.Style = 1, the method "HandleClick" is not triggered.

----
Rgds/Sithu

ENTIRE THREAD

Replace textbox with label in grid Posted by Sithu Kyaw @ 12/20/2012 12:15:36 PM
RE: Replace textbox with label in grid Posted by Borislav Borissov @ 12/20/2012 12:24:31 PM
RE: Replace textbox with label in grid Posted by Sithu Kyaw @ 12/20/2012 12:37:10 PM
RE: Replace textbox with label in grid Posted by Stefan Wuebbe @ 12/20/2012 12:49:02 PM
RE: Replace textbox with label in grid Posted by Borislav Borissov @ 12/20/2012 1:17:27 PM
RE: Replace textbox with label in grid Posted by Jun Tangunan @ 12/20/2012 11:52:07 PM
RE: Replace textbox with label in grid Posted by Sithu Kyaw @ 12/21/2012 5:47:32 AM
RE: Replace textbox with label in grid Posted by Jun Tangunan @ 12/21/2012 6:28:27 AM
RE: Replace textbox with label in grid Posted by Rahul Moudgill @ 12/21/2012 6:02:07 AM
RE: Replace textbox with label in grid Posted by Sithu Kyaw @ 12/21/2012 6:19:44 AM
RE: Replace textbox with label in grid Posted by Rahul Moudgill @ 12/21/2012 5:06:34 PM
RE: Replace textbox with label in grid Posted by David Mustakim @ 12/21/2012 6:05:10 PM
RE: Replace textbox with label in grid Posted by Rahul Moudgill @ 12/21/2012 6:06:45 PM
RE: Replace textbox with label in grid Posted by Stefan Wuebbe @ 12/20/2012 12:41:52 PM
RE: Replace textbox with label in grid Posted by Sithu Kyaw @ 12/21/2012 5:45:08 AM
RE: Replace textbox with label in grid Posted by Stefan Wuebbe @ 12/21/2012 7:43:20 AM
RE: Replace textbox with label in grid Posted by Sithu Kyaw @ 12/21/2012 8:18:28 AM
RE: Replace textbox with label in grid Posted by Stefan Wuebbe @ 12/21/2012 9:26:16 AM
RE: Replace textbox with label in grid Posted by Sithu Kyaw @ 12/21/2012 9:42:20 AM
RE: Replace textbox with label in grid Posted by Sithu Kyaw @ 12/23/2012 1:57:35 PM
RE: Replace textbox with label in grid Posted by Stefan Wuebbe @ 12/24/2012 10:17:05 AM
RE: Replace textbox with label in grid Posted by Sithu Kyaw @ 12/24/2012 10:28:38 AM
RE: Replace textbox with label in grid Posted by David Mustakim @ 12/21/2012 6:09:02 PM
RE: Replace textbox with label in grid Posted by Rahul Moudgill @ 12/21/2012 5:38:08 PM
RE: Replace textbox with label in grid Posted by Sithu Kyaw @ 12/23/2012 2:26:42 PM
RE: Replace textbox with label in grid Posted by Rahul Moudgill @ 12/24/2012 6:39:46 AM
RE: Replace textbox with label in grid Posted by Sithu Kyaw @ 12/24/2012 6:47:36 AM
RE: Replace textbox with label in grid Posted by Rahul Moudgill @ 12/24/2012 6:52:57 AM
RE: Replace textbox with label in grid Posted by Sithu Kyaw @ 12/24/2012 5:50:11 AM
RE: Replace textbox with label in grid Posted by Rahul Moudgill @ 12/24/2012 6:49:12 AM
RE: Replace textbox with label in grid Posted by Sithu Kyaw @ 12/24/2012 6:53:17 AM
RE: Replace textbox with label in grid Posted by Rahul Moudgill @ 12/24/2012 6:58:19 AM
RE: Replace textbox with label in grid Posted by Sithu Kyaw @ 12/24/2012 9:32:18 AM
RE: Replace textbox with label in grid Posted by Rahul Moudgill @ 12/24/2012 11:49:15 AM
RE: Replace textbox with label in grid Posted by Rahul Moudgill @ 12/24/2012 7:00:04 AM
RE: Replace textbox with label in grid Posted by Sithu Kyaw @ 12/24/2012 7:07:41 AM
RE: Replace textbox with label in grid Posted by Rahul Moudgill @ 12/24/2012 7:33:26 AM
RE: Replace textbox with label in grid Posted by Sithu Kyaw @ 12/24/2012 7:43:54 AM
RE: Replace textbox with label in grid Posted by Cetin Basoz @ 12/24/2012 3:39:20 AM
RE: Replace textbox with label in grid Posted by Sithu Kyaw @ 12/24/2012 6:01:35 AM
RE: Replace textbox with label in grid Posted by Cetin Basoz @ 12/24/2012 8:46:35 AM