Jump to content

Gui Image List & Embedeed Icons in Exe


matwachich
 Share

Recommended Posts

Hi every body!

I have a strange problem that i can't solve:

I made a GUI with a ToolBar, and i want to display custom icons in it.

It's OK if i don't compile the script and i try to add the icons into my ImageList directly from disque, but when i compile and embeed my icons in the Exe file, then my icons wont appear at all!

I made a simplified sample GUI to show you my problem, but here, it's another problem:

the first added icon won't appear, and the others (2) appear, and the standard compiled script's icons appear normally!

I really have a big headach in this!

Here is joined my script with the icons, please compile it to see the problem.

Thanks!

ToolBar icons.zip

Link to comment
Share on other sites

Should it not be 4,5,6 in stead of 5,6,7:

If @Compiled Then

_GUIImageList_AddIcon ($hToolBarImageListNorm, @ScriptFullPath, 4)

_GUIImageList_AddIcon ($hToolBarImageListNorm, @ScriptFullPath, 5)

_GUIImageList_AddIcon ($hToolBarImageListNorm, @ScriptFullPath, 6)

Else

When I Compile with Options without changing anything it works.

Link to comment
Share on other sites

This seems to be working:

...
        If @Compiled Then
            _GUIImageList_AddIcon ($hToolBarImageListNorm, @AutoItExe, 4)
            _GUIImageList_AddIcon ($hToolBarImageListNorm, @AutoItExe, 5)
            _GUIImageList_AddIcon ($hToolBarImageListNorm, @AutoItExe, 6)
        Else
            _GUIImageList_AddIcon ($hToolBarImageListNorm, "btn_newFile.ico")
            _GUIImageList_AddIcon ($hToolBarImageListNorm, "btn_newFolder.ico")
            _GUIImageList_AddIcon ($hToolBarImageListNorm, "btn_delete.ico")
        EndIf
...

Br,

UEZ

Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

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

×
×
  • Create New...