home *** CD-ROM | disk | FTP | other *** search
- unit Unit1;
-
- interface
-
- uses
- Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
- JwFshCl, ExtCtrls, JwPopbtn, JwWrpbtn, StdCtrls, Jwlabel, Jwlinez,
- JwStgPnl, JwAutAbt, jpeg, jwShellBrowseFolder;
-
- type
- TForm1 = class(TForm)
- JwLinez1: TJwLinez;
- JwLinez2: TJwLinez;
- JwLinez3: TJwLinez;
- JwLinez4: TJwLinez;
- JwLinez7: TJwLinez;
- JwLinez8: TJwLinez;
- JwLinez5: TJwLinez;
- JwLinez6: TJwLinez;
- JwWrapButton1: TJwWrapButton;
- JwPopButton1: TJwPopButton;
- JwExpLabel1: TJwExpLabel;
- JwFlashClick1: TJwFlashClick;
- JwStagePanel1: TJwStagePanel;
- JwAutoAbout1: TJwAutoAbout;
- jwShellBrowseFolder1: TjwShellBrowseFolder;
- JwFlashClick2: TJwFlashClick;
- JwFlashClick3: TJwFlashClick;
- JwFlashClick4: TJwFlashClick;
- procedure JwWrapButton1Click(Sender: TObject);
- procedure JwFlashClick1Click(Sender: TObject);
- procedure JwFlashClick2Click(Sender: TObject);
- procedure JwFlashClick3Click(Sender: TObject);
- procedure JwFlashClick4Click(Sender: TObject);
- procedure JwStagePanel1Click(Sender: TObject);
- private
- { Private declarations }
- public
- { Public declarations }
- end;
-
- var
- Form1: TForm1;
-
- implementation
-
- uses ShellApi, FileCtrl;
- {$R *.DFM}
-
- procedure TForm1.JwWrapButton1Click(Sender: TObject);
- begin
- Close;
- end;
-
- procedure TForm1.JwFlashClick1Click(Sender: TObject);
- begin
- JwAutoAbout1.Execute;
- end;
-
- procedure TForm1.JwFlashClick2Click(Sender: TObject);
- begin
- if jwShellBrowseFolder1.Execute then
- ( Sender as TJwFlashClick ).Caption := jwShellBrowseFolder1.SelectedFolder;
- end;
-
- procedure TForm1.JwFlashClick3Click(Sender: TObject);
- var
- Opts: TShellExecuteInfo;
- begin
- if DirectoryExists(JwFlashClick2.Caption) then
- begin
- FillChar(Opts, SizeOf(Opts), #0);
- Opts.cbSize := SizeOf(Opts);
- Opts.Wnd := Self.Handle;
- Opts.lpVerb := PChar('open');
- Opts.lpFile := PChar(JwFlashClick2.Caption);
- Opts.nShow := SW_SHOWNORMAL;
- ShellExecuteEx(@Opts);
- end;
- end;
-
- procedure TForm1.JwFlashClick4Click(Sender: TObject);
- begin
- Randomize;
- Self.Color := Random( 99999 );
- JwExpLabel1.OverFontColor := Self.Color xor $0000FFFF;
- end;
-
- procedure TForm1.JwStagePanel1Click(Sender: TObject);
- begin
- Self.Color := ( Sender as TPanel ).Color;
- end;
-
- end.
-