summaryrefslogtreecommitdiff
path: root/docview
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graeme@mastermaths.co.za>2009-11-27 17:01:36 +0200
committerGraeme Geldenhuys <graeme@mastermaths.co.za>2009-11-27 17:01:36 +0200
commit53c66309b0c24285a875aba40f8e8ac32f72f52e (patch)
treec696cc4627bd47f0b7d0e51d8dea769cff19d78e /docview
parent5bc17c8b5cb057b837c16de6532a8a138c14a076 (diff)
downloadfpGUI-53c66309b0c24285a875aba40f8e8ac32f72f52e.tar.xz
Quick summary documentation for RichTextView.
Diffstat (limited to 'docview')
-rw-r--r--docview/components/richtext/RichTextView.txt60
1 files changed, 60 insertions, 0 deletions
diff --git a/docview/components/richtext/RichTextView.txt b/docview/components/richtext/RichTextView.txt
new file mode 100644
index 00000000..df0ed03e
--- /dev/null
+++ b/docview/components/richtext/RichTextView.txt
@@ -0,0 +1,60 @@
+TRichTextView component
+for fpGUI Toolkit
+
+Summary
+-------
+
+This component displays 'rich' text, with various fonts, colors,
+styles and alignment.
+
+The major features are:
+ Fast, accurate drawing of text
+
+Features to come...
+ Selection and copy
+ Built-in default popup menu
+
+
+Using the component
+-------------------
+
+Put a component on your form. Adjust the properties as you see fit.
+At runtime, load the text into the control using AddText, AddParagraph,
+and Clear.
+
+Formatting syntax
+
+This is a HTML-like set of tags. But note that tag pairs don't have to
+match up.
+
+ <b> </b> bold on, off
+ <u> </u> underline on, off
+ <i> </i> italic on, off
+ <h1> <h2> <h3> heading 1-3, set with Heading1Font etc
+ </h> normal text
+ <tt> </tt> fixed font
+ <red> etc colors
+ <left> left alignment (word wrap)
+ <unaligned> no right margin
+ <center> centered
+ <right> right alignment
+ <justify> full justification (not implemented)
+ <defaultalign> default alignment
+ <margin x> set left margin to x pixels
+ <link linktext> </link>
+ start, end link.
+ The OnClickLink and OnOverLink events are called with linktext
+ <image x> Display image x from associated TImageList
+
+
+Example
+
+RichText.AddParagraph( '<h1>This is a big heading</h>' );
+RichText.AddParagraph( 'Here is some <b>bold</b> text' );
+
+
+Problems/limitations
+--------------------
+Yes, there probably are some. :)
+
+