Jump to content

How to put "Exclamation-point icon" on GUI?


Recommended Posts

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

post-23099-1178490139_thumb.jpg

Warmly,Narciso

Link to comment
Share on other sites

$icon = GUICtrlCreateIcon ("explorer.exe", -9, 20,20) ; Question-mark icon

Thank 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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...