[solved] Can a part of GUI button be highlighted in another color? Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
User avatar
Benny-D
Posts: 302
Joined: 12 Mar 2014, 10:09

[solved] Can a part of GUI button be highlighted in another color?

19 Nov 2018, 08:54

Can a part of GUI button be highlighted in another color?
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
Last edited by Benny-D on 27 Nov 2018, 09:46, edited 1 time in total.
User avatar
Benny-D
Posts: 302
Joined: 12 Mar 2014, 10:09

Re: Can a part of GUI button be highlighted in another color?

23 Nov 2018, 20:58

Is my question that hard? 5 straight days and not a single response!

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: mamo691, mcd, ReyAHK and 258 guests