I have a button in a form.
The clicked method:
void clicked() { ; element.TransferLines(); }
TransferLines Method:
void TransferLines() { JournalID = MyClass::TransferAndPostLines(); //Some class i run box::info("Created Journal: " + JournalID); element.close(); // I need to close the form after the user accepts the box::info }
We are having some problems with this code:
1. Sometimes, the box:info is behind the form, so the user never gets the message.
2. During the call to TransferAndPostLines the form is correctly locked, but when the box:info is behind the form as described before, the user can click the button and create a duplicate Journal .
How can I make the box::info modal and always on top so that the form closes as soon as it's accepted and so the user cannot click on the button again?
*This post is locked for comments