Jump to content

Guictrlcreateicon And $gui_event_close


serialzs
 Share

Recommended Posts

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

  • Developers

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

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
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]=-

Edited by serialzs
Link to comment
Share on other sites

  • Developers

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 ?

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

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.

 

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

#)

Link to comment
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. :)
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...