- define the button in the “published” part (you need the unit CastleControls in the uses section)
- define the click procedure in the “private” part
- in the procedure start you have to define the click event
- write the click procedure (what should happen when you click the button)