johngreenwood Posted June 16, 2010 Share Posted June 16, 2010 I am using GUICtrlCreateIcon and updating the icon based on a combobox entry. I want the icon to be quite large but it doesn't look good. Is there any way to make the icon appear clearer at larger resolutions? Link to comment Share on other sites More sharing options...
Tvern Posted June 16, 2010 Share Posted June 16, 2010 Does your icon file contain an icon at higher resolution? If so you will have to specify the index of that icon as the second parameter of GuiCtrlCreateIcon. To find out that icons are stored in an *.ico and their indices, you can use a resource hacker. Link to comment Share on other sites More sharing options...
johngreenwood Posted June 16, 2010 Author Share Posted June 16, 2010 Thank you Tvern. I guess I'll just have to have them ugly as the icons are already on the user's computer. I'm just finding them and bringing it into the GUI as a preview. Link to comment Share on other sites More sharing options...
Tvern Posted June 16, 2010 Share Posted June 16, 2010 You might be able to get the information about an icon using an autoit script to determine what icon has the best resolution and then use that one. Ofcoarse that is assuming that each icon file containst multiple resolutions of the same icon. Link to comment Share on other sites More sharing options...
johngreenwood Posted June 16, 2010 Author Share Posted June 16, 2010 Some of the icons are coming from a dll in the Windows dir which contains many icons, and others are found elsewhere. Some don't even have icons. Link to comment Share on other sites More sharing options...
ResNullius Posted June 19, 2010 Share Posted June 19, 2010 @johngreenwood Check out Yashied's work here: http://www.autoitscript.com/forum/index.php?s=&showtopic=89387&view=findpost&p=642424 and here: http://www.autoitscript.com/forum/index.php?s=&showtopic=92675&view=findpost&p=666005 I think you'll find it addresses your needs. Link to comment Share on other sites More sharing options...
johngreenwood Posted June 19, 2010 Author Share Posted June 19, 2010 Interesting, thank you very much. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now