THIS problem
Posted: Mon Aug 23, 2004 12:05 pm
Hello,
I am dealing with a program with a GUI in C++. I create a panel with different buttons in one class (#1) and define its functionality (open applications) in another class (#2) (I read them from a file and enter the application each button has to open). The problem is that I load the information in class#2 and when I click on a button, it's the 'this' of class#1 which handles the steps and thus all the information of the button is lost!!! How can I have the 'this' of the class#2 when I click on the buttons which were created in class#1???? (I gave ids to each button in #1 and used enum and event declaration in #2)
I know it is confusing..you can ask for more details!
Thx
moons :-\
I am dealing with a program with a GUI in C++. I create a panel with different buttons in one class (#1) and define its functionality (open applications) in another class (#2) (I read them from a file and enter the application each button has to open). The problem is that I load the information in class#2 and when I click on a button, it's the 'this' of class#1 which handles the steps and thus all the information of the button is lost!!! How can I have the 'this' of the class#2 when I click on the buttons which were created in class#1???? (I gave ids to each button in #1 and used enum and event declaration in #2)
I know it is confusing..you can ask for more details!
Thx
moons :-\