Jump to content

Using Imagelisy for button bitmap


Bawbagg
 Share

Recommended Posts

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

@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"

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...