The MASM Forum

General => The Laboratory => Topic started by: hutch-- on April 18, 2020, 06:43:04 PM

Title: Custom button demo.
Post by: hutch-- on April 18, 2020, 06:43:04 PM
Could I impose on some of our members to test this binary that has the 3 types of custom buttons that I have been working on. The three type are,

1. A colour button that works similar to a standard Windows button but has full colour control.
2. A Text only button with no background that has text and hover colour control.
3. A link appearance button that has text and hover colour control.

The first two act on the WM_LBUTTONUP message.
The link button acts on the WM_LBUTTONDOWN message.

The logic of the colour button is slightly different to a normal Windows button in that it does not use the SetCapture technique and responds only to the UP click. This allows a drag style of use with the mouse that triggers the control action on release.

The test piece is testing OK on the Win10 Pro 64 bit I develop on and the latest version of 64 bit Win7 Ultimate.

I have the modules added to the current reference library but have not yet released the current library and I have not done any documentation for the additions and changes.

All of the WM_COMMAND message should work OK, among the things I need testing is if there is any flickering with any of the buttons on other language Windows versions and perhaps if the 128 pixel icon displays properly on other Windows versions.
Title: Re: Custom button demo.
Post by: Siekmanski on April 18, 2020, 08:44:28 PM
Works OK on Win8.1
Title: Re: Custom button demo.
Post by: avcaballero on April 18, 2020, 09:16:38 PM
Works ok in my W10
Title: Re: Custom button demo.
Post by: Biterider on April 18, 2020, 09:55:01 PM
Also OK here (Win 10 64 Home)
Biterider
Title: Re: Custom button demo.
Post by: mineiro on April 18, 2020, 10:05:50 PM
Ok under wine.
Title: Re: Custom button demo.
Post by: jj2007 on April 18, 2020, 10:43:07 PM
Works fine under Win7-64. The word "link button" might be a bit misleading. It's a link on the client area, not exactly a button (i.e. there's no border and no shading around).
Title: Re: Custom button demo.
Post by: hutch-- on April 18, 2020, 11:10:38 PM
 :biggrin:

Everybody has a theory,  I call them buttons.
Title: Re: Custom button demo.
Post by: daydreamer on April 19, 2020, 05:13:11 PM
works here on win10 :thumbsup:

cannot be seen here,but the nobackground button,if placed where there is graphics,it will look like text with transparent background?
Title: Re: Custom button demo.
Post by: hutch-- on April 19, 2020, 06:57:18 PM
Yes, that is the design of the text and link buttons so you can place them over image data. The colour button draws its own background before writing the text over it.