U++ framework
Do not panic. Ask here before giving up.

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: 227
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: Wed Apr 29 10:29:23 GMT+2 2026

Total time taken to generate the page: 0.01288 seconds