Jump to content

change guictrlsetimage icon size ?


Recommended Posts

GUICtrlSetImage (-1,@TempDir & "\" & $Iconname,'',2)

2 does not seem to set it to its right dimensions.

Icon is assigned to each generated listviewitem

but always same size, i think 16x16 and i want it to be bigger but changing icontype to 2 has no effect

HELP !!!

Link to comment
Share on other sites

loading new image is use the current dimension of control .

to use icon dimension resize your control :

#include <GDIPlus.au3>


Link to comment
Share on other sites

its not possible for me to get the control ID for an image. Its in the list view one of hundred items and none of them are created as a variable.

I do edit them by their index, but not the ID

Here is what i have

GUICtrlCreateListViewItem($GetNameFromResult & "|" & $GetCountFromResult & "|" & $GetNumberFromResult & "|" & $GetMFGFromResult & "|" & $GetCategoryFromResult & "|" & $GetLocationFromResult & "|" & $GetImagePathFromResult & "|" & $GetMFDPathFromResult & "|" & $GetCountSheetFromResult & "|" & $FixStringForNote, $Results)

GUICtrlSetImage(-1, @TempDir & "\" & $Iconname, '', 2) ;Uses -1 since above has no variable

Here i need to edit the above image size. 2 stands for normal, but its still small. I wish there was size parameters in the above function.

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...