To add insult to your wound the code I posted works. You’ll notice, however, that the button does not appear in the hierarchy in the left panel.