Originally published at: https://blog.xojo.com/2025/10/08/how-to-create-a-custom-button-control-in-xojo-part-5-adding-text-alignment/
In our previous installment, we successfully wired up keyboard focus to our custom DesktopCanvas subclass, making it fully accessible and user-friendly. Now, we’re going to tackle another key feature: customizable text alignment. By the end of this tutorial, you’ll be able to set the button’s text to align left, center, or right, and we’ll introduce a…
2 Likes