Jump to content
Sign in to follow this  
momitty

16 x16 icons?

Recommended Posts

momitty

$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

#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

Share this post


Link to post
Share on other sites
busysignal

Interesting control.. It simple and works..

Cheers... :(

Share this post


Link to post
Share on other sites
jpm

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

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.

 

Share this post


Link to post
Share on other sites
jpm

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
jpm

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

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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.