trichview.com

trichview.support




Problem copying the contents of an RVEdit and preserving the appearance.


Return to index


Author

Message

Chris House

Posted: 01/31/2005 1:12:19


I have a RichViewEdit with the following rvStyle properties:


rvStyle1.ParaStyles[0]

   Alignment = rvaLeft


rvStyle1.ParaStyles[0],Tabs[0]

   Align = rvtaRight

   Leader = .

   Position = 400


Decimal is not listed as a choice under Tabs[0].Align, but the above

settings give me the effect of "decimal tab with dotted leader", for

example:


   Alternate bid for shingled roof if applicable:

   40-year shingles................$9,585.00

   50-year shingles...............$10,835.00


But, when I use the code below, my "decimal" tab and leaders are

replaced with a standard tab:


var

   s : string;

begin

   rveProposalText.SelectAll;

   s := rveProposalText.GetSelText;

   ShowMessage(s);

   // decimal tab and leaders are replaced with standard tab


End;


Output now looks like this:


   Alternate bid for shingled roof if applicable:

   40-year shingles        $9,585.00

   50-year shingles        $10,835.00



I also tried:


     // Copy method, not working yet: How do you paste into a string?

     rveProposalText.SelectAll;

     rveProposalText.Copy;



So,


1. I need to capture / copy the contents of a Rich ViewEdit into a

string variable in a way that preserves the appearance of the

right-aligned tab and dotted leaders. A "literal capture", rather than

referring to tabs and leaders.


2. In the Position property of Tabs, what is the unit of measurement?

Can this be changed to inches?



Thanks in advance for your help,


Chris House





Powered by ABC Amber Outlook Express Converter