T
telliu
Unregistered / Unconfirmed
GUEST, unregistred user!
从form2中speedbutton按钮事件中发送字符串到form1的控件中的问题(在线等侍)(当然form1弹出form2也是用speedbutton按钮的,免得抢光标焦点去了,呵呵(还有最后一点点了,请高手指点一下就OK了)谢谢 (30分)<br />procedure TForm2.sendClick(Sender: TObject);
var
s:string;
sendpchar char;
//sendhand1 :THandle;
begin
s :=send.Caption;
sendpchar :=pchar(s);
form1.ActiveControl.SetTextBuf(sendpchar);
//sendhand1 :=form1.ActiveControl.Handle;
//sendmessage(sendhand1,wm_settext,length(s), longint(pchar(s)));
end;
问题是edit memo等可以正常接收,但是像stringgrid这些有cell单元的,应该如何写进去呢?
在线等侍中,谢谢
var
s:string;
sendpchar char;
//sendhand1 :THandle;
begin
s :=send.Caption;
sendpchar :=pchar(s);
form1.ActiveControl.SetTextBuf(sendpchar);
//sendhand1 :=form1.ActiveControl.Handle;
//sendmessage(sendhand1,wm_settext,length(s), longint(pchar(s)));
end;
问题是edit memo等可以正常接收,但是像stringgrid这些有cell单元的,应该如何写进去呢?
在线等侍中,谢谢