narciso Posted May 6, 2007 Posted May 6, 2007 Hello, Creating GUI I have learned from Help files that there is an easy way to put some system icons as graphic on your GUI, like in the example: ; ############## cut #include <GUIConstants.au3> GUICreate("My GUI") ; will create a dialog box that when displayed is centered $icon = GUICtrlCreateIcon ("shell32.dll", 1001, 20,20) ; Question-mark icon GUISetState () While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop Wend ; ############## cut My question is how you put on your GUI another useful system icon referred to in the manual as "Exclamation-point icon", like the one burried in the explorer.exe (highlighted on the attached picture). No problem to put it on MsgBox (flag code 48). And how about my own GUI?! Thank you for any help you can offer. Regards from Poland, Narcciso Warmly,Narciso
Zedna Posted May 6, 2007 Posted May 6, 2007 (edited) Use negative index numbers. Note: negative index numbers are 1-based indexes Edited May 6, 2007 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search
narciso Posted May 7, 2007 Author Posted May 7, 2007 $icon = GUICtrlCreateIcon ("explorer.exe", -9, 20,20) ; Question-mark iconThank you so very much guys, and specifically Larry for such a quick and effective response!!! I am amazed how lively the support community for AutoIt seems. I am new to the AutoIt environment, just wanted to do some trival task with it at first but from what I can gather ti can be used to develop a professional application. Amazing! Thanks again Warmly,Narciso
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