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 » RichText,QTF,RTF... » how to solve WhenEnter event to RichEdit
how to solve WhenEnter event to RichEdit [message #54457] Sat, 25 July 2020 18:50 Go to next message
akebee is currently offline  akebee
Messages: 90
Registered: August 2011
Location: China
Member
RichEdit edt;

i want get the content in the edt when press Enter key.
but the RichEdit do not have WhenEnter event.
how to solve?
Re: how to solve WhenEnter event to RichEdit [message #54464 is a reply to message #54457] Sun, 26 July 2020 09:24 Go to previous message
akebee is currently offline  akebee
Messages: 90
Registered: August 2011
Location: China
Member
solved
Callback whenenter;

	virtual bool Key(dword key, int count)
	{
		if(key == K_ENTER)
		{
			whenenter();
			return  true;
		}
		return RichEdit::Key(key,count);
	}
Previous Topic: How do I detect if the data in a RichEdit was changed by user?
Next Topic: how can i get the image in the RichText?
Goto Forum:
  


Current Time: Tue Oct 20 16:07:16 CEST 2020

Total time taken to generate the page: 0.01920 seconds