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 #58394 is a reply to message #58391] Mon, 16 May 2022 13:45 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14291
Registered: November 2005
Ultimate Member
Klugier wrote on Mon, 16 May 2022 12:28
Hello,

It seems that the fix introduce regression or maybe it behaves like this before. When you select text for example in TheIDE help and then right click on it. The selection is removed and copy text operation doesn't make much sense. Could you verify this?

Klugier


You are right, clearing selection in LostFocus is incosistent with behaviour of other widgets.

Back to drawing board: Reverted, RichTextView now has WhenLeftClick and ClearSelection. So with 2 RichTextCtrls it could look like this:

	a <<= "This is some text";
	b <<= "This is another text";
	
	a.WhenLeftClick = [=] { b.ClearSelection(); };
	b.WhenLeftClick = [=] { a.ClearSelection(); };


Mirek
 
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: Mon Sep 14 10:38:56 GMT+2 2026

Total time taken to generate the page: 0.01226 seconds