Search found 119 matches

by martindholmes
Fri May 28, 2010 3:56 pm
Forum: Support
Topic: Merging data from one TRichViewEdit into another
Replies: 19
Views: 66641

I understand your position. It seemed unintuitive to me, but it's logical in its own way.

Cheers,
Martin
by martindholmes
Wed May 26, 2010 4:38 pm
Forum: Support
Topic: Merging data from one TRichViewEdit into another
Replies: 19
Views: 66641

That doesn't really make sense to me. NextStyleNo is 0, but the style of the inserted text is not 0; it's whatever style number it acquires when it's been merged into the rveTwo's RVStyle. In other words, 0 should be the first text style in rvsTwo, not the first style in rvsOne. So: rvsOne text ...
by martindholmes
Wed May 26, 2010 12:53 pm
Forum: Support
Topic: Merging data from one TRichViewEdit into another
Replies: 19
Views: 66641

I've posted a test project here: http://www.mholmes.com/test/test_rve.zip If you type something in the first box, and something in the second box, then press the Paste button, the content of the first box will be transferred to the second. If you then press Return at the end of the second box and ...
by martindholmes
Tue May 25, 2010 8:23 pm
Forum: Support
Topic: Merging data from one TRichViewEdit into another
Replies: 19
Views: 66641

I'll have to write a little demo app -- it's all embedded in a full-scale application at the moment.

Cheers,
Martin
by martindholmes
Tue May 25, 2010 12:52 pm
Forum: Support
Topic: Merging data from one TRichViewEdit into another
Replies: 19
Views: 66641

I have NextStyleNo and NextParaNo set to 0, so that the default style for the target RVE should be preserved, but that doesn't seem to make any difference.

Cheers,
Martin
by martindholmes
Tue May 25, 2010 12:24 pm
Forum: Support
Topic: Merging data from one TRichViewEdit into another
Replies: 19
Views: 66641

rvfo_UseStyleNames is False for both the source and the target RVE. RVFParaStylesReadMode and RVFTextStylesReadMode are both set to rvf_sInsertMerge. This is the behaviour I see: The default text style for the target RVE is Arial 10pt black. The default text style for the source RVE is Arial 10pt ...
by martindholmes
Sun May 23, 2010 12:36 am
Forum: Support
Topic: Merging data from one TRichViewEdit into another
Replies: 19
Views: 66641

rvf_sInsertMerge is what I was using, but it's having an odd effect: it seems to replace the default style in the target RVE. Where styles have the same name in the two RVStyles, the style in the target would be overwritten by the style with the same name in the source. That's why I started looking ...
by martindholmes
Sat May 22, 2010 5:02 pm
Forum: Support
Topic: Merging data from one TRichViewEdit into another
Replies: 19
Views: 66641

But that brings me back to my original problem: I can't get the behaviour I need when merging styles. Is there a way to use InsertRVFFromStreamEd with so that it behaves like "rvrsAddIfNeeded " for RTF?

Cheers,
Martin
by martindholmes
Thu May 20, 2010 7:11 pm
Forum: Support
Topic: Merging data from one TRichViewEdit into another
Replies: 19
Views: 66641

I don't actually want to add new text at the end; I need to add it at the cursor position.

Cheers,
Martin
by martindholmes
Thu May 20, 2010 12:53 pm
Forum: Support
Topic: Merging data from one TRichViewEdit into another
Replies: 19
Views: 66641

When I do that, nothing is pasted. This line works: ufrmComments.rveFeedback.InsertRVFFromStreamEd(AStream); But this line fails: ufrmComments.rveFeedback.InsertRVFFromStream(AStream, ufrmComments.rveFeedback.TopLevelEditor.CurItemNo); This is what populates the stream: rveSnippets.SaveRVFToStream ...
by martindholmes
Wed May 19, 2010 9:28 pm
Forum: Support
Topic: Merging data from one TRichViewEdit into another
Replies: 19
Views: 66641

Merging data from one TRichViewEdit into another

Hi there, I'm having a problem figuring out how best to handle the merging of styles. I have two TRichViewEdit controls, each with a different default set of styles. I need to copy the contents of one into a location in the other. I'm doing this with LoadRVFFromStreamEd My problem is with how to ...
by martindholmes
Tue Oct 06, 2009 12:35 pm
Forum: Support
Topic: Updated TRichView, new TRVAnsiString parameters
Replies: 3
Views: 15938

Hi there, I'm not sure what to do in a situation like GetPictureInfo, though: procedure GetPictureInfo(ItemNo: Integer; var AName: TRVAnsiString; var Agr: TGraphic; var AVAlign: TRVVAlign; var ATag: Integer); Passing a string in as AName causes an error; should I be changing my parameter to a ...
by martindholmes
Mon Oct 05, 2009 12:48 pm
Forum: Support
Topic: Updated TRichView, new TRVAnsiString parameters
Replies: 3
Views: 15938

Updated TRichView, new TRVAnsiString parameters

Hi there, I've just updated my TRichView to the latest version in Delphi 2005, and I find that a lot of my calls to TRichView functions, passing string parameters, result in errors because the RichView functions are now expecting TRVAnsiString parameters. Should I just change all my string ...
by martindholmes
Wed Mar 11, 2009 11:32 am
Forum: Support
Topic: Background colour (with \highlight) not importing from RTF?
Replies: 3
Views: 17489

Thanks Sergey!
by martindholmes
Tue Mar 10, 2009 12:15 pm
Forum: Support
Topic: Background colour (with \highlight) not importing from RTF?
Replies: 3
Views: 17489

Background colour (with \highlight) not importing from RTF?

Hi there, I've been sent an RTF file produced by Word, which shows yellow highllighting on some strings of text. This shows up OK in WordPad, but fails to import into TRichView (I've tried with my app, and with the ActionTest demo). The highlighting is lost. In this discussion: http://www.trichview ...