Jump to content

Configuring Icons in Buttons


Syed23
 Share

Recommended Posts

Hi All,

I have designed a tool with the help of Kodak designer which will have 5 buttons. In all 5 buttons i have set image icon which will describe you by seeing it what it will do. For example - there will be a button with the image icon Internet explorer which represents if you click on it it will open the IE page. Here my problem is i am copying all the image icons in share location and copying it from the local PC and executing the tool. It making my package more complex. is there a way to configure icons one time and no need to carry the icons anywhere else.

Please let me know if i am not clear.

Appreciated for you understanding!

Edited by Syed23

Thank you,Regards,[font="Garamond"][size="4"]K.Syed Ibrahim.[/size][/font]

Link to comment
Share on other sites

Assuming you are compileing this script, you can add the icons as resources in the compiled file. That can be done easily using AutoIt3Wrapper directives in the script and then compileing with SciTE. You could also make a copy of the AutoItSC.bin file, add the icons there using Resource Hacker (or some other resource tool) then compile the script using the modified bin file.

Another way is to create a dll file to hold the icons then install that with your app and call the icons in there.

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Link to comment
Share on other sites

As GEOSoft said use

#AutoIt3Wrapper_Icon=app.ico
#AutoIt3Wrapper_Res_Icon_Add=icon1.ico
#AutoIt3Wrapper_Res_Icon_Add=icon2.ico
#AutoIt3Wrapper_Res_Icon_Add=icon3.ico

GUICtrlSetImage($h_Button1, @ScriptFullPath, -nn)

and compile your script from full Scite4Autoit3 by F7.

In Scite you can get detailed help for directives by Ctrl+F1 --> Extra Utilities / Autoit3Wrapper

Edited by Zedna
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...