How to assign button event

  1. define the button in the “published” part (you need the unit CastleControls in the uses section)
  2. define the click procedure in the “private” part

  1. in the procedure start you have to define the click event

  1. write the click procedure (what should happen when you click the button)

grafik

2 Likes