DynaMenu.pas
资源名称:delphi.rar [点击查看]
上传用户:fh681027
上传日期:2022-07-23
资源大小:1959k
文件大小:5k
源码类别:
Delphi控件源码
开发平台:
Delphi
- unit DynaMenu;
- interface
- uses
- SysUtils, Windows, Classes, Graphics, Forms, Controls,
- StdCtrls, Menus, Dialogs, ExtCtrls;
- type
- TFormColorText = class(TForm)
- Label1: TLabel;
- ColorDialog1: TColorDialog;
- MainMenu1: TMainMenu;
- FontDialog1: TFontDialog;
- Options1: TMenuItem;
- Font1: TMenuItem;
- BackColor1: TMenuItem;
- N1: TMenuItem;
- Left1: TMenuItem;
- Center1: TMenuItem;
- Right1: TMenuItem;
- Help1: TMenuItem;
- About1: TMenuItem;
- File1: TMenuItem;
- Exit1: TMenuItem;
- View1: TMenuItem;
- Toolbar1: TMenuItem;
- Panel1: TPanel;
- BtnLeft: TButton;
- BtnFontColor: TButton;
- BtnCenter: TButton;
- BtnBackColor: TButton;
- BtnRight: TButton;
- HideLabel1: TMenuItem;
- N2: TMenuItem;
- FixedFont1: TMenuItem;
- N3: TMenuItem;
- FixedView1: TMenuItem;
- DisableHelp1: TMenuItem;
- procedure About1Click(Sender: TObject);
- procedure Font1Click(Sender: TObject);
- procedure BackColor1Click(Sender: TObject);
- procedure Left1Click(Sender: TObject);
- procedure Center1Click(Sender: TObject);
- procedure Right1Click(Sender: TObject);
- procedure Exit1Click(Sender: TObject);
- procedure Toolbar1Click(Sender: TObject);
- procedure HideLabel1Click(Sender: TObject);
- procedure FixedFont1Click(Sender: TObject);
- procedure FixedView1Click(Sender: TObject);
- procedure DisableHelp1Click(Sender: TObject);
- procedure FormCreate(Sender: TObject);
- public
- procedure SizeItemClick(Sender: TObject);
- procedure SizeClick(Sender: TObject);
- end;
- var
- FormColorText: TFormColorText;
- implementation
- {$R *.DFM}
- procedure ToggleCheck (Item: TMenuItem);
- begin
- Item.Checked := not Item.Checked;
- end;
- procedure TFormColorText.About1Click(Sender: TObject);
- begin
- MessageDlg ('MenuOne is the first example' + #13 +
- 'with a menu of the book ' + #13 +
- '"Mastering Delphi 3" written by Marco Cant