W wengmxj Unregistered / Unconfirmed GUEST, unregistred user! 2002-09-11 #1 1、按下回车键让stringgrid1的焦点落到下一单元格中,怎样写程序? 2、怎样让焦点移到指定的单元格如stringgrid1.cells[3,3]?
S smallbs Unregistered / Unconfirmed GUEST, unregistred user! 2002-09-11 #3 http://www.delphibbs.com/delphibbs/dispq.asp?lid=1306876
T twos Unregistered / Unconfirmed GUEST, unregistred user! 2002-09-11 #4 1、在OnKeyPress事件处理函数中: if key=#13 then begin postmessage(stringgrid1.handle,wm_keydown,vk_tab,0); postmessage(stringgrid1.handle,wm_keyup,vk_tab,0) end 2、with stringgrid1 do begin col:=3; row:=3 end
1、在OnKeyPress事件处理函数中: if key=#13 then begin postmessage(stringgrid1.handle,wm_keydown,vk_tab,0); postmessage(stringgrid1.handle,wm_keyup,vk_tab,0) end 2、with stringgrid1 do begin col:=3; row:=3 end