Sign in to follow this  
Followers 0
serialzs

Guictrlcreateicon And $gui_event_close

11 posts in this topic

#1 ·  Posted (edited)

GUICreate("ICON")
GUICtrlCreateIcon("icon.exe", 0, 5,5, 128,128)

GUISetState()
While 1
    $msg = GUIGetMsg()
    If $msg = $GUI_EVENT_CLOSE then ExitLoop
WEnd

Problems:

-> "icon.exe" is a autoitscript with a icon size 128x128 its blurred wen view

it does have a 128x128 max size icon..clear and smooth icon..

i tested any icon in *.exe it doesnt work it only viewed 32x32 icon thats why it blurred..example is IEXPLORER.exe have max icon size of 48x48 but it only viewed 32x32.. :mellow:

-> "$GUI_EVENT_CLOSE" always error in this script..

need help i dont know what making that error.. :)

ill attach the "icon.exe" here..

-=[serialzs]=-

icon.zip

Edited by serialzs

Share this post


Link to post
Share on other sites



GUICreate("ICON")
GUICtrlCreateIcon("icon.exe", 0, 5,5, 128,128)

GUISetState()
While 1
    $msg = GUIGetMsg()
    If $msg = $GUI_EVENT_CLOSE then ExitLoop
WEnd

Problems:

-> "icon.exe" is a autoitscript with a icon size 128x128 its blurred wen view

it does have a 128x128 max size icon..clear and smooth icon..

i tested any icon in *.exe it doesnt work it only viewed 32x32 icon thats why it blurred..example is IEXPLORER.exe have max icon size of 48x48 but it only viewed 32x32.. :mellow:

-> "$GUI_EVENT_CLOSE" always error in this script..

need help i dont know what making that error.. :)

ill attach the "icon.exe" here..

-=[serialzs]=-

Could you please post questions in the GUI support forum _> moving this post.

This version works fine for me:

#include<guiconstants.au3>
GUICreate("ICON")
GUICtrlCreateIcon("icon.exe", 0, 5,5, 128,128)

GUISetState()
While 1
    $msg = GUIGetMsg()
    If $msg = $GUI_EVENT_CLOSE then ExitLoop
WEnd

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

look for the difference of this.. my icon is clear and smooth but in autoitscript its not..

i make my icons in MICROANGELO Software..i just preview it..thats the actual size of the icon..

why is it not viewed with a good quality icon???

-=[serialzs]=-

Edited by serialzs

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

look for the difference of this.. my icon is clear and smooth but in autoitscript its not..

why is it not viewed with a good quality icon???

-=[serialzs]=-

your bmp link is dead

8)

EDIT... thats fixed

Edited by Valuater

NEWHeader1.png

Share this post


Link to post
Share on other sites

your bmp link is dead

8)

EDIT... thats fixed

i editing it..its not dead now... :)

Share this post


Link to post
Share on other sites

look for the difference of this.. my icon is clear and smooth but in autoitscript its not..

i make my icons in MICROANGELO Software..i just preview it..thats the actual size of the icon..

why is it not viewed with a good quality icon???

-=[serialzs]=-

aren't program Icons max 64*64 ?

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

aren't program Icons max 64*64 ?

nope..the icons max size for XP is 128x128..

any solution for that problem? :)

-=[serialzs]=-

Edited by serialzs

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

Not sure what the problem is, but I extracted the 128 x 128 icon from the exe and it shows as it should

#include<guiconstants.au3>
GUICreate("ICON")
GUICtrlCreateIcon("s_icon.ico", -1, 5,5, 128,128)

GUISetState()
While 1
    $msg = GUIGetMsg()
    If $msg = $GUI_EVENT_CLOSE then ExitLoop
WEnd
Edited by gafrost

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

Ahhh... this problem...

When I use Microsoft Visual C++ to create icons, you are able to create icons for different "devices", but there is this "Standard" device of size (32x32) which connot be deleted.

I have also noticed that Windows XP displays the highest resultion it can file in an ICO file which is on it's own.

Therefore, I can say that MICROANGELO creates an ico file with 2 device types, the one that you selected, and "Standard" (32x32).

Therefore, AutoIt displays 32x32 ico images because either:

1) AutoIt can always depend on the fact that there will be a Standard type in an ico file

2) The Standard type is always listed first in an ico file (assumption, based on the way that Microsoft Visual C++ arranges the ico types in it's dropdown menu in it's editor)

#)

Share this post


Link to post
Share on other sites

Therefore i cant view a 128x128 icon file in this script..

i expect it to work on next beta or release of autoit :mellow:

i know you can do it guys... :)

-=[serialzs]=-

Share this post


Link to post
Share on other sites

Therefore i cant view a 128x128 icon file in this script..

i expect it to work on next beta or release of autoit :mellow:

i know you can do it guys... :)

-=[serialzs]=-

I don't know if we can do it. AutoIt is using basic interfae to windows but if somebody expalyn what can be done more than the ExtractIcon() interface I will be glad to introduce it in AutoIt code provide not too complicated code has to ,be introduce inside AutoIt Code. :)

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