-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAboutGui.ahk
45 lines (36 loc) · 875 Bytes
/
AboutGui.ahk
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
BuildAboutGui()
{
Global AppName, AppTitle, AppDescription, AppNotes, AppURL, AppVersion
Gui, About:New, -SysMenu +OwnDialogs
Gui, About:Add, Picture, x10 y10, %A_ScriptFullPath%
Gui, About:Add, Text, x52 y10, %AppTitle% v%AppVersion%
Gui, About:Add, Text, x52 y30, %AppDescription%
Gui, About:Add, Text, x52 y50 h60 w280, %AppNotes%
Gui, About:Add, Link, x52 y120, <a href="%AppURL%">%AppURL%</a>
Gui, About:Add, Button, default x135 y150 w80, OK
}
DestroyAboutGui()
{
Gui, About:Destroy
}
ShowAboutGui()
{
Global AppName, AppTitle, AppDescription, AppNotes, AppURL, AppVersion
BuildAboutGui()
Gui, About:Show, w350 h180, About... %AppTitle%
}
AboutGuiEscape:
{
DestroyAboutGui()
return
}
AboutGuiClose:
{
DestroyAboutGui()
return
}
AboutButtonOK:
{
DestroyAboutGui()
return
}