-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUnit7.pas
More file actions
57 lines (48 loc) · 1.16 KB
/
Unit7.pas
File metadata and controls
57 lines (48 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
unit Unit7;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.OleCtrls, SHDocVw,
Winapi.WebView2, Winapi.ActiveX, Vcl.Edge, Vcl.Imaging.pngimage, Vcl.ExtCtrls,
Vcl.Imaging.GIFImg;
type
TForm7 = class(TForm)
GroupBox1: TGroupBox;
GroupBox2: TGroupBox;
Edit1: TEdit;
Button1: TButton;
EdgeBrowser: TEdgeBrowser;
Panel1: TPanel;
Image2: TImage;
Label1: TLabel;
Timer1: TTimer;
procedure Button1Click(Sender: TObject);
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form7: TForm7;
chatchan: string;
implementation
{$R *.dfm}
procedure TForm7.Button1Click(Sender: TObject);
begin
chatchan := Edit1.Text;
if chatchan = '' then
begin
panel1.Visible := true
end
else
begin
panel1.Visible := false;
EdgeBrowser.Navigate('https://www.twitch.tv/popout/'+chatchan+'/chat');
end;
end;
procedure TForm7.FormCreate(Sender: TObject);
begin
panel1.Visible := false;
end;
end.