谁有怎样建立包含控件如button的类,以及怎样使用该类的例子.有的话请进! to:thedream(梦幻使者) 是的,有吗? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 to :torble(阿裕你发过来了吗,我怎么每有收到呀 //这里是给MEMO加个onscrollup/down事件unit VickiMemo;interfaceuses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms,stdctrls, ExtCtrls,dialogs;type TVickiMemo = class(TMemo) private FOnScrollUp: TNotifyEvent; FOnScrollDown:TNotifyEvent; procedure CMOnScrollUp(var Message: TWMVScroll); message WM_VScroll; protected public published property OnScrollUp: TNotifyEvent read FOnScrollUp write FOnScrollUp; property OnScrollDown: TNotifyEvent read FOnScrollDown write FOnScrollDown; end;procedure Register;implementationprocedure Register;begin RegisterComponents('Samples', [TVickiMemo]);end;procedure TVickiMemo.CMOnScrollUp(var Message: TWMVScroll);begin inherited; case message.ScrollCode ofSB_LINEUP: if Assigned(FOnScrollDown) then FOnScrollDown(Self);SB_LINEDOWN: if Assigned(FOnScrollUp) then FOnScrollUp(Self); end;end;end. 求助:求在放大图上进行画图操作的思路 大家帮忙好急................ 我晕了,MRP算法问题 如何在主进程内向线程发消息,线程里又如何接收??? 基础问题,进者有分,帮顶也有分 有谁对spooling技术或者共享打印机技术比较了解的,请指点小弟一下!100分在线等待!!! "网络蚂蚁"和"FlashGet"的悬浮窗口实现中的问题 string如何转pchar型 怎样用代码 清除文本文件的内容呢?用什么函数? 怎样把字符串变量值放入记事本中? 请问DELPHI反编译程序在哪下载? 如何使WebBrowser1的菜单不要弹出来?
你发过来了吗,我怎么每有收到呀
unit VickiMemo;interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms,stdctrls,
ExtCtrls,dialogs;
type
TVickiMemo = class(TMemo)
private
FOnScrollUp: TNotifyEvent;
FOnScrollDown:TNotifyEvent;
procedure CMOnScrollUp(var Message: TWMVScroll);
message WM_VScroll;
protected
public
published
property OnScrollUp: TNotifyEvent read FOnScrollUp write FOnScrollUp;
property OnScrollDown: TNotifyEvent read FOnScrollDown write FOnScrollDown;
end;
procedure Register;
implementationprocedure Register;
begin
RegisterComponents('Samples', [TVickiMemo]);
end;procedure TVickiMemo.CMOnScrollUp(var Message: TWMVScroll);
begin
inherited;
case message.ScrollCode of
SB_LINEUP: if Assigned(FOnScrollDown) then FOnScrollDown(Self);
SB_LINEDOWN:
if Assigned(FOnScrollUp) then FOnScrollUp(Self);
end;
end;end.