Sign in to follow this  
Followers 0
Schlumpf

icon on a button

2 posts in this topic

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)
GUISetState()
While 1
    $msg = GUIGetMsg()
    Select
        Case $msg = $GUI_EVENT_CLOSE
            Exit
        Case Else
            ;;;;;;;
    EndSelect
WEnd

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  
Followers 0