| 
			
				|  | VFP ·R¥ÎªÌªÀ°Ï ¥»°Q½×°Ï¬° Visual Foxpro ·R¥ÎªÌ¸gÅç¥æ¬yªº¦a¤è, ½Ð¦h¦h§Q¥Î"·j´M"ªº¥\¯à, ¥ý¬d¬Ý¬Ý¦³µL«e¨Ò¥i´`, ¦pªGÁÙ¦³¤£À´ªº¦Aµo°Ý. ³¡¥÷¥DÃD¦³ªþ¥[ÀÉ®×, ¶·¥ýµù¥U¦¨¬°ªÀ°Ï©~¥Á¤~¥i¥H¤U¸ü.
 
 |  
 
	
		| ¤W¤@½g¥DÃD :: ¤U¤@½g¥DÃD |  
		| µoªí¤H | ¤º®e |  
		| perry 
 
 
 µù¥U®É¶¡: 2014-07-20
 ¤å³¹: 203
 
 
 ²Ä 16 ¼Ó
 
 | 
			
				|  µoªí©ó: ¬P´Á¤é ¤Q¤@¤ë 22, 2015 9:44 pm    ¤å³¹¥DÃD: |   |  
				| 
 |  
				| AfterRowColChange ¬O Grid ªº¤@Ó Event Init ¤]¬O Grid ªº¤@Ó Event
 
  	  | ¥N½X: |  	  | Define Class Grid1 As Grid
 Proc Init
 With This
 ...
 EndWith
 With This.Column1
 ...
 EndWith
 EndProc
 
 Proc AfterRowColChange
 nRecno=Recno()
 ....
 EndProc
 EndDefine
 
 | 
 |  |  
		| ¦^³»ºÝ |  |  
		|  |  
		| jtcom01 
 
 
 µù¥U®É¶¡: 2005-07-29
 ¤å³¹: 413
 
 
 ²Ä 17 ¼Ó
 
 | 
			
				|  µoªí©ó: ¬P´Á¤é ¤Q¤@¤ë 22, 2015 10:07 pm    ¤å³¹¥DÃD: |   |  
				| 
 |  
				| ÁÂÁÂ¥i¥H¤F.¯u¬O·PÁ¦A¤T. ©³¦â¥i¥H¤@¦¸¨âÓField²¾°Ê¶Ü?
 |  |  
		| ¦^³»ºÝ |  |  
		|  |  
		| perry 
 
 
 µù¥U®É¶¡: 2014-07-20
 ¤å³¹: 203
 
 
 ²Ä 18 ¼Ó
 
 | 
			
				|  µoªí©ó: ¬P´Á¤é ¤Q¤@¤ë 22, 2015 10:48 pm    ¤å³¹¥DÃD: |   |  
				| 
 |  
				| ½Ð¦b Container1 ¤¤³]©w 
  	  | ¥N½X: |  	  | Proc Text1.GotFocus
 This.BackColor=rgb(192,192,0)
 EndProc
 Proc Text1.LostFocus
 This.BackColor=rgb(255,255,255)
 EndProc
 Proc Text2.GotFocus
 This.BackColor=rgb(192,192,0)
 EndProc
 Proc Text2.LostFocus
 This.BackColor=rgb(255,255,255)
 EndProc
 
 | 
 |  |  
		| ¦^³»ºÝ |  |  
		|  |  
		| jtcom01 
 
 
 µù¥U®É¶¡: 2005-07-29
 ¤å³¹: 413
 
 
 ²Ä 19 ¼Ó
 
 | 
			
				|  µoªí©ó: ¬P´Á¤@ ¤Q¤@¤ë 23, 2015 11:44 am    ¤å³¹¥DÃD: |   |  
				| 
 |  
				| «D±`·PÁÂ¥ý¶iªº«ü¾É..§V¤O¤¤.. |  |  
		| ¦^³»ºÝ |  |  
		|  |  
		| perry 
 
 
 µù¥U®É¶¡: 2014-07-20
 ¤å³¹: 203
 
 
 ²Ä 20 ¼Ó
 
 | 
			
				|  µoªí©ó: ¬P´Á¤@ ¤Q¤@¤ë 23, 2015 3:00 pm    ¤å³¹¥DÃD: |   |  
				| 
 |  
				|  	  | ¥N½X: |  	  | Define Class Grid1 As Grid
 Proc Init
 With This
 ...
 EndWith
 With This.Column1
 ...
 EndWith
 EndProc
 
 Proc AfterRowColChange
 nRecno=Recno()
 ....
 This.SetFocus  &&¼W¥[³o¦æÂIÀ»Äæ¦ì®É,©³¦â¤~·|¥¿±`
 EndProc
 EndDefine
 
 | 
 Text GotFocus Event ¤¤ BackColor n©M Grid AfterRowColChange ¬Û¦P
 |  |  
		| ¦^³»ºÝ |  |  
		|  |  
		| jtcom01 
 
 
 µù¥U®É¶¡: 2005-07-29
 ¤å³¹: 413
 
 
 ²Ä 21 ¼Ó
 
 | 
			
				|  µoªí©ó: ¬P´Á¤G ¤Q¤@¤ë 24, 2015 5:19 pm    ¤å³¹¥DÃD: |   |  
				| 
 |  
				| AfterRowColChange¤ºkeyin this.nrecno=recno()
 This.Column1.DynamicBackColor='iif(This.nRecno=recn(),rgb(255,128,192),rgb(255,255,255))'
 this.setfocus
 ÁÙ¬O¤£¦æ
 |  |  
		| ¦^³»ºÝ |  |  
		|  |  
		| perry 
 
 
 µù¥U®É¶¡: 2014-07-20
 ¤å³¹: 203
 
 
 ²Ä 22 ¼Ó
 
 | 
			
				|  µoªí©ó: ¬P´Á¤G ¤Q¤@¤ë 24, 2015 7:14 pm    ¤å³¹¥DÃD: |   |  
				| 
 |  
				| ¯u¤£ª¾±z°ÝÃD¥X¦b¨º??? Ó¤H´ú¸Õ¥i¥H,«·s¾ã²z±z¸Õ¬Ý¬Ý!!
 
  	  | ¥N½X: |  	  | * Container ³¡¥÷
 define class Container1 As Container
 add object Text1 As TextBox With Visible=.f.
 add object Text2 As TextBox With Visible=.f.
 Proc Init
 With This
 .Visible=.F.
 .BackStyle=0
 .Text1.BackStyle=0
 .Text2.BackStyle=0
 EndWith
 EndProc
 
 Proc Text1.KeyPress
 Lpar nKeyCode, nShiftAltCtrl
 If nKeyCode=5
 Skip -1
 IF Bof()
 Go Top
 ENDI
 This.Parent.Parent.Parent.Refresh
 This.Parent.Parent.Parent.SetFocus
 This.Parent.Text2.SetFocus
 EndIf
 Endproc
 
 Proc Text2.KeyPress
 Lpar nKeyCode, nShiftAltCtrl
 If nKeyCode=24
 Skip
 IF Eof()
 Go Bottom
 ENDI
 This.Parent.Parent.Parent.Refresh
 This.Parent.Parent.Parent.SetFocus
 Keyb '{BackTab}'  &&¥i¦³¥iµL
 EndIf
 Endproc
 
 Proc Text1.GotFocus
 This.BackColor=rgb(255,128,192)
 EndProc
 
 Proc Text1.LostFocus
 This.BackColor=rgb(255,255,255)
 EndProc
 
 Proc Text2.GotFocus
 This.BackColor=rgb(255,128,192)
 EndProc
 
 Proc Text2.LostFocus
 This.BackColor=rgb(255,255,255)
 EndProc
 
 EndDefine
 
 | 
 
 
  	  | ¥N½X: |  	  | * Grid ³¡¥÷
 Proc AfterRowColChange
 Lpar nColIndex
 this.nRecno = RECNO()
 This.Column1.DynamicBackColor="IIF(This.nRecno==Recno(),Rgb(255,128,192),Rgb(255,255,255))"
 *this.SetFocus
 This.Refresh
 EndProc
 
 Proc Init
 With This
 .ColumnCount=1
 .RecordSource='dd'  &&¸ê®Æ®w§O¦W
 .RecordSourceType=1
 .RowHeight=50
 .Width=200
 .Height=300
 .AddProperty('nRecno',1)
 *.HighLightRow=.f.  &&µL¿é¤J¯S®ÄÃ䮨,¤~¤£·|¦³°¾²¾·Pı!!
 EndWith
 With This.Column1
 IF Vartype(This.Column1.Text1)='O'
 .RemoveObject('Text1')
 Endi
 If Vartype(This.Column1.Cont1)#'O'
 .Addobject('Cont1','Container1')
 Endi
 .Cont1.Height=This.RowHeight
 .Header1.Caption='´ú¸Õ'
 .Bound=.t.
 .Sparse=.f.
 .Cont1.Text1.top=0
 .Cont1.Text1.Height=This.RowHeight/2
 .Cont1.Text1.ControlSource='Field1'
 .Cont1.Text2.Top= .Cont1.Text1.Height+1
 .Cont1.Text2.Height= .Cont1.Text1.Height
 .Cont1.Text2.ControlSource='Field2'
 .Cont1.Visible=.t.
 .Cont1.Text1.Visible=.t.
 .Cont1.Text2.Visible=.t.
 .CurrentControl='Cont1'
 EndWith
 EndProc
 
 | 
 
 
  	  | ¥N½X: |  	  | * Form ³¡¥÷
 Proc Init
 This.Grid1.Refresh
 This.Grid1.SetFocus
 Keyb '{RightArrow}'
 Keyb '{LeftArrow}'  &&²Ä1¦¸·|³Q¤º©wªº Text1 ªÅ¥Õ»\¨ì©³¦â,«ö¤@¦¸Ä²µo�]©w
 EndProc
 
 | 
 Grid Ó¤H¶È·íÂsÄý¿ï¨ú¥Î,¥t«Ø¦U¿é¤Jª«¥ó@@,«Dª½±µ¥Î Grid ×§ï!!
 |  |  
		| ¦^³»ºÝ |  |  
		|  |  
		| jtcom01 
 
 
 µù¥U®É¶¡: 2005-07-29
 ¤å³¹: 413
 
 
 ²Ä 23 ¼Ó
 
 | 
			
				|  µoªí©ó: ¬P´Á¤G ¤Q¤@¤ë 24, 2015 8:33 pm    ¤å³¹¥DÃD: |   |  
				| 
 |  
				| ¤£¦n·N«ä..Åý§A¶Ë¯«¤F..«Ü·PÁ§A..§Ú±N§ó¥[§V¤O.. |  |  
		| ¦^³»ºÝ |  |  
		|  |  
		| jtcom01 
 
 
 µù¥U®É¶¡: 2005-07-29
 ¤å³¹: 413
 
 
 ²Ä 24 ¼Ó
 
 | 
			
				|  µoªí©ó: ¬P´Á¤G ¤Q¤@¤ë 24, 2015 10:15 pm    ¤å³¹¥DÃD: |   |  
				| 
 |  
				| µo²{..·í[¤U£¸µ§]«öÁädown¤UÀ£¤£©ñ®É.text1 text2¬Ò¬°¬õ¦â©³¦â,up©ñ¶}®É, «ü¼Ð¦btext1,¦¹®É.text1©³¦â¬°¥Õ¦â text2©³¦â¬°¬õ¦â
 |  |  
		| ¦^³»ºÝ |  |  
		|  |  
		| perry 
 
 
 µù¥U®É¶¡: 2014-07-20
 ¤å³¹: 203
 
 
 ²Ä 25 ¼Ó
 
 | 
			
				|  µoªí©ó: ¬P´Á¤G ¤Q¤@¤ë 24, 2015 10:33 pm    ¤å³¹¥DÃD: |   |  
				| 
 |  
				| ±q§Oªºª«¥ó¸õ¨ì Grid ·|²£¥ÍªÅ¥Õ@@,§ä¤£¨ì Event ±±¨î... Y±z¬O¥Î CommandButton ³]¤W¤Uµ§,
 ½Ð¦b Click Event ¤¤
 
  	  | ¥N½X: |  	  | Proc Click
 skip
 if eof()
 go bott
 endi
 thisform.grid1.setfocus
 thisform.grid1.refresh
 this.setfocus
 thisform.refresh
 Endproc
 
 | 
 Grid ªº TabStop ³] .F.
 Åý Grid ¥u¯à¥Î·Æ¹«ÂI¿ï.
 |  |  
		| ¦^³»ºÝ |  |  
		|  |  
		| jtcom01 
 
 
 µù¥U®É¶¡: 2005-07-29
 ¤å³¹: 413
 
 
 ²Ä 26 ¼Ó
 
 | 
			
				|  µoªí©ó: ¬P´Á¤T ¤Q¤@¤ë 25, 2015 1:03 pm    ¤å³¹¥DÃD: |   |  
				| 
 |  
				| ·PÁÂ¥ý¶i¤@¸ô¬Û®¼.. µo²{..
 (1)
 Proc Text1.LostFocus
 This.BackColor=rgb(255,255,255)
 EndProc
 
 Proc Text2.GotFocus
 This.BackColor=rgb(255,128,192)
 EndProc
 
 Proc Text2.LostFocus
 This.BackColor=rgb(255,255,255)
 EndProc
 ¤£¥[¶i¥h.¥\¯à¤]£¸¼Ë¥i¥H..
 (2)
 Proc Text1.KeyPress
 Lpar nKeyCode, nShiftAltCtrl
 If nKeyCode=5
 Skip -1
 IF Bof()
 Go Top
 ENDI
 This.Parent.Parent.Parent.Refresh
 This.Parent.Parent.Parent.SetFocus
 This.Parent.Text2.SetFocus
 EndIf
 Endproc
 
 Proc Text2.KeyPress
 Lpar nKeyCode, nShiftAltCtrl
 If nKeyCode=24
 Skip
 IF Eof()
 Go Bottom
 ENDI
 This.Parent.Parent.Parent.Refresh
 This.Parent.Parent.Parent.SetFocus
 Keyb '{BackTab}'  &&¥i¦³¥iµL
 EndIf
 Endproc
 ¥u¦³¤@ÓTEXT¦³©³¦â
 |  |  
		| ¦^³»ºÝ |  |  
		|  |  
		| perry 
 
 
 µù¥U®É¶¡: 2014-07-20
 ¤å³¹: 203
 
 
 ²Ä 27 ¼Ó
 
 | 
			
				|  µoªí©ó: ¬P´Á¤T ¤Q¤@¤ë 25, 2015 1:11 pm    ¤å³¹¥DÃD: |   |  
				| 
 |  
				| ... Proc Text2.GotFocus
 This.BackColor=rgb(255,128,192)
 EndProc
 ³o¨S¦³,·íµM¥u¦³²Ä1Ó¦³©³¦â.
 ------
 «Ü¦hªF¦è³£¥i¥H³o¼Ëª±
 
  	  | ¥N½X: |  	  | proc Cmd1.Click
 skip -1
 if bof()
 go top
 endi
 do testA with ThisForm,This,This.Grid1
 Endproc
 proc Cmd2.Click
 skip
 if eof()
 go bott
 endi
 do testA with ThisForm,This,This.Grid1
 Endproc
 
 | 
 
  	  | ¥N½X: |  	  | *testA.prg
 Lpar o_Form,o_This,o_Grid
 o_Grid.SetFocus
 o_Grid.Refresh
 o_This.SetFocus
 o_Form.Refresh
 
 | 
 
 perry ¦b ¬P´Á¤T ¤Q¤@¤ë 25, 2015 1:21 pm §@¤F²Ä 1 ¦¸×§ï
 |  |  
		| ¦^³»ºÝ |  |  
		|  |  
		| jtcom01 
 
 
 µù¥U®É¶¡: 2005-07-29
 ¤å³¹: 413
 
 
 ²Ä 28 ¼Ó
 
 | 
			
				|  µoªí©ó: ¬P´Á¤T ¤Q¤@¤ë 25, 2015 1:19 pm    ¤å³¹¥DÃD: |   |  
				| 
 |  
				| ¨S¥[Proc Text2.GotFocus This.BackColor=rgb(255,128,192)
 EndProc
 ¦bCommandButton ¤W¤Uµ§¥¿±`2ÓTEXT¬Ò¦³©³¦â,¦ý..
 Proc Text1.KeyPress
 Lpar nKeyCode, nShiftAltCtrl
 If nKeyCode=5
 Skip -1
 IF Bof()
 Go Top
 ENDI
 This.Parent.Parent.Parent.Refresh
 This.Parent.Parent.Parent.SetFocus
 This.Parent.Text2.SetFocus
 EndIf
 Endproc
 ´N ¥u¦³¤@ÓTEXT¦³©³¦â
 |  |  
		| ¦^³»ºÝ |  |  
		|  |  
		| perry 
 
 
 µù¥U®É¶¡: 2014-07-20
 ¤å³¹: 203
 
 
 ²Ä 29 ¼Ó
 
 | 
			
				|  µoªí©ó: ¬P´Á¤T ¤Q¤@¤ë 25, 2015 1:27 pm    ¤å³¹¥DÃD: |   |  
				| 
 |  
				| grid ¦³¦Û¤vªº²Õ¦Xª«¥ó,ì²z¤£¤Ó¤F¸Ñ= =''' §@¥Î¤¤ªº TextBox ©³¦â¬O¥Õªº
 |  |  
		| ¦^³»ºÝ |  |  
		|  |  
		| jtcom01 
 
 
 µù¥U®É¶¡: 2005-07-29
 ¤å³¹: 413
 
 
 ²Ä 30 ¼Ó
 
 | 
			
				|  µoªí©ó: ¬P´Á¤T ¤Q¤@¤ë 25, 2015 2:16 pm    ¤å³¹¥DÃD: |   |  
				| 
 |  
				| ÁÂÁÂ¥ý¶iªºµªÂÐ..§A´£¨Ñªº¸ê®Æ¤w¸g«Ü»ô¥þ¤F.«Ü·PÁ©p.¯¬ºÖ§A¦³Ó´r§Ö¤U¤È..¤Ñ¤Ñ¶}¤ß |  |  
		| ¦^³»ºÝ |  |  
		|  |  
		|  |  
  
  	| 
 
 | ±z µLªk ¦b³oÓª©±µoªí¤å³¹ ±z µLªk ¦b³oÓª©±¦^ÂФ峹
 ±z µLªk ¦b³oÓª©±½s¿è¤å³¹
 ±z µLªk ¦b³oÓª©±§R°£¤å³¹
 ±z µLªk ¦b³oÓª©±¶i¦æ§ë²¼
 ±z µLªk ¦b³oÓª©±ªþ¥[ÀÉ®×
 ±z µLªk ¦b³oÓª©±¤U¸üÀÉ®×
 
 |  
 Powered by phpBB © 2001, 2005 phpBB Group
 ¥¿Å餤¤å»y¨t¥Ñ phpbb-tw ºûÅ@»s§@
 |