Unit21.~pas
上传用户:fjdqny
上传日期:2016-10-26
资源大小:6299k
文件大小:9k
源码类别:

Delphi控件源码

开发平台:

Delphi

  1. unit Unit21;
  2. interface
  3. uses
  4.   Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  5.   Dialogs, Menus, ComCtrls, ExtCtrls, ToolWin, StdCtrls, ImgList, jpeg,
  6.   SkinCaption, WinSkinData;
  7. type
  8.   TForm21 = class(TForm)
  9.     MainMenu1: TMainMenu;
  10.     N1: TMenuItem;
  11.     N2: TMenuItem;
  12.     N3: TMenuItem;
  13.     N4: TMenuItem;
  14.     N5: TMenuItem;
  15.     N6: TMenuItem;
  16.     N7: TMenuItem;
  17.     N8: TMenuItem;
  18.     N9: TMenuItem;
  19.     N10: TMenuItem;
  20.     N11: TMenuItem;
  21.     N12: TMenuItem;
  22.     N13: TMenuItem;
  23.     N14: TMenuItem;
  24.     N15: TMenuItem;
  25.     N16: TMenuItem;
  26.     N17: TMenuItem;
  27.     N18: TMenuItem;
  28.     N19: TMenuItem;
  29.     N20: TMenuItem;
  30.     N21: TMenuItem;
  31.     N22: TMenuItem;
  32.     N23: TMenuItem;
  33.     N24: TMenuItem;
  34.     N25: TMenuItem;
  35.     N27: TMenuItem;
  36.     N28: TMenuItem;
  37.     N29: TMenuItem;
  38.     N30: TMenuItem;
  39.     N31: TMenuItem;
  40.     N32: TMenuItem;
  41.     N33: TMenuItem;
  42.     N34: TMenuItem;
  43.     N35: TMenuItem;
  44.     N36: TMenuItem;
  45.     N37: TMenuItem;
  46.     N38: TMenuItem;
  47.     N39: TMenuItem;
  48.     Timer1: TTimer;
  49.     StatusBar1: TStatusBar;
  50.     CoolBar1: TCoolBar;
  51.     ToolBar1: TToolBar;
  52.     ToolButton1: TToolButton;
  53.     ToolButton2: TToolButton;
  54.     ToolButton3: TToolButton;
  55.     ToolButton4: TToolButton;
  56.     ToolButton5: TToolButton;
  57.     ToolButton6: TToolButton;
  58.     Panel1: TPanel;
  59.     Image1: TImage;
  60.     Image2: TImage;
  61.     Image3: TImage;
  62.     Image4: TImage;
  63.     Image5: TImage;
  64.     Image6: TImage;
  65.     Image7: TImage;
  66.     Image8: TImage;
  67.     Image9: TImage;
  68.     Label1: TLabel;
  69.     Image10: TImage;
  70.     Image11: TImage;
  71.     Image12: TImage;
  72.     Image13: TImage;
  73.     Image14: TImage;
  74.     Image15: TImage;
  75.     Image16: TImage;
  76.     Image17: TImage;
  77.     Label4: TLabel;
  78.     Label5: TLabel;
  79.     Label6: TLabel;
  80.     Label7: TLabel;
  81.     Label8: TLabel;
  82.     Label9: TLabel;
  83.     Label10: TLabel;
  84.     Label2: TLabel;
  85.     ImageList1: TImageList;
  86.     Image18: TImage;
  87.     SkinData1: TSkinData;
  88.     SkinCaption1: TSkinCaption;
  89.     N26: TMenuItem;
  90.     procedure N8Click(Sender: TObject);
  91.     procedure N9Click(Sender: TObject);
  92.     procedure N10Click(Sender: TObject);
  93.     procedure N11Click(Sender: TObject);
  94.     procedure N12Click(Sender: TObject);
  95.     procedure N13Click(Sender: TObject);
  96.     procedure N14Click(Sender: TObject);
  97.     procedure N15Click(Sender: TObject);
  98.     procedure N16Click(Sender: TObject);
  99.     procedure N17Click(Sender: TObject);
  100.     procedure N27Click(Sender: TObject);
  101.     procedure N28Click(Sender: TObject);
  102.     procedure N29Click(Sender: TObject);
  103.     procedure N22Click(Sender: TObject);
  104.     procedure N30Click(Sender: TObject);
  105.     procedure N31Click(Sender: TObject);
  106.     procedure N32Click(Sender: TObject);
  107.     procedure N33Click(Sender: TObject);
  108.     procedure N34Click(Sender: TObject);
  109.     procedure N37Click(Sender: TObject);
  110.     procedure N38Click(Sender: TObject);
  111.     procedure Timer1Timer(Sender: TObject);
  112.     procedure N35Click(Sender: TObject);
  113.     procedure N39Click(Sender: TObject);
  114.     procedure Image2Click(Sender: TObject);
  115.     procedure Image4Click(Sender: TObject);
  116.     procedure Image8Click(Sender: TObject);
  117.     procedure Image7Click(Sender: TObject);
  118.     procedure Image9Click(Sender: TObject);
  119.     procedure Image5Click(Sender: TObject);
  120.     procedure Image6Click(Sender: TObject);
  121.     procedure N18Click(Sender: TObject);
  122.     procedure N19Click(Sender: TObject);
  123.     procedure N36Click(Sender: TObject);
  124.     procedure N20Click(Sender: TObject);
  125.     procedure ToolButton1Click(Sender: TObject);
  126.     procedure ToolButton2Click(Sender: TObject);
  127.     procedure ToolButton3Click(Sender: TObject);
  128.     procedure ToolButton5Click(Sender: TObject);
  129.     procedure ToolButton6Click(Sender: TObject);
  130.     procedure Image2MouseMove(Sender: TObject; Shift: TShiftState; X,
  131.       Y: Integer);
  132.     procedure Image4MouseMove(Sender: TObject; Shift: TShiftState; X,
  133.       Y: Integer);
  134.     procedure Image5MouseMove(Sender: TObject; Shift: TShiftState; X,
  135.       Y: Integer);
  136.     procedure Image6MouseMove(Sender: TObject; Shift: TShiftState; X,
  137.       Y: Integer);
  138.     procedure Image7MouseMove(Sender: TObject; Shift: TShiftState; X,
  139.       Y: Integer);
  140.     procedure Image8MouseMove(Sender: TObject; Shift: TShiftState; X,
  141.       Y: Integer);
  142.     procedure Image9MouseMove(Sender: TObject; Shift: TShiftState; X,
  143.       Y: Integer);
  144.     procedure N25Click(Sender: TObject);
  145.     procedure N26Click(Sender: TObject);
  146.   private
  147.     { Private declarations }
  148.   public
  149.     { Public declarations }
  150.   end;
  151. var
  152.   Form21: TForm21;
  153. implementation
  154. uses Unit2, Unit3, Unit4, Unit5, Unit6, Unit7, Unit10, Unit11, Unit8,
  155.   Unit9, Unit12, Unit13, Unit14, Unit15, Unit16, Unit17, Unit18, Unit19,
  156.   Unit20,ShellApi, Unit22, Unit24, Unit25, Unit23, Unit26, Unit27;
  157. {$R *.dfm}
  158. procedure TForm21.N8Click(Sender: TObject);
  159. begin
  160. form2.show;
  161. end;
  162. procedure TForm21.N9Click(Sender: TObject);
  163. begin
  164. form3.show;
  165. end;
  166. procedure TForm21.N10Click(Sender: TObject);
  167. begin
  168. form4.show;
  169. end;
  170. procedure TForm21.N11Click(Sender: TObject);
  171. begin
  172. form5.show;
  173. end;
  174. procedure TForm21.N12Click(Sender: TObject);
  175. begin
  176. form6.show;
  177. end;
  178. procedure TForm21.N13Click(Sender: TObject);
  179. begin
  180. form7.show;
  181. end;
  182. procedure TForm21.N14Click(Sender: TObject);
  183. begin
  184. form10.show;
  185. end;
  186. procedure TForm21.N15Click(Sender: TObject);
  187. begin
  188. form11.show;
  189. end;
  190. procedure TForm21.N16Click(Sender: TObject);
  191. begin
  192. form8.show;
  193. end;
  194. procedure TForm21.N17Click(Sender: TObject);
  195. begin
  196. form9.show;
  197. end;
  198. procedure TForm21.N27Click(Sender: TObject);
  199. begin
  200. form12.show;
  201. end;
  202. procedure TForm21.N28Click(Sender: TObject);
  203. begin
  204. form13.show;
  205. end;
  206. procedure TForm21.N29Click(Sender: TObject);
  207. begin
  208. form14.show;
  209. end;
  210. procedure TForm21.N22Click(Sender: TObject);
  211. begin
  212. form15.show;
  213. end;
  214. procedure TForm21.N30Click(Sender: TObject);
  215. begin
  216. form16.show;
  217. end;
  218. procedure TForm21.N31Click(Sender: TObject);
  219. begin
  220. form17.show;
  221. end;
  222. procedure TForm21.N32Click(Sender: TObject);
  223. begin
  224. form18.show;
  225. end;
  226. procedure TForm21.N33Click(Sender: TObject);
  227. begin
  228. form19.show;
  229. end;
  230. procedure TForm21.N34Click(Sender: TObject);
  231. begin
  232. form20.show;
  233. end;
  234. procedure TForm21.N37Click(Sender: TObject);
  235. begin
  236. ShellExecute(0,'open','calc.exe',nil,nil,sw_show);
  237. end;
  238. procedure TForm21.N38Click(Sender: TObject);
  239. begin
  240. ShellExecute(0,'open','notepad.exe',nil,nil,sw_show);
  241. end;
  242. procedure TForm21.Timer1Timer(Sender: TObject);
  243. begin
  244.    Statusbar1.Panels[2].Text := FormatDateTime('               yyyy年mm月dd日hh:nn:ss ',now);
  245. end;
  246. procedure TForm21.N35Click(Sender: TObject);
  247. begin
  248. form22.show;
  249. end;
  250. procedure TForm21.N39Click(Sender: TObject);
  251. begin
  252.   if not panel1.Visible then
  253.    panel1.Visible:=true
  254.   else
  255.    panel1.Visible:=false;
  256. end;
  257. procedure TForm21.Image2Click(Sender: TObject);
  258. begin
  259. form2.Show;
  260. end;
  261. procedure TForm21.Image4Click(Sender: TObject);
  262. begin
  263. form3.Show;
  264. end;
  265. procedure TForm21.Image8Click(Sender: TObject);
  266. begin
  267. form3.Show;
  268. end;
  269. procedure TForm21.Image7Click(Sender: TObject);
  270. begin
  271. form8.Show;
  272. end;
  273. procedure TForm21.Image9Click(Sender: TObject);
  274. begin
  275. form9.Show;
  276. end;
  277. procedure TForm21.Image5Click(Sender: TObject);
  278. begin
  279. form4.Show;
  280. end;
  281. procedure TForm21.Image6Click(Sender: TObject);
  282. begin
  283. form5.Show;
  284. end;
  285. procedure TForm21.N18Click(Sender: TObject);
  286. begin
  287. form24.show;
  288. end;
  289. procedure TForm21.N19Click(Sender: TObject);
  290. begin
  291. form25.show;
  292. end;
  293. procedure TForm21.N36Click(Sender: TObject);
  294. begin
  295. form23.show;
  296. end;
  297. procedure TForm21.N20Click(Sender: TObject);
  298. begin
  299. form26.show;
  300. end;
  301. procedure TForm21.ToolButton1Click(Sender: TObject);
  302. begin
  303.   if not panel1.Visible then
  304.    panel1.Visible:=true
  305.   else
  306.    panel1.Visible:=false;
  307. end;
  308. procedure TForm21.ToolButton2Click(Sender: TObject);
  309. begin
  310. ShellExecute(0,'open','calc.exe',nil,nil,sw_show);
  311. end;
  312. procedure TForm21.ToolButton3Click(Sender: TObject);
  313. begin
  314. ShellExecute(0,'open','notepad.exe',nil,nil,sw_show);
  315. end;
  316. procedure TForm21.ToolButton5Click(Sender: TObject);
  317. begin
  318. form23.show;
  319. end;
  320. procedure TForm21.ToolButton6Click(Sender: TObject);
  321. begin
  322.   if application.MessageBox('您确实要退出系统吗?','退出',4)=6 then
  323.   application.Terminate
  324.   else
  325.   exit;
  326. end;
  327. procedure TForm21.Image2MouseMove(Sender: TObject; Shift: TShiftState; X,
  328.   Y: Integer);
  329. begin
  330. Image2.Cursor:=crHandpoint;
  331. end;
  332. procedure TForm21.Image4MouseMove(Sender: TObject; Shift: TShiftState; X,
  333.   Y: Integer);
  334. begin
  335. Image4.Cursor:=crHandpoint;
  336. end;
  337. procedure TForm21.Image5MouseMove(Sender: TObject; Shift: TShiftState; X,
  338.   Y: Integer);
  339. begin
  340. Image5.Cursor:=crHandpoint;
  341. end;
  342. procedure TForm21.Image6MouseMove(Sender: TObject; Shift: TShiftState; X,
  343.   Y: Integer);
  344. begin
  345. Image6.Cursor:=crHandpoint;
  346. end;
  347. procedure TForm21.Image7MouseMove(Sender: TObject; Shift: TShiftState; X,
  348.   Y: Integer);
  349. begin
  350. Image7.Cursor:=crHandpoint;
  351. end;
  352. procedure TForm21.Image8MouseMove(Sender: TObject; Shift: TShiftState; X,
  353.   Y: Integer);
  354. begin
  355. Image8.Cursor:=crHandpoint;
  356. end;
  357. procedure TForm21.Image9MouseMove(Sender: TObject; Shift: TShiftState; X,
  358.   Y: Integer);
  359. begin
  360. Image9.Cursor:=crHandpoint;
  361. end;
  362. procedure TForm21.N25Click(Sender: TObject);
  363. begin
  364. form27.show;
  365. end;
  366. procedure TForm21.N26Click(Sender: TObject);
  367. begin
  368.    form3.Show;
  369. end;
  370. end.