Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


The ModernUI_RegionButton is a button control like the standard win32 button control, except it is an irregular shape, defined by polygons or premade regions. It provides ease of use and more customizable features, like color of background, border, and colors for when the mouse moves over the control, or the control is in a selected state, and can use a bitmap brush to paint a collection of ModernUI_RegionButton controls, for example for maps: country, county and/or state regions.

For the x64 version of the ModernUI_RegionButton control, visit here.

Setup ModernUI_RegionButton

  • Download the latest version of the ModernUI_RegionButton and extract the files. The latest release can be found in the Release folder, or via the releases section of this Github repository or can be downloaded directly from here.
  • Copy the file to your masm32\include folder (or wherever your includes are located)
  • Copy the ModernUI_RegionButton.lib file to your masm32\lib folder (or wherever your libraries are located)
  • Add the main ModernUI library to your project (if you haven't done so already):
includelib ModernUI.lib
  • Add the ModernUI_RegionButton control to your project:
includelib ModernUI_RegionButton.lib

ModernUI_RegionButton API Help

Documentation is available for the ModernUI_RegionButton functions, styles and properties used by the control on the wiki: ModernUI_RegionButton Control

Other Resources

For maps and converting svg files to polygon points: