2020-02-22 05:38 AM
A message box based on modal window widget with 2 buttons, one is ok, the other is cancel.When any button is clicked, modal window is hide and return the button value to the caller.
Can it be implemente in someway so it can be called like this?
int retValue = MessageBox(...);
Otherwise I have to fill callback fuction into the message box to get return result.
Solved! Go to Solution.
2020-02-24 12:24 AM
Hi, you can't do it like that - At least not in a non-convoluted way (e.g. A modal window might not always have a button, but will open and close based on a signal from the backend).
Callbacks is the way to go.
2020-02-24 12:24 AM
Hi, you can't do it like that - At least not in a non-convoluted way (e.g. A modal window might not always have a button, but will open and close based on a signal from the backend).
Callbacks is the way to go.