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... » Set RichEdit ctrl readonly but still be able to scroll and select/copy text
Set RichEdit ctrl readonly but still be able to scroll and select/copy text [message #39969] Mon, 20 May 2013 11:11 Go to next message
MatthiasG is currently offline  MatthiasG
Messages: 27
Registered: January 2008
Location: Germany
Promising Member
Is there a way to set a RichEdit control readonly, while still let the user scroll and select/copy text from it?

Matthias
Re: Set RichEdit ctrl readonly but still be able to scroll and select/copy text [message #39970 is a reply to message #39969] Mon, 20 May 2013 21:47 Go to previous messageGo to next message
BioBytes is currently offline  BioBytes
Messages: 307
Registered: October 2008
Location: France
Senior Member
Hi Matthias,

You could try RichTextView object. A code snippet can be seen in RawRichText example in reference assembly shipped with Upp installation.

In this sample, some richtext can be selected using mouse and no modification can be done.

I do not know if this is what you expect but you should have a glance to the code. Nod

Regards

Biobytes
Re: Set RichEdit ctrl readonly but still be able to scroll and select/copy text [message #40022 is a reply to message #39969] Sun, 26 May 2013 19:37 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
SetReadOnly...

Anyway, while ScrollBar worked, there was a bug with copy (it was disabled). Should be now OK.

Mirek
Re: Set RichEdit ctrl readonly but still be able to scroll and select/copy text [message #40038 is a reply to message #40022] Mon, 27 May 2013 20:27 Go to previous message
MatthiasG is currently offline  MatthiasG
Messages: 27
Registered: January 2008
Location: Germany
Promising Member
Thanks Mirek, that did the job!

Matthias
Previous Topic: [Minor bug report & patch] RichTextView should use native ibeam icon.
Next Topic: Problem with Report preview
Goto Forum:
  


Current Time: Sat Apr 20 12:12:07 CEST 2024

Total time taken to generate the page: 0.04482 seconds