僵 僵尸洪 Unregistered / Unconfirmed GUEST, unregistred user! 2002-09-13 #1 希望能用两个按钮对MEMO实现“翻上”“翻下”的功能 谢谢
H hamsoft Unregistered / Unconfirmed GUEST, unregistred user! 2002-09-14 #2 sendmessage(memo1.handle,wm_hscroll,sb_pageright,0);(后翻一页) sendmessage(memo1.handle,em_linescroll,0,-makelong(5,0));(下移5行) 参考!
sendmessage(memo1.handle,wm_hscroll,sb_pageright,0);(后翻一页) sendmessage(memo1.handle,em_linescroll,0,-makelong(5,0));(下移5行) 参考!
L linsb Unregistered / Unconfirmed GUEST, unregistred user! 2002-09-14 #3 //翻下一页 procedure TForm1.Button2Click(Sender: TObject); begin sendmessage(memo1.handle,WM_VSCROLL,SB_PAGEDOWN,0); end; //翻上一页 procedure TForm1.Button3Click(Sender: TObject); begin sendmessage(memo1.handle,WM_VSCROLL,SB_PAGEUP,0); end;
//翻下一页 procedure TForm1.Button2Click(Sender: TObject); begin sendmessage(memo1.handle,WM_VSCROLL,SB_PAGEDOWN,0); end; //翻上一页 procedure TForm1.Button3Click(Sender: TObject); begin sendmessage(memo1.handle,WM_VSCROLL,SB_PAGEUP,0); end;