Delphi MEMO 循环往上往下滚动

2021-03-13 03:27

阅读:566

标签:span   neu   循环   handle   orm   ESS   bsp   ble   down   

// 循环往上滚动
  if Memo1.Perform(EM_SCROLL,SB_LINEDOWN,0)=0 then
  begin
  Memo1.Perform(WM_VSCROLL,SB_TOP,0);
  end
  else
  begin
  SendMessage(Memo1.Handle,WM_VSCROLL,SB_LINEDOWN,0);
  end;

// 执行到底 SendMessage(Memo1.Handle, EM_SCROLL, SB_BOTTOM, 0);
//一步一步往下走 SendMessage(Memo1.Handle,WM_VSCROLL,SB_LINEDOWN,0);
// 往下走 SendMessage(Memo1.Handle,EM_SCROLL,SB_PAGEDOWN,0);
if Memo1.Perform(EM_SCROLL, SB_LINEDOWN, 0)=0 then//下滚
button2.Enable := False;
if Memo1.Perform(EM_SCROLL, SB_LINEUP, 0)=0 then//上滚
button1.Enable := False;

 

Delphi MEMO 循环往上往下滚动

标签:span   neu   循环   handle   orm   ESS   bsp   ble   down   

原文地址:https://www.cnblogs.com/windson/p/12569348.html


评论


亲,登录后才可以留言!