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 #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: 13980
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: Fri May 17 01:43:31 CEST 2024

Total time taken to generate the page: 0.02220 seconds