News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

Example with custom button control

Started by hutch--, November 27, 2018, 01:59:28 AM

Previous topic - Next topic

hutch--

I have this one close enough to add it to the library, its an interface with the custom title bar that is scaleable to different sizes and fonts, a 64 pixel icon, a background image that has links and a button on it. Its a test of the transparent button which means only the text shows with an optional border if required. The title can be aligned left, centre or right and the custom button has alignment control as well. The links are done with a button with no border and an underline font and are left aligned.

sinsi

When you create a button, why do you register the class every time? Isn't it better to register it once?

Mikl__

Hi, hutch--!
Thank you very much for an interesting example!

hutch--

sinsi,

It mainly because its self contained as it is not practical to have a remote class that needs to be defined before you can use the control. It has a reasonably long argument list to avoid having to set structures or similar and it runs off the passed arguments.

HSE

Quote from: sinsi on November 27, 2018, 12:10:46 PM
When you create a button, why do you register the class every time? Isn't it better to register it once?

Apparently only is registered once time.

Later you obtain an API error, because the class already exist.

Equations in Assembly: SmplMath