Valuater Posted July 10, 2008 Posted July 10, 2008 This can give you an idea!; Icon on Button - (made easy) ; Author - Valuater #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> $mywin = GUICreate("my gui") $btn1 = IconButton("Help", 30, 30, 70, 32, 23) GUISetState() While 1 $msg = GUIGetMsg() If $msg = $btn1 Then MsgBox(0,0,"You pressed the Icon Button ", 2) If $msg = $GUI_EVENT_CLOSE Then Exit WEnd Func IconButton($BItext, $BIleft, $BItop, $BIwidth, $BIheight, $BIconNum, $BIDLL = "shell32.dll") GUICtrlCreateIcon($BIDLL, $BIconNum, $BIleft + 5, $BItop + (($BIheight - 16) / 2), 16, 16) GUICtrlSetState( -1, $GUI_DISABLE) $XS_btnx = GUICtrlCreateButton($BItext, $BIleft, $BItop, $BIwidth, $BIheight, $WS_CLIPSIBLINGS) Return $XS_btnx EndFuncThis and many other helpful script-lets are here to help you.... Autoit Wrappershttp://www.autoitscript.com/forum/index.ph...st&p=133769.... and here is a link to "picture" buttonshttp://www.autoitscript.com/forum/index.ph...st&p=2884288)
jercfd Posted July 11, 2008 Author Posted July 11, 2008 thanks this will work for me. i thought it would be more complicated but its actually quite simple.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now