ToolBar工具栏控件的使用,动态建立主菜单选项,窗口界面的动态分隔条

源代码在线查看: unitfrmmain.pas

软件大小: 8397 K
上传用户: sunny_02
关键词: ToolBar 动态 控件
下载地址: 免注册下载 普通下载 VIP

相关代码

				unit unitFrmMain;
				
				interface
				
				uses
				  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs;
				
				type
				  TForm1 = class(TForm)
				    procedure FormKeyDown(Sender: TObject; var Key: Word;
				      Shift: TShiftState);
				  private
				    { Private declarations }
				  public
				    { Public declarations }
				  end;
				var
				  Form1: TForm1;
				  keytp: string;
				implementation
				{$R *.DFM}
				procedure TForm1.FormKeyDown(Sender: TObject; var Key: Word;
				  Shift: TShiftState);
				begin
				  //是否按下ALT键,只接收字符
				  if (shift = [ssALT]) and (key >= $41) and (key 				    begin
				      keytp := keytp + chr(key);
				      if keytp = 'ABC' then
				        begin
				          showmessage(' WELLCOME');
				        end;
				    end;
				end;
				end.
				
							

相关资源