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 #56189 is a reply to message #56181] Fri, 05 February 2021 03:48 Go to previous messageGo to previous message
BetoValle is currently offline  BetoValle
Messages: 203
Registered: September 2020
Location: Brasil Valinhos SP
Experienced Member
Hi, Thanks

i create this solution , after understant about ...


     void Close() override {
        delete this;     // now it works because it was instantiated as a pointer!!!
     }

GUI_APP_MAIN
{
	SMain* se;
	se = (new SMain);
	se->OpenMain();
	se->se.Run(); //Run when associed a especific window or "Ctrl::EventLoop()" when not associed a window 
                      //   and while any window open
 	
} 

 

 
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 May 04 09:56:45 CEST 2024

Total time taken to generate the page: 0.02501 seconds