What WinX calls a button is technically a push button. It is a box, with a text or image label, that when clicked triggers the onCommand callback. When a button is clicked, the onCommand callback is invoked with $$BN_CLICKED as the code parameter and the id of the button as the id parameter.