amoon Posted April 22, 2007 Posted April 22, 2007 (edited) #include <GUIConstants.au3> GUICreate("test",240,180) $button1 = GUICtrlCreateButton ("1", 0,0,40,40,$BS_ICON) GUICtrlSetImage (-1, "shell32.dll",5) $button2 = GUICtrlCreateButton ("2", 40,00,40,40,$BS_ICON) GUICtrlSetImage (-1, "shell32.dll",7) $button3 = GUICtrlCreateButton ("3", 80,00,40,40,$BS_ICON) GUICtrlSetImage (-1, "shell32.dll",22) $button4 = GUICtrlCreateButton ("4", 120,0,40,40,$BS_ICON) GUICtrlSetImage (-1, "shell32.dll",23) $button5 = GUICtrlCreateButton ("5", 160,0,40,40,$BS_ICON) GUICtrlSetImage (-1, "shell32.dll",32) $buttonclose = GUICtrlCreateButton ("close", 200,0,40,40,$BS_ICON) GUICtrlSetImage (-1, "shell32.dll",28) GUISetState() ; Run the GUI until the dialog is closed While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop Wend GUIDelete() the example of autoit's imagebutton, but it seems dose not show the button text when it's show image, the problem is i want to show button text and image both on a button,can i do this ? help me ,thanks all. Edited April 22, 2007 by amoon
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