[Function] GuiButtonIcon

Post your working scripts, libraries and tools for AHK v1.1 and older
User avatar
huyaowen
Posts: 109
Joined: 28 Jul 2014, 01:15

Re: [Function] GuiButtonIcon

29 Dec 2014, 10:55

Very nice. Easy and small.
SirRFI
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: Select all

[/c] forum tag to share your code.
Click on [b]✔[/b] ([b][i]Accept this answer[/i][/b]) on top-right part of the post if it has answered your question / solved your problem.
Helgef
Posts: 4709
Joined: 17 Jul 2016, 01:02
Contact:

Re: [Function] GuiButtonIcon

23 Nov 2016, 12:24

Very nice! Thanks
animagus46
Posts: 23
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: 178
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
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:
Sorry I am working hard at the moment at a new job and can't commit on delays of answers & updates
Savveo
Posts: 3
Joined: 09 Jun 2021, 07:56

Re: [Function] GuiButtonIcon

27 Jul 2021, 11:21

DigiDon wrote:
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])


Wow! Could you possibly post some examples of using PNGs or JPGs? What would the actual code look like?
Thanks!

A Newbie Needing Help,
Savveo
jsong55
Posts: 253
Joined: 30 Mar 2021, 22:02

Re: [Function] GuiButtonIcon

07 Apr 2023, 09:24

@FanaticGuru I have been using this useful function for years, are you able to make a v2 version please.
User avatar
FanaticGuru
Posts: 1906
Joined: 30 Sep 2013, 22:25

Re: [Function] GuiButtonIcon

07 Apr 2023, 12:52

jsong55 wrote:
07 Apr 2023, 09:24
@FanaticGuru I have been using this useful function for years, are you able to make a v2 version please.

The v2 version of this function can be found here: viewtopic.php?f=83&t=115871

FG
Hotkey Help - Help Dialog for Currently Running AHK Scripts
AHK Startup - Consolidate Multiply AHK Scripts with one Tray Icon
Hotstring Manager - Create and Manage Hotstrings
[Class] WinHook - Create Window Shell Hooks and Window Event Hooks

Return to “Scripts and Functions (v1)”

Who is online

Users browsing this forum: gongnl, MiM, todd and 72 guests