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... » Using QTF the easiest way (specially for Newbies)
Using QTF the easiest way (specially for Newbies) [message #26856] Thu, 03 June 2010 10:36
koldo is currently offline  koldo
Messages: 3356
Registered: August 2008
Senior Veteran
Hello all

Sometimes we need to show rich text but it is not easy to code QTF by hand.

Just the simplest trick is to insert in a Topic++ group a new topic with the text, pictures, tables, ... arranged as you like. To get it you only need this line:

String qtf = GetTopic("topic://MyPackage/MyTopicPP_Group/MyQtfMessage$en-us");		// Change en-us with the used language


If you need to insert variables, you can set fields in the topic like [MyField] and after that do a:

qtf = Replace(qtf, DeQtf("[MyField]"), "My value");


This string is QTF so you can insert it in a Exclamation() a RichTextView or set into a Report.


Best regards
IƱaki
Previous Topic: Spell checking on linux
Next Topic: PDF Export With Chinese Character[SOLVED]
Goto Forum:
  


Current Time: Thu Apr 18 11:23:56 CEST 2024

Total time taken to generate the page: 0.01537 seconds