Jump to content
Sign in to follow this  

icon on a button

Recommended Posts


is it possible to put an icon an a button? like this: Posted Image

[CENTER]Sorry for my bad English... ;)[/CENTER]

Share this post

Link to post
Share on other sites

take a look at this example code:

#include <GUIConstants.au3>

GUICreate("Icon Test", 214, 89, 192, 125)
$Button = GUICtrlCreateButton("", 80, 24, 41, 41, $BS_ICON)
GUICtrlSetImage($Button, @SystemDir & "\Shell32.dll", 14)
While 1
    $msg = GUIGetMsg()
        Case $msg = $GUI_EVENT_CLOSE
        Case Else

HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code.

Share this post

Link to post
Share on other sites

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
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.