momitty 0 Report post Posted April 15, 2005 $thisicon=GUICtrlCreateIcon ("system32.dll",0 ,2,2,16,16) Even with size in there it only displays my icons in 32 x 32 size. Is there anyway around this? Share this post Link to post Share on other sites
buzz44 1 Report post Posted April 15, 2005 (edited) #include <GUIConstants.au3> GUICreate ("test",190,114,-1,-1,$WS_SIZEBOX+$WS_SYSMENU) $icon = GUICtrlCreateIcon ("shell32.dll",10, 20,20) ControlMove ( "test", "", 3, 20, 20 ,16,16) GUISetState () While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop Wend I had to use ControlMove to change it. I keep the original X,Y coords but resized it to 16x16. Edited April 15, 2005 by Burrup qq Share this post Link to post Share on other sites
busysignal 0 Report post Posted May 11, 2005 Interesting control.. It simple and works.. Cheers... Share this post Link to post Share on other sites
jpm 42 Report post Posted May 12, 2005 Starting 3.1.1.29 you can use GUICtrlSetPos instead of ControlMove which seems more logical. I correct the bug which was making GuiCtrlSetPos unsuccessful Share this post Link to post Share on other sites
GaryFrost 11 Report post Posted May 12, 2005 (edited) I guess my question would be, why have a width and height in guictlrcreateicon if don't make it the size you ask for? want to see the diff in icons between release and beta run enumicons.au3 in the examples with release then run with beta. Edited May 12, 2005 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
jpm 42 Report post Posted May 13, 2005 I guess my question would be, why have a width and height in guictlrcreateicon if don't make it the size you ask for?want to see the diff in icons between release and beta run enumicons.au3 in the examples with release then run with beta.<{POST_SNAPBACK}>You will see that the size apply. But where is the enumicons.au3 so I can have a look?Thanks for testing Share this post Link to post Share on other sites
GaryFrost 11 Report post Posted May 13, 2005 AutoIt3\Examples\GUI\Advanced 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
jpm 42 Report post Posted May 13, 2005 AutoIt3\Examples\GUI\Advanced<{POST_SNAPBACK}>it work fine provided you defined width and height$ahIcons[$iCurIndex] = GUICtrlCreateIcon($sFilename, $iCurIndex,_ 60 * $iCntCol + 25, 70 * $iCntRow + 80,16,16)I will modified the example which is using a bad default size perhaps I will change the default w,h for icon as 32,32 which will be better.Thanks Share this post Link to post Share on other sites