Code: Select all
; Setting the font size at program start:
FontSize := 12
Gui Font, S%FontSize% Bold
.
-
Gui Add, Edit, xP y+5 w1900 h700 vEdit, This forum is nice!
.
.
Gui,Show, x10 y10
If so, how can this be done? Many thanks in advance.
Code: Select all
; Setting the font size at program start:
FontSize := 12
Gui Font, S%FontSize% Bold
.
-
Gui Add, Edit, xP y+5 w1900 h700 vEdit, This forum is nice!
.
.
Gui,Show, x10 y10
Code: Select all
FontSize := 12
Gui, Font, s%FontSize% Bold
Gui, Add, Edit, w900 h500 vEdit, This forum is nice!
Gui, Add, Button, Hidden, OK
GuiControl, Focus, OK
Gui, Show
Sleep, 1000
font("Edit", 8)
Sleep, 1000
font("Edit", 28, "Red", BOLD := 700, "Arial")
Return
font(control, size, color := "Black" , weight := 400, face := "Verdana") {
; https://www.autohotkey.com/boards/viewtopic.php?p=431754#p431754
Gui, Font, s%size% c%color% w%weight%, %face%
GuiControl, Font, %control%
}