[Function] GuiButtonIcon

Post your working scripts, libraries and tools
User avatar
Posts: 100
Joined: 28 Jul 2014, 01:15

Re: [Function] GuiButtonIcon

29 Dec 2014, 10:55

Very nice. Easy and small.
Posts: 404
Joined: 25 Nov 2015, 16:52

Re: [Function] GuiButtonIcon

22 Nov 2016, 17:42

Nice one. Is it possible to set transparency on the icons? Let's say make the "save" icon half-transparent.
Use [code=autohotkey] forum tag to share your code.
Click on (Accept this answer) on top-right part of the post if it has answered your question / solved your problem.
Posts: 3096
Joined: 17 Jul 2016, 01:02

Re: [Function] GuiButtonIcon

23 Nov 2016, 12:24

Very nice! Thanks
Posts: 16
Joined: 19 Dec 2014, 15:23

Re: [Function] GuiButtonIcon

23 Jul 2017, 14:57

it is possibel to hide a icon?
GuiControl, Hide%Button2Shown%, Button2

if "A" exist show button2
if "A" not exist hide Button2

Terribel: GuiControl, Hide%Button2Shown%, Button2 was the solution....
Posts: 175
Joined: 19 May 2014, 04:55

Re: [Function] GuiButtonIcon

12 Feb 2018, 05:44

Long time I was looking for a solution to use an image as a real button with the standard look and effect!
Just found this topic now !
Simple and great, still working fine, so thanks many years later :D

To add my 2cts I want to remind that you can use also handle to images or other image types (jpg, png etc.)

From Help File on ListView IL_Add
A bitmap or icon handle can be used instead of a filename. For example, HBITMAP:%handle%.

And for other images it seems this should be something like
IL_Add(ImageListID, Filename.jpg (png,...), Transp=0xFFFFFF , ResizeNonIcon=1])
EverFastAccess : Take Notes on anything the Fast way: Attach notes, Set reminders & Speed up research in 1 gesture - AHK topic
AHK Dynamic Obfuscator L - Protect your AHK code by Obfuscation - AHK topic
QuickModules for Outlook : Sort Outlook emails very quickly to multiple folders - AHK topic

Coding takes lots of time and efforts. If I have helped you or if you enjoy one of my free projects, please consider a small donation :thumbup:

Return to “Scripts and Functions”

Who is online

Users browsing this forum: No registered users and 18 guests