Include a dialog twice
-
That I understood.
My question was rather: how did you implement it ?
Is it really located in "keymapping.h" ?
Is it in a namespace ? -
That I understood.
My question was rather: how did you implement it ?
Is it really located in "keymapping.h" ?
Is it in a namespace ? -
@Sucharek said in Include a dialog twice:
keyColor
Do oyu include this header file inside keymapping.h ? If so you've a circular include problem -> google for 'forward declaration' and remove the circular include with the help of this.
-
@Sucharek said in Include a dialog twice:
keyColor
Do oyu include this header file inside keymapping.h ? If so you've a circular include problem -> google for 'forward declaration' and remove the circular include with the help of this.
Hi @Christian-Ehrlicher, yes I had it included in both dialogs. When I removed it in keymapping.h, I could include the in the other class, so thanks, but I have another problem, which was actually the first one I had.
So everytime I'm opening the dialog, I check for differences in some variables from the keymapping.h, but when I do, they don't update for some reason. Even when I try to update them in the dialog, the don't. -
Hi @Christian-Ehrlicher, yes I had it included in both dialogs. When I removed it in keymapping.h, I could include the in the other class, so thanks, but I have another problem, which was actually the first one I had.
So everytime I'm opening the dialog, I check for differences in some variables from the keymapping.h, but when I do, they don't update for some reason. Even when I try to update them in the dialog, the don't.@Sucharek said in Include a dialog twice:
So everytime I'm opening the dialog, I check for differences in some variables from the keymapping.h, but when I do, they don't update for some reason. Even when I try to update them in the dialog, the don't.
Do you really think anyone can answer from this description?
-
@Sucharek said in Include a dialog twice:
So everytime I'm opening the dialog, I check for differences in some variables from the keymapping.h, but when I do, they don't update for some reason. Even when I try to update them in the dialog, the don't.
Do you really think anyone can answer from this description?
Hi @JonB, sorry for doing a bad description. Here's a better one:
Everytime I execute a dialog, I have a void that sets text for buttons and gets the text from keymapping.h, but when I try to get the variables after I change some of them, they don't update. For example, I have a variable called X. I execute the keymapping dialog, and change it. Then I go to the dialog where I want to get the variable, but when I try to update it, it stays the same. -
Hi @JonB, sorry for doing a bad description. Here's a better one:
Everytime I execute a dialog, I have a void that sets text for buttons and gets the text from keymapping.h, but when I try to get the variables after I change some of them, they don't update. For example, I have a variable called X. I execute the keymapping dialog, and change it. Then I go to the dialog where I want to get the variable, but when I try to update it, it stays the same. -
Hi @JonB, sorry for doing a bad description. Here's a better one:
Everytime I execute a dialog, I have a void that sets text for buttons and gets the text from keymapping.h, but when I try to get the variables after I change some of them, they don't update. For example, I have a variable called X. I execute the keymapping dialog, and change it. Then I go to the dialog where I want to get the variable, but when I try to update it, it stays the same.@Sucharek said in Include a dialog twice:
Hi @JonB, sorry for doing a bad description. Here's a better one:
Everytime I execute a dialog, I have a void that sets text for buttons and gets the text from keymapping.h, but when I try to get the variables after I change some of them, they don't update. For example, I have a variable called X. I execute the keymapping dialog, and change it. Then I go to the dialog where I want to get the variable, but when I try to update it, it stays the same.please keep in mind, your 2 dialogs are 2 different instances, even though they share a base class, they are completely separated. That means changing stuff in the base class from inside one dialog will not ever effect stuff in the base class of the other dialog, when your program is running.
-
@Sucharek said in Include a dialog twice:
Hi @JonB, sorry for doing a bad description. Here's a better one:
Everytime I execute a dialog, I have a void that sets text for buttons and gets the text from keymapping.h, but when I try to get the variables after I change some of them, they don't update. For example, I have a variable called X. I execute the keymapping dialog, and change it. Then I go to the dialog where I want to get the variable, but when I try to update it, it stays the same.please keep in mind, your 2 dialogs are 2 different instances, even though they share a base class, they are completely separated. That means changing stuff in the base class from inside one dialog will not ever effect stuff in the base class of the other dialog, when your program is running.