Jump to content

16 x16 icons?


momitty
 Share

Recommended Posts

#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 by Burrup

qq

Link to comment
Share on other sites

  • 4 weeks later...

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 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

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

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

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
 Share

  • Recently Browsing   0 members

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