momitty Posted April 15, 2005 Share 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? Link to comment Share on other sites More sharing options...
buzz44 Posted April 15, 2005 Share 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 Link to comment Share on other sites More sharing options...
busysignal Posted May 11, 2005 Share Posted May 11, 2005 Interesting control.. It simple and works.. Cheers... Link to comment Share on other sites More sharing options...
jpm Posted May 12, 2005 Share 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 Link to comment Share on other sites More sharing options...
GaryFrost Posted May 12, 2005 Share 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. Link to comment Share on other sites More sharing options...
jpm Posted May 13, 2005 Share 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 Link to comment Share on other sites More sharing options...
GaryFrost Posted May 13, 2005 Share 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. Link to comment Share on other sites More sharing options...
jpm Posted May 13, 2005 Share 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 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