Rounded Button Corners in Firemonkey

  

I’m developing an application in Firemonkey for Windows and OSX. With the new Windows 11, I can see, by default in my application, that the form corners are rounded. I’ve found code to call a Windows API for rounding corners but it requires passing an HWND parameter. Since I don’t believe Firemonkey supports Windows handles, how do I go about rounding the corners on button and other controls to match the new Windows 11 look when the application is being built for Windows? (I’m using the Alexandria build of Delphi and I know enough to wrap the code with compile directives for Windows vs OSX.)

Comments are closed.