Page 1 of 1

button including an image

Posted: 10 Oct 2018, 15:06
by Asmodeus
I think adding an an image to a button is often helpful.
any plans for adding this feature?

Re: button including an image

Posted: 10 Oct 2018, 15:23
by TheDewd
There are existing user-created functions available to do this. See https://autohotkey.com/boards/viewtopic ... 390#p11390

I agree that it would be great to have this feature available, however Lexikos doesn't care to be bothered with requests that can be easily solved using additional functions.

Use Google to search the forums. You'll usually find answers to many of your requests.

Re: button including an image

Posted: 10 Oct 2018, 17:32
by Asmodeus
I was thinking about having this feature natively build in, without work-arounds, external functions, dependencies, etc. something working right out of the box.

This is the "Wish List" section, where else do think I should post my enhancement request?

Re: button including an image

Posted: 10 Oct 2018, 23:48
by nnnik
You could code it yourself and make a PR on GitHub.

Re: button including an image

Posted: 23 Oct 2018, 09:13
by n00b
is this what you're looking for?

Re: button including an image

Posted: 31 Oct 2018, 10:13
by Kilo_SSK
Yeah, I've already found something like this to download from another user, but it would definitely be great if it was officially endorsed. I mean, today, which program doesn't have small icons like that in order to highlight their text? Hell, some even get rid of the TEXT before getting rid of the image.

Re: button including an image

Posted: 10 Dec 2018, 17:48
by garry
use picture as button

Code: Select all

F1=C:\test.jpg
Gui Add, Picture, gA1 w100 h-1 +0x4000000,%f1%
Gui, Show,, My GUI
return

A1:
Gui,1:submit,nohide
msgbox,Clicked %f1%
; do something
return

guiclose:
exitapp