uHtmlEditForm.pas
上传用户:yjb1804
上传日期:2021-01-30
资源大小:3105k
文件大小:19k
- unit uHtmlEditForm;
- interface
- uses
- Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
- Dialogs, ComCtrls, ToolWin,
- OleCtrls, SHDocVw, ImgList, ActnList, uHtmlEdit,
- ExtCtrls, Menus, StdCtrls, jpeg, ExtDlgs, Spin, ActnMan, ActnCtrls,
- ActnMenus, XPStyleActnCtrls;
- type
- THtmlEditForm = class(TForm)
- ActionListButton: TActionList;
- Act_New: TAction;
- Act_Open: TAction;
- Act_Save: TAction;
- dlgColor1: TColorDialog;
- dlgOpen: TOpenDialog;
- dlgSave: TSaveDialog;
- N1: TMenuItem;
- pmHtmlEdit: TPopupMenu;
- LargeImages: TImageList;
- SmallImages: TImageList;
- dlgOpenPic: TOpenPictureDialog;
- Act_SaveAs: TAction;
- Act_SaveTo: TAction;
- Act_Clear: TAction;
- Act_Redo: TAction;
- Act_Undo: TAction;
- Act_SelectAll: TAction;
- Act_Print: TAction;
- Act_PageSetup: TAction;
- Act_PrintPreview: TAction;
- Act_Write: TAction;
- Act_Copy: TAction;
- Act_Cut: TAction;
- Act_Paste: TAction;
- Act_Insert: TAction;
- Act_Append: TAction;
- Act_ViewSource: TAction;
- Act_ViewText: TAction;
- Act_Edit_BackColoer: TAction;
- Act_Edit_Bold: TAction;
- Act_Edit_CreateLink: TAction;
- Act_Edit_ForeColor: TAction;
- Act_Edit_HorizontalRule: TAction;
- Act_Edit_InsertImage: TAction;
- Act_Edit_InsertLineBreak: TAction;
- Act_Edit_InsertOrderedlist: TAction;
- Act_Edit_InsertTable: TAction;
- Act_Edit_InsertUnOrderedList: TAction;
- Act_Edit_JustifyCenter: TAction;
- Act_Edit_JustifyFull: TAction;
- Act_Edit_JustifyLeft: TAction;
- Act_Edit_JustifyRight: TAction;
- Act_Edit_Italic: TAction;
- Act_Edit_RemoveFormat: TAction;
- Act_Edit_ScrollToBottom: TAction;
- Act_Edit_ScrollToTop: TAction;
- Act_Edit_OutDent: TAction;
- Act_Edit_InDent: TAction;
- Act_Edit_SuperScript: TAction;
- Act_Edit_SubScript: TAction;
- Act_Edit_UnderLine: TAction;
- Act_Edit_StrikeThrough: TAction;
- pgc2: TPageControl;
- ts4: TTabSheet;
- ts5: TTabSheet;
- HtmlEditRecv: THtmlEdit;
- HtmlEdit: THtmlEdit;
- CoolBar1: TCoolBar;
- ActMainMenu: TActionMainMenuBar;
- btnSend: TButton;
- mmo1: TMemo;
- grpEdit: TGroupBox;
- lblTable: TLabel;
- Label1: TLabel;
- lbl1: TLabel;
- btn2: TButton;
- btn3: TButton;
- btn5: TButton;
- btn6: TButton;
- btn1: TButton;
- Button2: TButton;
- btn7: TButton;
- btn9: TButton;
- btn10: TButton;
- btn11: TButton;
- btn12: TButton;
- btn13: TButton;
- btn14: TButton;
- btn16: TButton;
- btn18: TButton;
- btn19: TButton;
- btn20: TButton;
- btn21: TButton;
- btn22: TButton;
- btn23: TButton;
- btn25: TButton;
- btn29: TButton;
- btn30: TButton;
- btn33: TButton;
- cbbFontName: TComboBox;
- edt2: TEdit;
- edt3: TEdit;
- sedtFontSize: TSpinEdit;
- grpFile: TGroupBox;
- btn36: TButton;
- btnPaste: TButton;
- btn38: TButton;
- btnCut: TButton;
- btnCopy: TButton;
- btn31: TButton;
- chkReadOnly: TCheckBox;
- btnPrintPageSetup: TButton;
- btn15: TButton;
- btn17: TButton;
- btn24: TButton;
- btnSaveAs: TButton;
- btn26: TButton;
- btnSelectAll: TButton;
- btn40: TButton;
- btnViewSource: TButton;
- btnViewText: TButton;
- btnWrite: TButton;
- btnExec: TButton;
- edt1: TEdit;
- btn28: TButton;
- btnInsert: TButton;
- btnAppend: TButton;
- pnlToolsBar: TPanel;
- CoolBar: TCoolBar;
- PageScroller1: TPageScroller;
- ToolBar: TToolBar;
- tbsNew: TToolButton;
- tbsOpen: TToolButton;
- tbsSave: TToolButton;
- PageScroller2: TPageScroller;
- cbFontName: TComboBox;
- cbFontSize: TComboBox;
- PageScroller3: TPageScroller;
- ToolBar2: TToolBar;
- tbsBold: TToolButton;
- tbsItalic: TToolButton;
- tbsUnderLine: TToolButton;
- tbsStrikeThrough: TToolButton;
- PageScroller4: TPageScroller;
- ToolBar3: TToolBar;
- tbsPrint: TToolButton;
- tbsPrintPreview: TToolButton;
- PageScroller5: TPageScroller;
- ToolBar1: TToolBar;
- tbsCut: TToolButton;
- tbsCopy: TToolButton;
- tbsPaste: TToolButton;
- tbsClear: TToolButton;
- PageScroller6: TPageScroller;
- ToolBar4: TToolBar;
- tbsForeColor: TToolButton;
- tbsBackColoer: TToolButton;
- PageScroller7: TPageScroller;
- ToolBar5: TToolBar;
- tbsUndo: TToolButton;
- tbsRedo: TToolButton;
- PageScroller8: TPageScroller;
- ToolBar6: TToolBar;
- tbsSuperScript: TToolButton;
- tbsSubScript: TToolButton;
- tbsInsertOrderedlist: TToolButton;
- tbsInDent: TToolButton;
- tbsOutDent: TToolButton;
- PageScroller9: TPageScroller;
- ToolBar7: TToolBar;
- tbsCreateLink: TToolButton;
- tbsInsertTable: TToolButton;
- PageScroller10: TPageScroller;
- ToolBar8: TToolBar;
- tbsSelectAll: TToolButton;
- PageScroller12: TPageScroller;
- ToolBar10: TToolBar;
- tbsJustifyFull: TToolButton;
- tbsJustifyLeft: TToolButton;
- tbsJustifyCenter: TToolButton;
- tbsJustifyRight: TToolButton;
- ActionManager: TActionManager;
- Act_Exit: TAction;
- Act_Help: TAction;
- Act_About: TAction;
- tbsInsertImage: TToolButton;
- Act_M_ExampleWindow: TAction;
- Act_M_ExampleButton: TAction;
- procedure Act_BackColorExecute(Sender: TObject);
- procedure Act_BoldExecute(Sender: TObject);
- procedure Act_ExitExecute(Sender: TObject);
- procedure Act_FontNameExecute(Sender: TObject);
- procedure Act_FontSizeExecute(Sender: TObject);
- procedure Act_IndentExecute(Sender: TObject);
- procedure Act_InsertImageExecute(Sender: TObject);
- procedure Act_InsertOrderedListExecute(Sender: TObject);
- procedure Act_ItalicExecute(Sender: TObject);
- procedure Act_JustifyCenterExecute(Sender: TObject);
- procedure Act_JustifyFullExecute(Sender: TObject);
- procedure Act_JustifyLeftExecute(Sender: TObject);
- procedure Act_JustifyRightExecute(Sender: TObject);
- procedure Act_NewExecute(Sender: TObject);
- procedure Act_OpenExecute(Sender: TObject);
- procedure Act_OutdentExecute(Sender: TObject);
- procedure Act_PasteExecute(Sender: TObject);
- procedure Act_PrintExecute(Sender: TObject);
- procedure Act_PrintPreviewExecute(Sender: TObject);
- procedure Act_RedoExecute(Sender: TObject);
- procedure Act_RemoveformatExecute(Sender: TObject);
- procedure Act_SaveExecute(Sender: TObject);
- procedure Act_SelectAllExecute(Sender: TObject);
- procedure Act_UnderlineExecute(Sender: TObject);
- procedure Act_UndoExecute(Sender: TObject);
- procedure FormCreate(Sender: TObject);
- procedure cbbFontNameKeyPress(Sender: TObject; var Key: Char);
- procedure btnExecClick(Sender: TObject);
- procedure chkReadOnlyClick(Sender: TObject);
- procedure btnSendClick(Sender: TObject);
- procedure cbbFontNameChange(Sender: TObject);
- procedure sedtFontSizeChange(Sender: TObject);
- procedure Act_SaveAsExecute(Sender: TObject);
- procedure Act_SaveToExecute(Sender: TObject);
- procedure Act_PageSetupExecute(Sender: TObject);
- procedure Act_ClearExecute(Sender: TObject);
- procedure Act_WriteExecute(Sender: TObject);
- procedure Act_CopyExecute(Sender: TObject);
- procedure Act_CutExecute(Sender: TObject);
- procedure Act_InsertExecute(Sender: TObject);
- procedure Act_AppendExecute(Sender: TObject);
- procedure Act_ViewSourceExecute(Sender: TObject);
- procedure Act_ViewTextExecute(Sender: TObject);
- procedure Act_Edit_BackColoerExecute(Sender: TObject);
- procedure Act_Edit_BoldExecute(Sender: TObject);
- procedure Act_Edit_CreateLinkExecute(Sender: TObject);
- procedure Act_Edit_HorizontalRuleExecute(Sender: TObject);
- procedure Act_Edit_ForeColorExecute(Sender: TObject);
- procedure Act_Edit_InsertImageExecute(Sender: TObject);
- procedure Act_Edit_InsertLineBreakExecute(Sender: TObject);
- procedure Act_Edit_InsertOrderedlistExecute(Sender: TObject);
- procedure Act_Edit_InsertTableExecute(Sender: TObject);
- procedure Act_Edit_InsertUnOrderedListExecute(Sender: TObject);
- procedure Act_Edit_JustifyCenterExecute(Sender: TObject);
- procedure Act_Edit_JustifyFullExecute(Sender: TObject);
- procedure Act_Edit_JustifyLeftExecute(Sender: TObject);
- procedure Act_Edit_JustifyRightExecute(Sender: TObject);
- procedure Act_Edit_ItalicExecute(Sender: TObject);
- procedure Act_Edit_RemoveFormatExecute(Sender: TObject);
- procedure Act_Edit_ScrollToBottomExecute(Sender: TObject);
- procedure Act_Edit_ScrollToTopExecute(Sender: TObject);
- procedure Act_Edit_OutDentExecute(Sender: TObject);
- procedure Act_Edit_InDentExecute(Sender: TObject);
- procedure Act_Edit_SuperScriptExecute(Sender: TObject);
- procedure Act_Edit_SubScriptExecute(Sender: TObject);
- procedure Act_Edit_UnderLineExecute(Sender: TObject);
- procedure Act_Edit_StrikeThroughExecute(Sender: TObject);
- procedure Act_M_ExampleWindowExecute(Sender: TObject);
- procedure Act_M_ExampleButtonExecute(Sender: TObject);
- end;
- var
- HtmlEditForm: THtmlEditForm;
- implementation
- uses uMD5, MSHTML;
- {$R *.dfm}
- {
- ******************************** THtmlEditForm *********************************
- }
- procedure THtmlEditForm.Act_BackColorExecute(Sender: TObject);
- begin
- // if dlgColor1.Execute then
- // HtmlEdit.Command.BackColor(dlgColor1.Color);
- end;
- procedure THtmlEditForm.Act_BoldExecute(Sender: TObject);
- begin
- HtmlEdit.Edit.Bold;
- end;
- procedure THtmlEditForm.Act_ExitExecute(Sender: TObject);
- begin
- Close;
- end;
- procedure THtmlEditForm.Act_FontNameExecute(Sender: TObject);
- begin
- if cbFontName.Text <> '' then
- HtmlEdit.Edit.FontName(cbFontName.Text);
- end;
- procedure THtmlEditForm.Act_FontSizeExecute(Sender: TObject);
- begin
- HtmlEdit.Edit.FontSize(cbFontSize.ItemIndex + 1);
- end;
- procedure THtmlEditForm.Act_IndentExecute(Sender: TObject);
- begin
- HtmlEdit.Edit.Indent;
- end;
- procedure THtmlEditForm.Act_InsertImageExecute(Sender: TObject);
- begin
- if dlgOpenPic.Execute then
- HtmlEdit.Edit.InsertImage(dlgOpenPic.FileName);
- end;
- procedure THtmlEditForm.Act_InsertOrderedListExecute(Sender: TObject);
- begin
- HtmlEdit.Edit.InsertOrderedList;
- end;
- procedure THtmlEditForm.Act_ItalicExecute(Sender: TObject);
- begin
- HtmlEdit.Edit.Italic;
- end;
- procedure THtmlEditForm.Act_JustifyCenterExecute(Sender: TObject);
- begin
- HtmlEdit.Edit.JustifyCenter;
- end;
- procedure THtmlEditForm.Act_JustifyFullExecute(Sender: TObject);
- begin
- HtmlEdit.Edit.JustifyFull;
- end;
- procedure THtmlEditForm.Act_JustifyLeftExecute(Sender: TObject);
- begin
- HtmlEdit.Edit.JustifyLeft;
- end;
- procedure THtmlEditForm.Act_JustifyRightExecute(Sender: TObject);
- begin
- HtmlEdit.Edit.JustifyRight;
- end;
- procedure THtmlEditForm.Act_NewExecute(Sender: TObject);
- begin
- HtmlEdit.New;
- end;
- procedure THtmlEditForm.Act_OpenExecute(Sender: TObject);
- begin
- if dlgOpen.Execute then
- HtmlEdit.Open(dlgOpen.FileName);
- end;
- procedure THtmlEditForm.Act_OutdentExecute(Sender: TObject);
- begin
- HtmlEdit.Edit.Outdent;
- end;
- procedure THtmlEditForm.Act_PasteExecute(Sender: TObject);
- begin
- HtmlEdit.Paste;
- end;
- procedure THtmlEditForm.Act_PrintExecute(Sender: TObject);
- begin
- HtmlEdit.Print;
- end;
- procedure THtmlEditForm.Act_PrintPreviewExecute(Sender: TObject);
- begin
- HtmlEdit.PrintPreview;
- end;
- procedure THtmlEditForm.Act_RedoExecute(Sender: TObject);
- begin
- HtmlEdit.Redo;
- end;
- procedure THtmlEditForm.Act_RemoveformatExecute(Sender: TObject);
- begin
- HtmlEdit.Edit.Removeformat;
- end;
- procedure THtmlEditForm.Act_SaveExecute(Sender: TObject);
- begin
- HtmlEdit.Save;
- end;
- procedure THtmlEditForm.Act_SelectAllExecute(Sender: TObject);
- begin
- HtmlEdit.SelectAll;
- end;
- procedure THtmlEditForm.Act_UnderlineExecute(Sender: TObject);
- begin
- HtmlEdit.Edit.Underline;
- end;
- procedure THtmlEditForm.Act_UndoExecute(Sender: TObject);
- begin
- HtmlEdit.Undo;
- end;
- procedure THtmlEditForm.FormCreate(Sender: TObject);
- procedure ClearFontName;
- var
- i: integer;
- begin
- for i := cbbFontName.Items.Count - 1 downto 0 do
- begin
- if Pos('@', cbbFontName.Items[i]) = 1 then
- cbbFontName.Items.Delete(i);
- end;
- for i := cbFontName.Items.Count - 1 downto 0 do
- begin
- if Pos('@', cbFontName.Items[i]) = 1 then
- cbFontName.Items.Delete(i);
- end;
- end;
- begin
- Self.BorderIcons := [biSystemMenu, biMinimize];
- Self.BorderStyle := bsSingle;
- pgc2.ActivePageIndex := 0;
- cbbFontName.Items.AddStrings(Screen.Fonts);
- cbFontName.Items.AddStrings(Screen.Fonts);
- ClearFontName;
- HtmlEditRecv.ReadOnly := TRUE;
- HtmlEdit.ImageFolder := ExtractFilePath(Application.ExeName) + 'Image';
- end;
- {
- Cut 将当前选中区复制到剪贴板并删除之。
- Copy 将当前选中区复制到剪贴板。
- Paste 用剪贴板内容覆盖当前选中区。
- Delete 删除当前选中区。
- Removeformat 从当前选中区中删除格式化标签。
- --
- Redo 目前尚未支持
- Undo 目前尚未支持。
- --
- SelectAll 选中整个文档。
- Unselect 清除当前选中区的选中状态。
- --
- Indent 增加选中文本的缩进。
- Outdent 减少选中区所在格式化块的缩进。
- InsertOrderedList 切换当前选中区是编号列表还是常规格式化块。
- --
- Bold 切换当前选中区的粗体显示与否。
- Italic 切换当前选中区斜体显示与否。
- Underline 切换当前选中区的下划线显示与否。
- --
- FontName 设置或获取当前选中区的字体。
- FontSize 设置或获取当前选中区的字体大小。
- ForeColor 设置或获取当前选中区的前景(文本)颜色。 )
- BackColor 设置或获取当前选中区的背景颜色。
- --
- JustifyCenter 将当前选中区在所在格式化块置中。
- JustifyLeft 将当前选中区所在格式化块左对齐。
- JustifyRight 将当前选中区所在格式化块右对齐。
- CreateLink 在当前选中区上插入超级链接,或显示一个对话框允许用户指定要为当前选中区插入的超级链接的 URL。
- InsertImage 用图像覆盖当前选中区。
- OverWrite 切换文本状态的插入和覆盖。
- Print 打开打印对话框以便用户可以打印当前页。
- SaveAs 将当前 Web 页面保存为文件。
- Unlink 从当前选中区中删除全部超级链接。
- }
- procedure THtmlEditForm.cbbFontNameKeyPress(Sender: TObject;
- var Key: Char);
- begin
- Key := #0;
- end;
- procedure THtmlEditForm.btnExecClick(Sender: TObject);
- begin
- HtmlEdit.Edit.Format(Trim(edt1.Text));
- end;
- procedure THtmlEditForm.chkReadOnlyClick(Sender: TObject);
- begin
- HtmlEdit.ReadOnly := chkReadOnly.Checked;
- end;
- procedure THtmlEditForm.btnSendClick(Sender: TObject);
- begin
- // HtmlEdit1.Add(HtmlEdit.HTML);
- // HtmlEdit1.Add('/BR');
- HtmlEditRecv.Append(HtmlEdit.HTML);
- HtmlEdit.Clear;
- HtmlEditRecv.Edit.ScrollToBottom;
- end;
- procedure THtmlEditForm.cbbFontNameChange(Sender: TObject);
- begin
- if cbbFontName.Text <> '' then
- HtmlEdit.Edit.FontName(cbbFontName.Text);
- end;
- procedure THtmlEditForm.sedtFontSizeChange(Sender: TObject);
- begin
- HtmlEdit.Edit.FontSize(sedtFontSize.Value);
- end;
- procedure THtmlEditForm.Act_SaveAsExecute(Sender: TObject);
- begin
- HtmlEdit.SaveAs;
- end;
- procedure THtmlEditForm.Act_SaveToExecute(Sender: TObject);
- begin
- if dlgSave.Execute then
- HtmlEdit.SaveToFile(dlgSave.FileName);
- end;
- procedure THtmlEditForm.Act_PageSetupExecute(Sender: TObject);
- begin
- HtmlEdit.PrintPageSetup;
- end;
- procedure THtmlEditForm.Act_ClearExecute(Sender: TObject);
- begin
- HtmlEdit.Clear;
- end;
- procedure THtmlEditForm.Act_WriteExecute(Sender: TObject);
- var
- strTable: string;
- RowCnt, ColCnt: integer;
- begin
- strTable := '<TABLE border=1 >';
- for RowCnt := 1 to 3 do
- begin
- strTable := strTable + '<TR>';
- for ColCnt := 1 to 5 do
- strTable := strTable + '<TD> </TD>';
- strTable := strTable + '</TR>';
- end;
- strTable := strTable + '</TABLE>';
- HtmlEdit.Write(strTable);
- end;
- procedure THtmlEditForm.Act_CopyExecute(Sender: TObject);
- begin
- HtmlEdit.Copy;
- end;
- procedure THtmlEditForm.Act_CutExecute(Sender: TObject);
- begin
- HtmlEdit.Cut;
- end;
- procedure THtmlEditForm.Act_InsertExecute(Sender: TObject);
- begin
- HtmlEditRecv.Insert(HtmlEdit.HTML);
- HtmlEdit.Clear;
- end;
- procedure THtmlEditForm.Act_AppendExecute(Sender: TObject);
- begin
- HtmlEditRecv.Append(HtmlEdit.HTML);
- HtmlEdit.Clear;
- end;
- procedure THtmlEditForm.Act_ViewSourceExecute(Sender: TObject);
- begin
- mmo1.Clear;
- mmo1.Lines.Text := HtmlEdit.HTML;
- pgc2.ActivePageIndex := 1;
- end;
- procedure THtmlEditForm.Act_ViewTextExecute(Sender: TObject);
- begin
- mmo1.Clear;
- mmo1.Lines.Text := HtmlEdit.Text;
- pgc2.ActivePageIndex := 1;
- end;
- procedure THtmlEditForm.Act_Edit_BackColoerExecute(Sender: TObject);
- begin
- if dlgColor1.Execute then
- HtmlEdit.Edit.BackColor(dlgColor1.Color);
- end;
- procedure THtmlEditForm.Act_Edit_BoldExecute(Sender: TObject);
- begin
- HtmlEdit.Edit.Bold;
- end;
- procedure THtmlEditForm.Act_Edit_CreateLinkExecute(Sender: TObject);
- begin
- HtmlEdit.Edit.CreateLink;
- end;
- procedure THtmlEditForm.Act_Edit_HorizontalRuleExecute(Sender: TObject);
- begin
- HtmlEdit.Edit.InsertHorizontalRule;
- end;
- procedure THtmlEditForm.Act_Edit_ForeColorExecute(Sender: TObject);
- begin
- if dlgColor1.Execute then
- HtmlEdit.Edit.ForeColor(dlgColor1.Color);
- end;
- procedure THtmlEditForm.Act_Edit_InsertImageExecute(Sender: TObject);
- begin
- if dlgOpenPic.Execute then
- HtmlEdit.Edit.InsertImage(dlgOpenPic.FileName);
- end;
- procedure THtmlEditForm.Act_Edit_InsertLineBreakExecute(Sender: TObject);
- begin
- HtmlEdit.Edit.InsertLineBreak;
- end;
- procedure THtmlEditForm.Act_Edit_InsertOrderedlistExecute(Sender: TObject);
- begin
- HtmlEdit.Edit.InsertOrderedList;
- end;
- procedure THtmlEditForm.Act_Edit_InsertTableExecute(Sender: TObject);
- begin
- HtmlEdit.Edit.InsertTable(StrToInt(edt2.Text), StrToInt(edt3.Text));
- end;
- procedure THtmlEditForm.Act_Edit_InsertUnOrderedListExecute(
- Sender: TObject);
- begin
- HtmlEdit.Edit.InsertUnOrderedList;
- end;
- procedure THtmlEditForm.Act_Edit_JustifyCenterExecute(Sender: TObject);
- begin
- HtmlEdit.Edit.JustifyCenter;
- end;
- procedure THtmlEditForm.Act_Edit_JustifyFullExecute(Sender: TObject);
- begin
- HtmlEdit.Edit.JustifyFull;
- end;
- procedure THtmlEditForm.Act_Edit_JustifyLeftExecute(Sender: TObject);
- begin
- HtmlEdit.Edit.JustifyLeft;
- end;
- procedure THtmlEditForm.Act_Edit_JustifyRightExecute(Sender: TObject);
- begin
- HtmlEdit.Edit.JustifyRight;
- end;
- procedure THtmlEditForm.Act_Edit_ItalicExecute(Sender: TObject);
- begin
- HtmlEdit.Edit.Italic;
- end;
- procedure THtmlEditForm.Act_Edit_RemoveFormatExecute(Sender: TObject);
- begin
- HtmlEdit.Edit.RemoveFormat;
- end;
- procedure THtmlEditForm.Act_Edit_ScrollToBottomExecute(Sender: TObject);
- begin
- HtmlEdit.Edit.ScrollToBottom;
- end;
- procedure THtmlEditForm.Act_Edit_ScrollToTopExecute(Sender: TObject);
- begin
- HtmlEdit.Edit.ScrollToTop;
- end;
- procedure THtmlEditForm.Act_Edit_OutDentExecute(Sender: TObject);
- begin
- HtmlEdit.Edit.OutDent;
- end;
- procedure THtmlEditForm.Act_Edit_InDentExecute(Sender: TObject);
- begin
- HtmlEdit.Edit.InDent;
- end;
- procedure THtmlEditForm.Act_Edit_SuperScriptExecute(Sender: TObject);
- begin
- HtmlEdit.Edit.SuperScript;
- end;
- procedure THtmlEditForm.Act_Edit_SubScriptExecute(Sender: TObject);
- begin
- HtmlEdit.Edit.SubScript;
- end;
- procedure THtmlEditForm.Act_Edit_UnderLineExecute(Sender: TObject);
- begin
- HtmlEdit.Edit.UnderLine;
- end;
- procedure THtmlEditForm.Act_Edit_StrikeThroughExecute(Sender: TObject);
- begin
- HtmlEdit.Edit.StrikeThrough;
- end;
- procedure THtmlEditForm.Act_M_ExampleWindowExecute(Sender: TObject);
- begin
- pgc2.ActivePageIndex := 0;
- end;
- procedure THtmlEditForm.Act_M_ExampleButtonExecute(Sender: TObject);
- begin
- pgc2.ActivePageIndex := 1;
- end;
- end.