To the best of my knowledge, it canβt be done. There are, however, workarounds. You could create several buttons in IB and position them beyond the bounds of the window (or simply make them invisible) and, when necessary, move the position/visibility of the buttons as needed. You can change how a button behaves easily using if-then-else statements in the on clicked handler and you can also easily change the title of the buttons as needed as well. I wish there were a more elegant way of doing this but Iβm fairly certain there isnβt.
If you do come up with something better, please share.
I am under development of a small game which will have three principal screens, each one having an increasing number of buttons.
I can completely carry out the three windows manually, but I wanted to consider another working method by the dynamic creation of the buttons after having changed the dimension of the window (easy to make with the code), unfortunately all my attempts remained without success.
I sought documentation on Internet, but I did not find anything of interesting.
I a question however, in your opinion, is this raises possible to do that or not?
Lastly, I had also considered your proposal Jon, but, the operating mode that I use for this application implies an exact number of buttons in each window, it is thus not possible to create all the buttons and to display only the necessary ones.
In any case, me also I am really interested by any information being able to a little better clarify these techniques.
I never yet used this type of object, I does not know their possibilities. I will explore a little in this direction, while hoping to find a method which is appropriate better so that I want to make.