ScrollF.pas
资源名称:delphi.rar [点击查看]
上传用户:fh681027
上传日期:2022-07-23
资源大小:1959k
文件大小:1k
源码类别:
Delphi控件源码
开发平台:
Delphi
- unit ScrollF;
- interface
- uses
- Windows, Classes, Graphics, Forms, Controls,
- StdCtrls, SysUtils, Messages, Statusf;
- type
- TForm1 = class(TForm)
- ListBox1: TListBox;
- ListBox2: TListBox;
- ListBox3: TListBox;
- ListBox4: TListBox;
- ListBox5: TListBox;
- ListBox6: TListBox;
- procedure FormResize(Sender: TObject);
- private
- { Private declarations }
- public
- procedure FormScroll (var ScrollData: TWMScroll); message wm_HScroll;
- end;
- var
- Form1: TForm1;
- implementation
- {$R *.DFM}
- procedure TForm1.FormResize(Sender: TObject);
- begin
- Status.Label3.Caption := IntToStr(ClientWidth);
- Status.Label4.Caption := IntToStr(HorzScrollBar.Position);
- end;
- procedure TForm1.FormScroll (var ScrollData: TWMScroll);
- begin
- inherited;
- Status.Label3.Caption := IntToStr(ClientWidth);
- Status.Label4.Caption := IntToStr(HorzScrollBar.Position);
- end;
- end.