Home » U++ Library support » TopWindow&PopUp, TrayIcon » TopWindow when Close override show exception unduly
Re: TopWindow when Close override show exception unduly [message #56190 is a reply to message #56189] |
Fri, 05 February 2021 13:22  |
BetoValle
Messages: 204 Registered: September 2020 Location: Brasil Valinhos SP
|
Experienced Member |
|
|
Hi,
(now I understood with you ) not to "normally" rewrite the method. There is a better "as an" event to do something before closing the window:
"WhenClosed" works even better, since I can incorporate some verification routine into it, and if I want to close the window, then I must call Close ().
WhenClose = [=] { doSomething; };
...
void SMain::doSomething()
{
...
...
if(okGetout){ //and if necessary close
Close();
}
}
|
|
|
Goto Forum:
Current Time: Sat Aug 23 07:18:07 CEST 2025
Total time taken to generate the page: 0.08625 seconds
|