Control set, the sequel

Finally, I did managed to create a set of pseudo-buttons :

  1. I sub-classed a canvas and add to it some properties like chosen,caption,etc
  2. I created a bunch of them in the view with names button1,button2,button3,etc
  3. I created an array of type my new canvas
  4. In the open event of the view, I append each of my canvas to the array
  5. Et voil !

Now, I can use bouton(1).caption = “Trfle” the same as bouton1.caption = “Trfle”