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 #25091 is a reply to message #25090] Wed, 10 February 2010 04:31 Go to previous messageGo to previous message
fudadmin is currently offline  fudadmin
Messages: 1321
Registered: November 2005
Location: Kaunas, Lithuania
Ultimate Contributor
Administrator
I was unhappy, too. Smile So,
class LaunchField : public EditField
{
public:
	virtual	bool Key(dword key, int count);
	Callback WhenEnter;
	typedef LaunchField CLASSNAME;
	LaunchField() {}

};

bool LaunchField::Key(dword key, int count)
{
	if(key == K_ENTER) {
		WhenEnter();
		return true;
	}
	return EditField::Key(key, count);
}


I hope you will know how to use WhenEnter? If not, ask.

Best regards, Aris
 
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: Mon Jun 17 17:20:49 CEST 2024

Total time taken to generate the page: 0.01862 seconds