Author Topic: Custom button demo.  (Read 411 times)

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 7419
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Custom button demo.
« 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.
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy:

Siekmanski

  • Member
  • *****
  • Posts: 2253
Re: Custom button demo.
« Reply #1 on: April 18, 2020, 08:44:28 PM »
Works OK on Win8.1
Creative coders use backward thinking techniques as a strategy.

caballero

  • Member
  • *****
  • Posts: 1450
  • Matrix - Noah
    • abre ojos ensamblador
Re: Custom button demo.
« Reply #2 on: April 18, 2020, 09:16:38 PM »
Works ok in my W10
The logic of the error is hidden among the most unexpected lines of the program

Biterider

  • Member
  • ****
  • Posts: 533
  • ObjAsm Developer
    • ObjAsm
Re: Custom button demo.
« Reply #3 on: April 18, 2020, 09:55:01 PM »
Also OK here (Win 10 64 Home)
Biterider

mineiro

  • Member
  • ****
  • Posts: 586
Re: Custom button demo.
« Reply #4 on: April 18, 2020, 10:05:50 PM »
Ok under wine.
I'd rather be this ambulant metamorphosis than to have that old opinion about everything

jj2007

  • Member
  • *****
  • Posts: 10438
  • Assembler is fun ;-)
    • MasmBasic
Re: Custom button demo.
« Reply #5 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).

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 7419
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: Custom button demo.
« Reply #6 on: April 18, 2020, 11:10:38 PM »
 :biggrin:

Everybody has a theory,  I call them buttons.
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy:

daydreamer

  • Member
  • *****
  • Posts: 1311
  • building nextdoor
Re: Custom button demo.
« Reply #7 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?
Quote from Flashdance
Nick  :  When you give up your dream, you die
*wears a flameproof asbestos suit*
Gone serverside programming p:  :D
I love assembly,because its legal to write
princess:lea eax,luke
:)

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 7419
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: Custom button demo.
« Reply #8 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.
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy: