News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Bitmap Button Demo

Started by hutch--, July 05, 2022, 07:45:56 PM

Previous topic - Next topic

hutch--

This is a test piece for buttons that take an up and down button image to give some animation to the appearance of buttons. I tried many variations to simplify it but ran into the problem that there was no viable way to pass 2 image handles to a subclass.

I ended up having to use a more complicated technique where you had to individually subclass each button and use the normal global scope image handles so that you get the correct switching from the up to down button.

You have to create 2 images for each button and write some extra code but the BS_BITMAP style works well with a system defined button and it frees you at last from the default system button appearance.

avcaballero

It works ok  :thumbsup:

Here my little contribution to make buttons, from some years ago, 2015 if I'm not wrong 

hutch--

These actually work well, the big one with an irregular shape is particularly impressive.  :thumbsup: