The text background color Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Kevin_yeh2020
Posts: 106
Joined: 11 Apr 2020, 00:54

The text background color

19 Apr 2021, 02:20

Hi,

This is my script as below. How can I add a yellow photo and white background text? Just like the attachment.

Code: Select all

#NoTrayIcon
#SingleInstance, force
Pics := []
Loop, Files, C:\Users\User\Desktop\Test\Test1.PNG
{
    Pics.Push(LoadPicture(A_LoopFileFullPath))
}
if !Pics.Length()
{
    MsgBox, No picture found!
    ExitApp
}

Gui, Add, Pic, w400 h-1 vPic -Border, % "HBITMAP:*" Pics.1
SetBatchLines, -1
Gui, Show, x127 y60 W300 H300, Program
Gui, Font, Norm S17 W500 cblack , Calibri
Gui, Add, Text, x100 y100, Check
Return

GuiClose:
ExitApp
Attachments
Test_1.PNG
Test_1.PNG (6.7 KiB) Viewed 338 times
User avatar
mikeyww
Posts: 26882
Joined: 09 Sep 2014, 18:38

Re: The text background color  Topic is solved

19 Apr 2021, 05:31

Code: Select all

; https://autohotkey.com/board/topic/9083-custom-background-color-for-text-controls/
file = %A_ScriptDir%\test.png
UrlDownloadToFile, https://www.autohotkey.com/boards/download/file.php?id=12908, %file%
Gui, Add, Pic, w400 h-1 vPic -Border, % "HBITMAP:*" LoadPicture(file)
Gui, Font, Norm S17 w500 cblack , Calibri
Gui, Add, Text, 0x6 x40 y80 w100 
Gui, Add, Text, xp+30 yp +BackgroundTrans, TEST
Gui, Show,, Test
Return
Kevin_yeh2020
Posts: 106
Joined: 11 Apr 2020, 00:54

Re: The text background color

21 Apr 2021, 00:18

mikeyww wrote:
19 Apr 2021, 05:31

Code: Select all

; https://autohotkey.com/board/topic/9083-custom-background-color-for-text-controls/
file = %A_ScriptDir%\test.png
UrlDownloadToFile, https://www.autohotkey.com/boards/download/file.php?id=12908, %file%
Gui, Add, Pic, w400 h-1 vPic -Border, % "HBITMAP:*" LoadPicture(file)
Gui, Font, Norm S17 w500 cblack , Calibri
Gui, Add, Text, 0x6 x40 y80 w100 
Gui, Add, Text, xp+30 yp +BackgroundTrans, TEST
Gui, Show,, Test
Return
Hi mikeyww,
Thank you.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: aitaixy, dipahk, Google [Bot] and 232 guests