主要功能都已添加上并测试可用。效果图:
[年
[年
取消
,攫
下划颜色(C):
_ 呈色
I字佑巨
I字佑
巨院I
"J俴软要里
"J
俴软要里
新
幼园
之.I
.,一.
OO
线叨
吓 中邓妞
I
字符栠戊):
大小 包):
令
令
C 孕 12
.?
区查找r酌l
区
查找
r
岔下一?t 查挟内容OO: I
岔下一?t
厂全字四E馆) 三方向
厂区分大小写(CJ I!r 向上 叨 G 向下 叨
取消 l
夕"
夕"仓尹
钰堕
源码:
unitUnit1Calculator;interface
uses
Windows,Messages,SysUtils,Variants,Classes,Graphics,Controls,Forms,Dialogs,Menus,StdCtrls,ComCtrls;
type
TForm1=class(TForm)ColorDialog1:TColorDialog;SaveDialog1:TSaveDialog;ColorDialog2:TColorDialog;MainMenu1:TMainMenu;N1:TMenuItem;
myNew:TMenuItem;mySave:TMenuItem;N3:TMenuItem;myPage:TMenuItem;myPrint:TMenuItem;myQuit:TMenuItem;myEdit:TMenuItem;myUndo:TMenuItem;N4:TMenuItem;myCut:TMenuItem;myCopy:TMenuItem;myPaste:TMenuItem;myDelete:TMenuItem;N6:TMenuItem;myFind:TMenuItem;
myReplace:TMenuItem;
myFormat:TMenuItem;myFont:TMenuItem;myView:TMenuItem;myStatus:TMenuItem;myHelp:TMenuItem;myHelpTopics:TMenuItem;N9:TMenuItem;
myAbout:TMenuItem;OpenDialog1:TOpenDialog;FontDialog1:TFontDialog;myOpen:TMenuItem;FindDialog1:TFindDialog;
ReplaceDialog1:TReplaceDialog;FontDialog2:TFontDialog;PageSetupDialog1:TPageSetupDialog;PrintDialog1:TPrintDialog;RichEdit1:TRichEdit;
proceduremyNewClick(Sender:TObject);procedureFormCreate(Sender:TObject);proceduremyOpenClick(Sender:TObject);proceduremySaveClick(Sender:TObject);proceduremyQuitClick(Sender:TObject);proceduremyUndoClick(Sender:TObject);proceduremyCutClick(Sender:TObject);proceduremyCopyClick(Sender:TObject);proceduremyPasteClick(Sender:TObject);proceduremyDeleteClick(Sender:TObject);proceduremyFindClick(Sender:TObject);proceduremyReplaceClick(Sender:TObject);proceduremyFontClick(Sender:TObject);proceduremyPageClick(Sender:TObject);proceduremyPrintClick(Sender:TObject);proceduremyAboutClick(Sender:TObject);proceduremyHelpTopicsClick(Sender:TObject);
procedureFormClose(Sender:TObject;varAction:TCloseActi