The MASM Forum

Members Gallery => Showcase => Topic started by: hutch-- on July 05, 2022, 07:45:56 PM

Title: Bitmap Button Demo
Post by: hutch-- on July 05, 2022, 07:45:56 PM
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.
Title: Re: Bitmap Button Demo
Post by: avcaballero on July 05, 2022, 10:42:35 PM
It works ok  :thumbsup:

Here my little contribution to make buttons, from some years ago, 2015 if I'm not wrong 
Title: Re: Bitmap Button Demo
Post by: hutch-- on July 06, 2022, 06:59:44 AM
These actually work well, the big one with an irregular shape is particularly impressive.  :thumbsup: