Home » U++ Library support » RichText,QTF,RTF... » QTF text alignment in tables
Re: QTF text alignment in tables [message #28212 is a reply to message #26803] |
Mon, 23 August 2010 14:10 |
mdelfede
Messages: 1307 Registered: September 2007
|
Ultimate Contributor |
|
|
BTW, I've got an handy QTFStr class which encapsulates some of QTF behaviour, in particular for tables.
I made it because is *very* easy on qtf to make mistakes with some spaces or other stuffs, in particular in tables.
The class contains some generic stuffs and a part relative to my app, but that one is easy to strip.
An example of code using QTFStr class :
QTFStr qtf;
qtf.StartTable(1, 5, 5, 7, 8).TableTitle("I'm a table");
qtf
("")("second col")("third col")("fourth col")("fifth col")
("first col").AlignCenter()("center on table remainder", 3)
.AlignLeft().TableSubTitle("this is bold and spans over all columns")
;
qtf.EndTable();
It doesn't support tables in tables, but it's trivial to add (I'll do it when I'll need it).
If somebody is interested on it, I'll be happy to post the code somewhere.
Ciao
Max
|
|
|
Goto Forum:
Current Time: Thu May 09 17:34:13 CEST 2024
Total time taken to generate the page: 0.01840 seconds
|