Here are a few more GUI samples I cloned:
Notepad Page Setup
Code: Select all
#NoEnv
#Warn
#SingleInstance Force
SetWorkingDir %A_ScriptDir%
Gui +LastFound -MaximizeBox -MinimizeBox -Resize
DllCall("uxtheme\SetWindowThemeAttribute", "ptr", WinExist(), "int", 1, "int64*", 6 | 6<<32, "uint", 8)
Gui Add, GroupBox, x12 y13 w336 h91, Paper
Gui Add, Text, x24 y39 w54 h13, Si&ze:
Gui Add, DropDownList, x96 y37 w240, 11" x 17"|12" x 18"|16K (195 x 267 mm)|5.5" x 8.5"|8" x 13"|8.25" x 13"|8.5" x 13"|8K (267 x 390 mm)|A3 (297 x 420 mm)|A4 (210 x 297 mm)|A5 (148 x 210 mm)|A6 (105 x 148 mm)|B4 JIS (257 x 364 mm)|B5 JIS (182 x 257 mm)|B6 JIS (128 x 182 mm)|C5 Env. (162 x 229 mm)|C6 Env. (114 x 162 mm)|Com10 Env. (4.125" x 9.5")|Custom Paper Size|Custom Paper Size1(8.50" x 11.00")|Custom Paper Size10(8.50" x 11.00")|Custom Paper Size2(8.50" x 11.00")|Custom Paper Size3(8.50" x 11.00")|Custom Paper Size4(8.50" x 11.00")|Custom Paper Size5(8.50" x 11.00")|Custom Paper Size6(8.50" x 11.00")|Custom Paper Size7(8.50" x 11.00")|Custom Paper Size8(8.50" x 11.00")|Custom Paper Size9(8.50" x 11.00")|DL Env. (110 x 220 mm)|Executive (7.25" x 10.5")|Legal (8.5" x 14")|Letter (8.5" x 11")||Monarch Env. (3.875" x 7.5")
Gui Add, Text, x24 y73 w54 h13, &Source:
Gui Add, DropDownList, x96 y68 w240, Auto Tray Select||Blue|Bond|Cardstock|Coated|Color|Color 1|Color 2|Envelope|Glossy|Gray|Green|Inkjet Plain Paper|Inkjet Postcard|Ivory|Labels|Letterhead|Orange|Pink|Plain|Plain & Recycled|Postcard|Preprinted|Prepunched|Purple|Recycled|Red|Special|Special 2|Special 3|Tab Stock|Thick|Thick 2|Thick 3|Thin|Translucent|Transparency|Tray 1|Tray 2|Tray 3|Tray 4|Tray 5|Yellow
Gui Add, GroupBox, x12 y112 w96 h91, Orientation
Gui Add, Radio, x24 y133 w78 h20 Checked, P&ortrait
Gui Add, Radio, x24 y167 w78 h20, L&andscape
Gui Add, GroupBox, x120 y112 w228 h91, Margins (inches)
Gui Add, Text, x132 y138 w48 h13, &Left:
Gui Add, Edit, x180 y133 w42 h20, 0.75
Gui Add, Text, x246 y138 w48 h13, &Right:
Gui Add, Edit, x294 y133 w42 h20, 0.75
Gui Add, Text, x132 y169 w48 h13, &Top:
Gui Add, Edit, x180 y167 w42 h20, 1
Gui Add, Text, x246 y169 w48 h13, &Bottom:
Gui Add, Edit, x294 y167 w42 h20, 1
Gui Add, Text, x12 y219 w44 h13, &Header:
Gui Add, Edit, x84 y218 w261 h20, &f
Gui Add, Text, x12 y250 w44 h13, &Footer:
Gui Add, Edit, x84 y249 w261 h20, Page &p
Gui Add, Button, x366 y283 w75 h23 Default, OK
Gui Add, Button, x447 y283 w75 h23, Cancel
Gui Add, GroupBox, x360 y13 w162 h257, Preview
Gui, Add, Progress, x399 y83 w100 h130 CA0A0A0 BackgroundA0A0A0 -Theme, 100
Gui, Add, Progress, x391 y75 w100 h130 CFFFFFF Background808080 -Theme, 100
Gui Show, w534 h319, Page Setup - Sample GUI
Return
GuiEscape:
GuiClose:
ExitApp
; End of the GUI section
WordPad Page Setup
Code: Select all
#NoEnv
#Warn
#SingleInstance Force
SetWorkingDir %A_ScriptDir%
Gui +LastFound -MaximizeBox -MinimizeBox -Resize
DllCall("uxtheme\SetWindowThemeAttribute", "ptr", WinExist(), "int", 1, "int64*", 6 | 6<<32, "uint", 8)
Gui, Font, s9, Segoe UI
Gui Add, Progress, x161 y24 w115 h150 CA0A0A0 BackgroundA0A0A0 -Theme, 100
Gui Add, Progress, x152 y15 w115 h150 CFFFFFF Background808080 -Theme, 100
Gui Add, GroupBox, x14 y180 w392 h105, Paper
Gui Add, Text, x28 y210 w63 h15, Si&ze:
Gui Add, DropDownList, x112 y206 w280, 11" x 17"|12" x 18"|16K (195 x 267 mm)|5.5" x 8.5"|8" x 13"|8.25" x 13"|8.5" x 13"|8K (267 x 390 mm)|A3 (297 x 420 mm)|A4 (210 x 297 mm)|A5 (148 x 210 mm)|A6 (105 x 148 mm)|B4 JIS (257 x 364 mm)|B5 JIS (182 x 257 mm)|B6 JIS (128 x 182 mm)|C5 Env. (162 x 229 mm)|C6 Env. (114 x 162 mm)|Com10 Env. (4.125" x 9.5")|Custom Paper Size|Custom Paper Size1(8.50" x 11.00")|Custom Paper Size10(8.50" x 11.00")|Custom Paper Size2(8.50" x 11.00")|Custom Paper Size3(8.50" x 11.00")|Custom Paper Size4(8.50" x 11.00")|Custom Paper Size5(8.50" x 11.00")|Custom Paper Size6(8.50" x 11.00")|Custom Paper Size7(8.50" x 11.00")|Custom Paper Size8(8.50" x 11.00")|Custom Paper Size9(8.50" x 11.00")|DL Env. (110 x 220 mm)|Executive (7.25" x 10.5")|Legal (8.5" x 14")|Letter (8.5" x 11")||Monarch Env. (3.875" x 7.5")
Gui Add, Text, x28 y248 w63 h15, &Source:
Gui Add, DropDownList, x112 y244 w280, Auto Tray Select||Blue|Bond|Cardstock|Coated|Color|Color 1|Color 2|Envelope|Glossy|Gray|Green|Inkjet Plain Paper|Inkjet Postcard|Ivory|Labels|Letterhead|Orange|Pink|Plain|Plain & Recycled|Postcard|Preprinted|Prepunched|Purple|Recycled|Red|Special|Special 2|Special 3|Tab Stock|Thick|Thick 2|Thick 3|Thin|Translucent|Transparency|Tray 1|Tray 2|Tray 3|Tray 4|Tray 5|Yellow
Gui Add, GroupBox, x14 y293 w112 h105, Orientation
Gui Add, Radio, x28 y319 w91 h23 Checked, P&ortrait
Gui Add, Radio, x28 y356 w91 h23, L&andscape
Gui Add, GroupBox, x140 y293 w266 h105, Margins (inches)
Gui Add, Text, x154 y323 w56 h15, &Left:
Gui Add, Edit, x207 y319 w56 h23, 1.25
Gui Add, Text, x287 y323 w56 h15, &Right:
Gui Add, Edit, x340 y319 w56 h23, 1.25
Gui Add, Text, x154 y360 w56 h15, &Top:
Gui Add, Edit, x207 y356 w56 h23, 1
Gui Add, Text, x287 y360 w56 h15, &Bottom:
Gui Add, Edit, x340 y356 w56 h23, 1
Gui Add, CheckBox, x14 y413 w138 h19 Checked, Print Page &Numbers
Gui Add, Button, x231 y443 w84 h26 Default, OK
Gui Add, Button, x322 y443 w84 h26, Cancel
Gui Show, w420 h478, Page Setup - Sample GUI
Return
GuiEscape:
GuiClose:
ExitApp
; End of the GUI section
Paint Image Properties
Code: Select all
#NoEnv
#Warn
#SingleInstance Force
SetWorkingDir %A_ScriptDir%
Gui +LastFound -MaximizeBox -MinimizeBox -Resize
DllCall("uxtheme\SetWindowThemeAttribute", "ptr", WinExist(), "int", 1, "int64*", 6 | 6<<32, "uint", 8)
Gui, Font, s9, Segoe UI
Gui Add, GroupBox, x12 y13 w343 h84, File Attributes
Gui Add, Text, x23 y34 w126 h15, Last Saved:
Gui Add, Text, x151 y34 w156 h15, 12/14/2015 4:16 PM
Gui Add, Text, x23 y53 w126 h15, Size on disk:
Gui Add, Text, x151 y53 w156 h15, 37.8KB
Gui Add, Text, x23 y71 w126 h15, Resolution:
Gui Add, Text, x151 y71 w156 h15, 96 DPI
Gui Add, Text, x12 y221 w63 h19, &Width:
Gui Add, Edit, x72 y218 w63 h23, 560
Gui Add, Text, x142 y221 w70 h19, &Height:
Gui Add, Edit, x198 y218 w63 h23, 300
Gui Add, Button, x268 y218 w88 h26, &Default
Gui Add, Button, x173 y266 w88 h26 Default, OK
Gui Add, Button, x268 y266 w88 h26, Cancel
Gui Add, GroupBox, x12 y103 w168 h105, Units
Gui Add, Radio, x23 y131 w86 h19, &Inches
Gui Add, Radio, x23 y150 w142 h19, Centi&meters
Gui Add, Radio, x23 y169 w91 h19 Checked, &Pixels
Gui Add, GroupBox, x187 y103 w168 h105, Colors
Gui Add, Radio, x198 y131 w135 h19, &Black and white
Gui Add, Radio, x198 y150 w91 h19 Checked, Co&lor
Gui Show, w368 h306, Image Properties - Sample GUI
Return
GuiEscape:
GuiClose:
ExitApp
; End of the GUI section