locked
How to use oleRTL in VFP9 RRS feed

  • Question

  • Hi,

    I would like to create function which would start a numbered or ordered list in my RTLEdit box

    What I now sofar:

    To achieve a numbered list with oleRTF you should add code to the content

    A text could look like this:

    {\rtf1\ansi\ansicpg1252\deff0{\fonttbl{\f0\fnil\fcharset0 Arial;}}
    \viewkind4\uc1\pard\lang1043\fs18 This is record number 4 .
    \par There is a quick brown fox jumping in the woods. The \b Fox\b0 is a mother fox with 3 young foxes, Papa fox was shot by the royal hunters, they will celebrate a fine hunting feast. Hunters where also looking for a wild turkey to make het hunting dinner for X-mas a great succes, unfortunately they could not find one. And for the rest this piece of text is just for testing an to show hwat is the effect of the different alignment commands.
    \par Skip to see the effect of the other buttons.
    \par }

    now if you insert the Numbered list the text would look like this:

    {\rtf1\ansi\ansicpg1252\deff0{\fonttbl{\f0\fnil\fcharset0 Arial;}}
    \viewkind4\uc1\pard\fi-360\li480\sa50\sl0\slmult1\qj\lang1043\fs18
    \par This is record number 9 DistributedThis is record number 9 Distributed
    \par
    \par
    \par \pard{\pntext\f0 1.\tab}{\*\pn\pnlvlbody\pnf0\pnindent0\pnstart1\pndec{\pntxta.}}
    \fi-360\li480\sa50\sl0\slmult1 The first line
    \par {\pntext\f0 2.\tab}The second line
    \par {\pntext\f0 3.\tab}The third line
    \par \pard\li120\sa50\sl0\slmult1
    \par \pard There is a quick brown fox jumping in the woods. The Fox is a mother fox with 3 young foxes, Papa fox was shot by the royal hunters, they will celebrate a fine hunting feast. Hunters where also looking for a wild turkey to make het hunting dinner for X-mas a great succes, unfortunately they could not find one. And for the rest this piece of text is just for testing an to show hwat is the effect of the different alignment commands.
    \par \tab Skip to see the effect of the other buttons.
    \par
    \par normal text
    \par }

    My question is, how do I code to get the lines

    \par \pard{\pntext\f0 1.\tab}{\*\pn\pnlvlbody\pnf0\pnindent0\pnstart1\pndec{\pntxta.}}
    \fi-360\li480\sa50\sl0\slmult1

    and


    \par \pard\li120\sa50\sl0\slmult1
    \par \pard

    in correct position in the box?

    Koen Piller


    Pensionado, VFP programer

    Wednesday, December 16, 2020 11:04 PM

Answers

  • Koen-P,

    Sorry but you have posted to a forum that deals exclusively with questions/issues about customizing and programming Microsoft Project, a project management application. I suggest you find an appropriate forum here:

    https://docs.microsoft.com/en-us/answers/products/?WT.mc_id=msdnredirect-web-msdn

    John

    Thursday, December 17, 2020 1:40 AM