FramesForm.pas
资源名称:delphi.rar [点击查看]
上传用户:fh681027
上传日期:2022-07-23
资源大小:1959k
文件大小:1k
源码类别:
Delphi控件源码
开发平台:
Delphi
- unit FramesForm;
- interface
- uses
- Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
- ListFrame, StdCtrls;
- type
- TFormFrames = class(TForm)
- FrameList1: TFrameList;
- FrameList2: TFrameList;
- btnLeft: TButton;
- btnRight: TButton;
- procedure FrameList2btnClearClick(Sender: TObject);
- procedure btnLeftClick(Sender: TObject);
- procedure btnRightClick(Sender: TObject);
- private
- { Private declarations }
- public
- { Public declarations }
- end;
- var
- FormFrames: TFormFrames;
- implementation
- {$R *.DFM}
- procedure TFormFrames.FrameList2btnClearClick(Sender: TObject);
- begin
- if MessageDlg ('OK to empty the list box?',
- mtConfirmation, [mbYes, mbNo], 0) = idYes then
- // execute standard frame code
- FrameList2.btnClearClick(Sender);
- end;
- procedure TFormFrames.btnLeftClick(Sender: TObject);
- begin
- FrameList1.ListBox.Items.AddStrings (
- FrameList2.ListBox.Items);
- end;
- procedure TFormFrames.btnRightClick(Sender: TObject);
- begin
- FrameList2.ListBox.Items.AddStrings (
- FrameList1.ListBox.Items);
- end;
- end.