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 » Community » Newbie corner » text box action with enter key
Re: text box action with enter key [message #25132 is a reply to message #25128] Fri, 12 February 2010 01:00 Go to previous messageGo to previous message
nlneilson is currently offline  nlneilson
Messages: 644
Registered: January 2010
Location: U.S. California. Mojave &...
Contributor
I had to search and tinker a bit but this works good.

    bool MyApp::Key(dword key, int count){
	if (key == K_RETURN && Point1.HasFocus()) {
	    Point2<<="OK";
//          Point1Action();
            return true;
    	}
    }

Now I can just remove Point2<<="OK"; and tie my "...Action()"/s in directly rather than just depend on clicking menu items.

GREAT HELP!!

Thanks
 
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: Clipped frame
Next Topic: is there any way to embed a browser window in a U++ window or view the html direclty?
Goto Forum:
  


Current Time: Sat Jun 01 22:04:53 CEST 2024

Total time taken to generate the page: 0.02485 seconds