dirty Posted October 12, 2011 Share Posted October 12, 2011 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 More sharing options...
bestsmr Posted October 12, 2011 Share Posted October 12, 2011 loading new image is use the current dimension of control . to use icon dimension resize your control : #include <GDIPlus.au3> GUICtrlSetPos($control_ID,$x,$y,_GDIPlus_ImageGetWidth($image_handle),_GDIPlus_ImageGetHeight($image_handle)) Link to comment Share on other sites More sharing options...
dirty Posted October 15, 2011 Author Share Posted October 15, 2011 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 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