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 not closed on Escape
Re: TopWindow not closed on Escape [message #20010 is a reply to message #20009] Mon, 09 February 2009 15:41 Go to previous messageGo to previous message
unodgs is currently offline  unodgs
Messages: 1366
Registered: November 2005
Location: Poland
Ultimate Contributor

Exactely the same way:
struct TopWindowEsc : TopWindow
{
   virtual bool Key(...)
   {
      if(key == K_ESC)
      {
         Close();
         return true;
      }
   }
}

WithPopupLayout<TopWindowEsc> popup;

[Updated on: Mon, 09 February 2009 15:47]

Report message to a moderator

 
Read Message
Read Message
Read Message icon14.gif
Previous Topic: PromptOKCancel error;
Next Topic: Tranparent TopWindow
Goto Forum:
  


Current Time: Sat Apr 27 22:54:06 CEST 2024

Total time taken to generate the page: 1.99591 seconds