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 » LineEdit, EditFields, DocEdit » EditString and QTF
Re: EditString and QTF [message #23580 is a reply to message #23534] Mon, 02 November 2009 11:24 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Didier wrote on Wed, 28 October 2009 16:38

Hi,

I wan't to do a ctrl that colors the characters following some defined rule.
I plan to use it in an Import Conflict Solver Dialog to display where exactly the differences are.

I used a Convert based class with overloaded Format() method to return QTF formated code string ... and EditString displays the QTF without processing it.

Is there a way to achieve such behavior ?? or some RichEditString ctrl maybe ?




The main question is whether you want to allow the user to edit the content.

If no, simple Label will do, just add '\1' before the text (this will make Label to understand the content as QTF).

If yes, the widget you are looking for is RichEdit. You can customize it to look pretty EditString like... (but.. will the use be able to change colors of text? if yes, you will need some sort of menu or toolbar anyway, right?)

Mirek
 
Read Message
Read Message
Read Message
Previous Topic: WithDropChoice<Edit...> does not support Tip()
Next Topic: What is the best way to create a mask in a editfield.
Goto Forum:
  


Current Time: Fri Apr 26 06:17:35 CEST 2024

Total time taken to generate the page: 0.04729 seconds