Page 1 of 1

A text sets a different style

Posted: 26 May 2017, 22:26
by arcticir
If you use TT (), you will find that it uses a lot of styles on a piece of text, E.g:

Image

How to achieve in the ordinary GUI text to achieve the same effect?

E.g, in the following GUI, with bold expression "Google Photos"

Image

Re: A text sets a different style

Posted: 27 May 2017, 03:15
by HotKeyIt
Gui, Font and Link?

Code: Select all

Gui,Font, s16 bold, Arial
Gui,Add, Text,,This is title
gui,Font, s10 normal, Times New Roman
Gui,Add, link,y+1,Rest of the text`, more on <a>http:\\autohotkey.com</a>
Gui,Show
return
GuiClose:
ExitApp

Re: A text sets a different style

Posted: 27 May 2017, 03:40
by arcticir
This seems to be my misunderstanding. Can not define each word like HTML?

Re: A text sets a different style

Posted: 27 May 2017, 04:18
by HotKeyIt
Yes, every link has to be defined like this, see Link Controls.