'https://forum.powerbasic.com/forum/user-to-user-discussions/source-code/23540-ownerdraw-button-regions-demo
'--------------------------------------------------------------------------------
' Universal Button - beauty of HRGN
' Origional Author: Pavel A. Simakov
' Origional Code:
'https://www.codeguru.com/cpp/controls/buttonctrl/non-rectangularbuttons/article.php/c2085/Universal-Button--beauty-of-HRGN.htm
'
' MFC C++ to PowerBasic Conversion by Jules Marchildon. FEB.15th,2001
'https://forum.powerbasic.com/forum/user-to-user-discussions/source-code/23540-ownerdraw-button-regions-demo
'
' Ported to Oxygenbasic
' No warrenty applies, use at your own risk...
'--------------------------------------------------------------------------------
$ filename "UniversalButton.exe"
'uses rtl32
'uses rtl64
uses corewin
...