Author Topic: Working prototype of a custom text button control  (Read 99 times)

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 5040
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Working prototype of a custom text button control
« on: January 15, 2018, 05:04:34 PM »
This is a prototype of a custom control that uses any font as the text with the option of a 1 pixel black border if required. This example does not use the border. Its purpose is to be able to place text based buttons over image data (in this instance a bitmap in a static control) with the button background being transparent so that only the text is displayed. It does 3 colours, normal display, mouse hover and the clicked colour. At the moment these are set with equates as I have had some problems with the API Get/SetWindowLongPtr() in that the allocated window extra memory is only allowing me to set 2 items which is not yet enough to make the control fully self contained but on my Win10 64 it is reliable and works correctly.
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :biggrin:

WillASM

  • Regular Member
  • *
  • Posts: 11
Re: Working prototype of a custom text button control
« Reply #1 on: January 16, 2018, 02:51:11 PM »
Looks great on Win7 Hutch..  :t

LiaoMi

  • Member
  • **
  • Posts: 194
Re: Working prototype of a custom text button control
« Reply #2 on: January 16, 2018, 07:24:13 PM »
Cool example! Thank you hutch  :icon_exclaim: