[Function] GuiButtonIcon

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

Re: [Function] GuiButtonIcon

29 Dec 2014, 10:55

Very nice. Easy and small.
SirRFI
Posts: 401
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.
Helgef
Posts: 2990
Joined: 17 Jul 2016, 01:02
Contact:

Re: [Function] GuiButtonIcon

23 Nov 2016, 12:24

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

Re: [Function] GuiButtonIcon

23 Jul 2017, 14:57

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

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

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

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
Knowledge is knowing a tomato is a fruit; wisdom is not putting it in a fruit salad. (Miles Kington)

Return to “Scripts and Functions”

Who is online

Users browsing this forum: comvox, megnatar and 13 guests