Bawbagg Posted January 15, 2008 Share Posted January 15, 2008 I'm creating buttons for use on a form using GUICtrlCreateButton. I already have an imagelist for a toolbar. I would like to use an image from the imagelist as a bitmap for the form button. Does anyone know of a method to do this?? Many thanks, BB Link to comment Share on other sites More sharing options...
Aceguy Posted January 17, 2008 Share Posted January 17, 2008 try this [u]My Projects.[/u]Launcher - not just for games & Apps (Mp3's & Network Files)Mp3 File RenamerMy File Backup UtilityFFXI - Realtime to Vana time Clock Link to comment Share on other sites More sharing options...
Siao Posted January 17, 2008 Share Posted January 17, 2008 (edited) @BawbaggI think you're better off creating separate imagelists for your buttons, either with 1 image, or 6 (5 used) for each state. You can copy needed images from your toolbar imagelist, if you want. GuiImageList UDF has all the necessary functions for that. And then assign the list to a button with $BCM_SETIMAGELIST message.Because from what I gather, $BM_SETIMAGE doesn't work too well if you want to have text+image, nor does it work too well with Modern GUI themes... nor did it work too well with image handles taken from imagelist, at least for me.If you need example, see this thread http://www.autoitscript.com/forum/index.ph...CM_SETIMAGELIST Edited January 17, 2008 by Siao "be smart, drink your wine" Link to comment Share on other sites More sharing options...
Bawbagg Posted January 24, 2008 Author Share Posted January 24, 2008 Thanks for the responses. I'll make sure to check email notification in order I can follow up a bit sooner next time. BB 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