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
EditString and QTF [message #23534] Wed, 28 October 2009 21:38 Go to next message
Didier is currently offline  Didier
Messages: 680
Registered: November 2008
Location: France
Contributor
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 ?

Re: EditString and QTF [message #23580 is a reply to message #23534] Mon, 02 November 2009 11:24 Go to previous messageGo to next 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
Re: EditString and QTF [message #23601 is a reply to message #23580] Tue, 03 November 2009 22:55 Go to previous message
Didier is currently offline  Didier
Messages: 680
Registered: November 2008
Location: France
Contributor
Hi Mirek,

I was already looking at RichEdit but I'll rather use the simple label with '\1' trick for the moment.

Thanks for you're reply
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 Mar 29 16:41:16 CET 2024

Total time taken to generate the page: 0.01322 seconds