i want to be able to create dynamic buttons.
so ive used the code :
TButton* Btn = new TButton(this);
my first question is:
how do i assign a function to the dynamic button?!
my second question is how can i put the code into a loop as to be able to create multiple buttons frmo the one "add" button? the new method dosnt allow for a variable name to be used as the name for the object that i want to create!?
eg.
void abuttonfucntion()
{
static numvar;
char button Btn + numvar;
TButton* button = new TButton(this);
...button position/style code...
}
thanks for any help! =)
OnIIcE