Create event for run-time button?
Just learned how to make controls at runtime (my program contains about 12 or more, I am using 2 string array to make pairs of TLabel and TControl - usually a TButton, or TSpeedButton) and now I'm stuck: how do I make all those buttons do somenthing?
I need to create the event that makes the buttons useful.
Could event be created at run-time, same like buttons?
I create the buttons in a for(;;) loop (this are the arrays for), because the in the final project I might have different buttons that I'm using now.
I am using BCBuilder 5.3 (on Windows 98).
Thanks in advance
Event for an run time button
Thanks for using your time with this!
So: I have created a button at run time, looks nice, shows the caption I need, colors, position, and all others, but when I click it nothing happens! I don't know how to create an event (at run time or not) like OnClick, which would make the button do something when I click on it.
BCB 5 or BCBuilder is Borland C++ Builder 5.0 (actually, mine is 5.3), an visual C++ development interface.
I am not an natural born english speaker, so you might have difficulties understanding me, please say so. I am doing my best.