Is it internal error on VFP on firing between Column Moved Event and Header Click Event when someone move a column (say column1) to the 2nd column; then from 2nd column to 3rd column ?
Any Tips please.
Any Tips please.
Code:
DEFINE CLASS form1 AS form
Top = 13
Left = 4
Height = 250
Width = 482
DoCreate = .T.
Caption = "Form1"
Name = "Form1"
ADD OBJECT grid1 AS grid WITH ;
ColumnCount = 4, ;
Height = 157, ;
Left = 36, ;
Top = 72, ;
Width = 420, ;
Name = "Grid1", ;
Column1.Name = "Column1", ;
Column2.Name = "Column2", ;
Column3.Name = "Column3", ;
Column4.Name = "Column4"
ADD OBJECT form1.grid1.column1.header1 AS header WITH ;
Caption = "Header1", ;
Name = "Header1"
ADD OBJECT form1.grid1.column1.text1 AS textbox WITH ;
BorderStyle = 0, ;
Margin = 0, ;
ForeColor = RGB(0,0,0), ;
BackColor = RGB(255,255,255), ;
Name = "Text1"
ADD OBJECT form1.grid1.column2.header1 AS header WITH ;
Caption = "Header1", ;
Name = "Header1"
ADD OBJECT form1.grid1.column2.text1 AS textbox WITH ;
BorderStyle = 0, ;
Margin = 0, ;
ForeColor = RGB(0,0,0), ;
BackColor = RGB(255,255,255), ;
Name = "Text1"
ADD OBJECT form1.grid1.column3.header1 AS header WITH ;
Caption = "Header1", ;
Name = "Header1"
ADD OBJECT form1.grid1.column3.text1 AS textbox WITH ;
BorderStyle = 0, ;
Margin = 0, ;
ForeColor = RGB(0,0,0), ;
BackColor = RGB(255,255,255), ;
Name = "Text1"
ADD OBJECT form1.grid1.column4.header1 AS header WITH ;
Caption = "Header1", ;
Name = "Header1"
ADD OBJECT form1.grid1.column4.text1 AS textbox WITH ;
BorderStyle = 0, ;
Margin = 0, ;
ForeColor = RGB(0,0,0), ;
BackColor = RGB(255,255,255), ;
Name = "Text1"
ADD OBJECT label1 AS label WITH ;
WordWrap = .T., ;
Caption = "Try moving 1st Column then to 2nd Column then 3rd Column to see result", ;
Height = 36, ;
Left = 48, ;
Top = 12, ;
Width = 385, ;
Name = "Label1"
PROCEDURE Load
CREATE CURSOR cursorcopy (NAME c(10),Num c(10),Phone C(10),QTY c(10))
INSERT INTO cursorcopy (NAME,Num,Phone,Qty) VALUES ("Bill","00725","555 1212","125")
INSERT INTO cursorcopy (NAME,Num,Phone,Qty) VALUES ("Mikel","00728","555 1232","25")
INSERT INTO cursorcopy (NAME,Num,Phone,Qty) VALUES ("Jan","00729","555 5432","13")
INSERT INTO cursorcopy (NAME,Num,Phone,Qty) VALUES ("Rosa","00730","555 5555","177")
INSERT INTO cursorcopy (NAME,Num,Phone,Qty) VALUES ("John","00735","666 6666","250")
INSERT INTO cursorcopy (NAME,Num,Phone,Qty) VALUES ("Henry","00742","777 7777","60")
GO TOP
ENDPROC
PROCEDURE grid1.Column1.Moved
WAIT WINDOW "Column1.Moved"
ENDPROC
PROCEDURE grid1.Column2.Moved
WAIT WINDOW "Column2.Moved"
ENDPROC
PROCEDURE grid1.Column3.Moved
WAIT WINDOW "Column3.Moved"
ENDPROC
PROCEDURE grid1.Column4.Moved
WAIT WINDOW "Column4.Moved"
ENDPROC
PROCEDURE header1.Click
WAIT WINDOW "Column1.header1.click"
ENDPROC
PROCEDURE header1.Click
WAIT WINDOW "Column2.header1.click"
ENDPROC
PROCEDURE header1.Click
WAIT WINDOW "Column3.header1.click"
ENDPROC
PROCEDURE header1.Click
WAIT WINDOW "Column4.header1.click"
ENDPROC
ENDDEFINE