Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous message
BetoValle is currently offline  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();
   }
 }
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to remove the button [X] that closes the window?
Next Topic: same layout with different dimensions
Goto Forum:
  


Current Time: Sat Aug 23 07:18:07 CEST 2025

Total time taken to generate the page: 0.08625 seconds