Jump to content

Recommended Posts

Posted

I'm feeling nice.

#include <GUIButton.au3>
#include <GUIConstantsEx.au3>
#include <GUIImageList.au3>

Local $hGUI = GUICreate('')
GUICtrlCreateButton('Add', 10, 10, 100, 25)

Local $hImageList = _GUIImageList_Create(16, 16, 5, 3)
_GUIImageList_AddIcon($hImageList, 'add.ico')
_GUICtrlButton_SetImageList(-1, $hImageList, 0)

GUISetState(@SW_SHOW, $hGUI)

While 1
    Switch GUIGetMsg()
        Case $GUI_EVENT_CLOSE
            ExitLoop

    EndSwitch
WEnd
GUIDelete($hGUI)

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted

  On 9/13/2012 at 8:31 PM, 'D4RKON3 said:

@JScript, Thanks.I don't access to the source, can you give me these too?

$smallIconsdll ???

ImageList_Create ???

ExtractIconEx ???

ImageList_AddIcon ???

DestroyIcon ???

$smallIconsdll ==> ISN AutoIt StudioDatasmallIcons.dll

ImageList_Create ==> _GUIImageList_Create()

ExtractIconEx ==> _WinAPI_ExtractIconEx()

ImageList_AddIcon ==> _GUIImageList_AddIcon()

DestroyIconm ==> _WinAPI_DestroyIcon()

JS

http://forum.autoitbrasil.com/ (AutoIt v3 Brazil!!!)

  Reveal hidden contents

Somewhere Out ThereJames Ingram

somewh10.png

dropbo10.pngDownload Dropbox - Simplify your life!
Your virtual HD wherever you go, anywhere!

Posted

  On 9/13/2012 at 8:41 PM, 'D4RKON3 said:

Me too! Thank you, realy.

And thanks to all of you guys.

I used BrewManNH's example but knew the solution when I started to read the thread properly.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...