Sign in to follow this  
Followers 0
Bawbagg

Using Imagelisy for button bitmap

4 posts in this topic

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

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

@Bawbagg

I 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 by Siao

"be smart, drink your wine"

Share this post


Link to post
Share on other sites

Thanks for the responses. :D

I'll make sure to check email notification in order I can follow up a bit sooner next time.

BB

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