Original Post
I''m workin on my GUI, and its working great, but now I have a problem.
Each type of control is a class derived from a base class. All the things like LeftMouseButtonDown() and junk like that (messages, i guess you could say) are virtual.
Now, how do I make it so that each button can do something different? Like, when I click on a QUIT button it quits, but a different button would do something different?
Would I have some other .cpp file containing all the different functions each button would have, then have some kind of function pointer telling each button which function to call once its pressed or whatever? How would I keep track of all those function pointers?