You do not show any code on how you got the icon in the button text. If you used CSBuilder, it has an alignment member. I used the above code I posted on a pure text and it centered the text for me: btn.text="Test"
The designer is great but sometimes when I'm trying out which is the most suitable position and dimensions for the view find it more comfortable to do it with code, especially when the number of views is high