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 » How to remove the button [X] that closes the window?
Re: How to remove the button [X] that closes the window? [message #18441 is a reply to message #444] Wed, 01 October 2008 05:28 Go to previous messageGo to previous message
sevenjay is currently offline  sevenjay
Messages: 30
Registered: October 2008
Location: Taiwan
Member
It can be used like this
class example : public WithexampleLayout<TopWindow> {
public:
	ex();
	void Close();
};

void example::Close()
{
	PromptOK("Please Login");
}


and the application can not be closed.

But, more one question is how to close it? Confused
Use
    delete this;

is the method safe?

[Updated on: Wed, 01 October 2008 06:50]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How do I change main window and dialog title font size
Next Topic: TopWindow when Close override show exception unduly
Goto Forum:
  


Current Time: Fri Aug 22 23:46:28 CEST 2025

Total time taken to generate the page: 0.05981 seconds