If not, can it be done on a Text control?
Code: Select all
FWC := "55a0ff" ; first window window's color
FWFS := "16" ; first window window's font size
FWFT := "Verdana" ; first window window's font
ButtonText=
(
This is a line in the default color
Can this line be highlighted in turquoise?
This is a line in the default color
)
CreateFirstWindow:
Gui New, hwndFW
Gui +LabelFW ; needed for such subs (later in this script) as FWCancel or FWClose
Gui, % FW . ":color", % FWC
Gui, % FW . ":font", % "s" . FWFS, % FWFT
Gui, % FW . ":add", Button, gShowSecond , % ButtonText
Gui, % FW . ":add", Button, x+10 gFWClose , Exit
Gui, % FW . ":show"
return
ShowSecond:
return
FWClose:
Gui % FW . ":Default"
Gui, % FW . ":destroy"
exitapp