Announcement

Collapse
No announcement yet.

Helping in RichText?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Helping in RichText?

    Can someone give me an example of how to put text in the RichText1.SetText

    I want to introduce a complete text by means of writing... the only way I have found it is by importing a document in RTF format. But what I need is to learn how to write the different text modes in the RichText Where it includes line breaks and letter Colors and among other font formats such as increasing or decreasing its size but all within the same code
    Click image for larger version

Name:	image.png
Views:	119
Size:	10.8 KB
ID:	310246​​

  • #2
    hello ? hay alguien ?

    Comment


    • #4
      This is a pretty basic RTF file which is just text with formatting controls.

      PHP Code:
      {\rtf1\mac\deff2 {\fonttbl{\f0\fswiss Chicago;}{\f2\froman New York;}{\f3\fswiss Geneva;}{\f4\fmodern Monaco;}{\f11\fnil Cairo;}{\f13\fnil Zapf Dingbats;}{\f16\fnil Palatino;}{\f18\fnil Zapf Chancery;}{\f20\froman Times;}{\f21\fswiss Helvetica;}
      {
      \f22\fmodern Courier;}{\f23\ftech Symbol;}{\f24\fnil Mobile;}{\f100\fnil FoxFont;}{\f107\fnil MathMeteor;}{\f164\fnil Futura;}{\f1024\fnil American Heritage;}{\f2001\fnil Arial;}{\f2005\fnil Courier New;}{\f2010\fnil Times New Roman;}
      {
      \f2011\fnil Wingdings;}{\f2515\fnil MT Extra;}{\f3409\fnil FoxPrint;}{\f11132\fnil InsigniaLQmono;}{\f11133\fnil InsigniaLQprop;}{\f14974\fnil LB Helvetica Black;}{\f14976\fnil L Helvetica Light;}}{\colortbl\red0\green0\blue0;\red0\green0blue255;
      \red0\green255\blue255;\red0\green255\blue0;\red25 5\green0\blue255;\red255\green0\blue0;\red255\gree n255\blue0;\red255\green255\blue255;}{\stylesheet\f4\fs18 \sbasedon222\snext0 Normal;}}{\info{\title samplepostscript.msw}{\author
      Computer Science Department
      }}\widowctrl\ftnbj \sectd \sbknone\linemod0\linex0\cols1\endnhere \pard\plain \qc \f4\fs18 {\plain \b\f21 Sample Rich Text Format Document\par
      }\pard {\plain \f20 \par
      }\pard \ri-80\sl-720\keep\keepn\absw570 {\caps\f20\fs92\dn6 T}{\plain \f20 \par
      }\pard \qj {\plain \f20 his is a sample rich text format (RTF), documentThis document was created using Microsoft Word and then printing the document to a RTF fileIt illustrates the very basic text formatting effects that can be achieved using RTF.
      \par
      \par
      }\pard \qj\li1440\ri1440\box\brdrs \shading1000 {\plain \f20 RTF }{\plain \b\f20 contains codes for producing advanced editing effectsSuch as this indentedboxedgrayed backgroundentirely boldfaced paragraph.\par
      }\pard \qj {\plain \f20 \par
      Microsoft Word developed RTF 
      for document transportability and gives a user access to the complete set of the effects that can be achieved using RTF\par
      }}​ 
      The editor that is associated with the RTF editor can manage this in through the simple text editor in the RTF object attributes.
      Change font? Highlight the text to change and select the font
      Change colour? Highlight the text to change and select the colour

      It isn't a very featured editor though, I always generate the text content as files because it is usually easier to modify them later by slotting in a modified or different content.
      You just set the file to load either at the page loading or some other convenient point. If you get used to using it this way then it does add some advantages as you can use a drop down or buttons to display other files in the same display.

      Go easy with the fonts, try to use the ones normally found on PC's or the display might not end up being what you want on someone elses PC.

      Comment


      • #5
        Here is my editor project - still working on
        Click image for larger version

Name:	RTF_Editor splash.png
Views:	73
Size:	332.4 KB
ID:	310260 Click image for larger version

Name:	RTF Editor.png
Views:	77
Size:	14.9 KB
ID:	310258 Click image for larger version

Name:	RTF Editor2.png
Views:	70
Size:	33.5 KB
ID:	310259

        Comment


        • #6
          RichText Demo Editor plus plugs

          Comment

          Working...
          X
          😀
          🥰
          🤢
          😎
          😡
          👍
          👎