Variables in my own dialog box
-
Hi! I've done a new Dialog Box in my application that appears when the user clicks a button in the main window. I need to know if the user has clicked one button in that Dialog box but I don't know how could I check this. I can check edit boxes or Radio Buttons if I see Dialog Box's int variables values from my main window code but I don't know what could I use for checking if buttons have been clicked or not. May I use a control variable or what could I do? Thank you in advance!
-
Hi! I've done a new Dialog Box in my application that appears when the user clicks a button in the main window. I need to know if the user has clicked one button in that Dialog box but I don't know how could I check this. I can check edit boxes or Radio Buttons if I see Dialog Box's int variables values from my main window code but I don't know what could I use for checking if buttons have been clicked or not. May I use a control variable or what could I do? Thank you in advance!
All u need to do is create a member variable a bool type and set it true when the user has clicked on the desired button. Now that variable button has the state. You can either pass it as a parameter to the child window or read the value from the child window. Hope this helps.
"When death smiles at you, only thing you can do is smile back at it" - Russel Crowe (Gladiator)
-
All u need to do is create a member variable a bool type and set it true when the user has clicked on the desired button. Now that variable button has the state. You can either pass it as a parameter to the child window or read the value from the child window. Hope this helps.
"When death smiles at you, only thing you can do is smile back at it" - Russel Crowe (Gladiator)