Sign in to follow this  
Followers 0
AustrianOak

How to use an .ico file in my gui

5 posts in this topic

I tried using GUICtrlCreatePic() to create an icon in my gui window and it appeared as blank. Whats a simple way to load an icon file into my gui?

Share this post


Link to post
Share on other sites



GUICtrlCreateIcon...?

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

I feel dumb. Never saw that function.

:)

Edit:

Before I used GUICtrlCreatePic on a Child GUI like this:

GUICreate("", 26, 26, 98,25,$WS_POPUP,-1,$GUI)

$pic = GUICtrlCreatePic("3.gif", 0, 0, 26, 26)

Is there any way I can use GUICtrlCreateIcon in the same fashion?

Edited by nowagain

Share this post


Link to post
Share on other sites

Sorry to bump this old topic but am still looking for the answer...

Share this post


Link to post
Share on other sites

$GUI = GUICreate("EXAMPLE",200,200,-1,-1)
$ICON = GUICtrlCreateIcon("spider.ico",-1,20,20)
GUISetState(@SW_SHOW,$GUI)
While GUIGetMsg() <> -3
    Sleep(25)
WEnd


When the words fail... music speaks

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