Jump to content
Sign in to follow this  
AustrianOak

How to use an .ico file in my gui

Recommended Posts

AustrianOak

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
NELyon

GUICtrlCreateIcon...?

Share this post


Link to post
Share on other sites
AustrianOak

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
AustrianOak

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

Share this post


Link to post
Share on other sites
Andreik

$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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.