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 » U++ Widgets - General questions or Mixed problems » RichTextCtrl - cannot clear selected text. [Fixed] (Need a new method or is there a way to do it I'm missing?)
Re: RichTextCtrl - cannot clear selected text. [message #58388 is a reply to message #58385] Mon, 16 May 2022 11:15 Go to previous messageGo to previous message
jjacksonRIAB is currently offline  jjacksonRIAB
Messages: 221
Registered: June 2011
Experienced Member
The section of code I could use is contained in Clear()

void  RichTextView::Clear()
{
	sb = 0;
	text.Clear();
	SetSb();
	Refresh();
	anchor = cursor = sell = selh = 0;
}


Just

anchor = cursor = sell = selh = 0;


Is enough to clear the selected text but all of this stuff is inaccessible and private.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: CtrlImg::Home() Icons
Next Topic: [FEATURE] Common horizontal scroll on Shift+mouse wheel
Goto Forum:
  


Current Time: Thu May 16 16:53:42 CEST 2024

Total time taken to generate the page: 0.02479 seconds