SDIMAIN.~PAS
资源名称:xiaobai.rar [点击查看]
上传用户:autowell
上传日期:2022-06-21
资源大小:16754k
文件大小:2k
源码类别:
Delphi控件源码
开发平台:
Delphi
- unit SDIMAIN;
- interface
- uses Windows, Classes, Graphics, Forms, Controls, Menus,
- Dialogs, StdCtrls, Buttons, ExtCtrls, ComCtrls, ImgList, StdActns,
- ActnList, ToolWin;
- type
- TSDIAppForm = class(TForm)
- OpenDialog: TOpenDialog;
- SaveDialog: TSaveDialog;
- ToolBar1: TToolBar;
- ToolButton9: TToolButton;
- ToolButton1: TToolButton;
- ToolButton2: TToolButton;
- ToolButton3: TToolButton;
- ToolButton4: TToolButton;
- ToolButton5: TToolButton;
- ToolButton6: TToolButton;
- ActionList1: TActionList;
- FileNew1: TAction;
- FileOpen1: TAction;
- FileSave1: TAction;
- FileSaveAs1: TAction;
- FileExit1: TAction;
- EditCut1: TEditCut;
- EditCopy1: TEditCopy;
- EditPaste1: TEditPaste;
- HelpAbout1: TAction;
- StatusBar: TStatusBar;
- ImageList1: TImageList;
- MainMenu1: TMainMenu;
- File1: TMenuItem;
- FileNewItem: TMenuItem;
- FileOpenItem: TMenuItem;
- FileSaveItem: TMenuItem;
- FileSaveAsItem: TMenuItem;
- N1: TMenuItem;
- FileExitItem: TMenuItem;
- Edit1: TMenuItem;
- CutItem: TMenuItem;
- CopyItem: TMenuItem;
- PasteItem: TMenuItem;
- Help1: TMenuItem;
- HelpAboutItem: TMenuItem;
- procedure FileNew1Execute(Sender: TObject);
- procedure FileOpen1Execute(Sender: TObject);
- procedure FileSave1Execute(Sender: TObject);
- procedure FileExit1Execute(Sender: TObject);
- procedure HelpAbout1Execute(Sender: TObject);
- private
- { Private declarations }
- public
- { Public declarations }
- end;
- var
- SDIAppForm: TSDIAppForm;
- implementation
- uses about;
- {$R *.dfm}
- procedure TSDIAppForm.FileNew1Execute(Sender: TObject);
- begin
- { Do nothing }
- end;
- procedure TSDIAppForm.FileOpen1Execute(Sender: TObject);
- begin
- OpenDialog.Execute;
- end;
- procedure TSDIAppForm.FileSave1Execute(Sender: TObject);
- begin
- SaveDialog.Execute;
- end;
- procedure TSDIAppForm.FileExit1Execute(Sender: TObject);
- begin
- Close;
- end;
- procedure TSDIAppForm.HelpAbout1Execute(Sender: TObject);
- begin
- AboutBox.ShowModal;
- end;
- end.