Search found 7 matches

by alexro
Sun Apr 09, 2006 10:31 pm
Forum: Support
Topic: separating paragraphs
Replies: 11
Views: 37821

It turned out to be less complicated as I thought initially: procedure TrvActionsResource.txtStyleDrawParaBack(Sender: TRVStyle; Canvas: TCanvas; ParaNo: Integer; ARect: TRect; var DoDefault: Boolean); var I: Integer; Data: TRichViewRVData; begin Data:= TRichViewRVData(Sender.RVData); for I:= 1 to ...
by alexro
Fri Apr 07, 2006 3:12 pm
Forum: Support
Topic: span instead of a hyperlink
Replies: 1
Views: 9473

span instead of a hyperlink

I'm creating a hyperlink through the UI (with Action) and it appears well, but when I save the content using SaveHTMLEx, I see <span class=rvts13>text</span>' in place of hyperlink.

How to make hyperlinks to be saved ?
by alexro
Sun Apr 02, 2006 11:47 am
Forum: Support
Topic: Looping through RVData items -> access violation
Replies: 1
Views: 9809

Looping through RVData items -> access violation

What's wrong with the following: for I:= 0 to RVData.ItemCount - 1 do begin if RVData.GetItemStyle(I) >= 0 then begin Strings.AddObject(RVData.GetItemText(I), RVData.GetItem(I)); end end; So, upon clicking a toolbar button, I'm building a list of strings with pointers to the accompanying RVData ...
by alexro
Sat Apr 01, 2006 9:45 pm
Forum: Support
Topic: separating paragraphs
Replies: 11
Views: 37821

MLefebvre wrote:Few (alternative) suggestions
No 1 is exactly what I want.

But I'm a bit lost: in DrawParaBack ParaNo is always 0, so it cant point to the first paragraph. And if I find the first paragraph looping through RVData.ItemCount/RVData.GetItem, how I get its canvas to draw a line?


Many thanks!
by alexro
Tue Mar 28, 2006 11:54 pm
Forum: Support
Topic: separating paragraphs
Replies: 11
Views: 37821

Sergey Tkachenko wrote: What exactly do you want to enumerate?
I'm looking for something like:

Paragraphs[0].Style:= SpecialStyle;
for I:= 1 to Paragraphs.Count - 1 do
begin
Paragraphs.Style:= GeneralStyle;
end

This will solve copy/pasting/dragging issue ...
by alexro
Mon Mar 27, 2006 10:34 pm
Forum: Support
Topic: separating paragraphs
Replies: 11
Views: 37821

Yes, this will be sufficient. Could you advice on how to ensure the style is applied to the first paragraph and only to the first paragraph regardless of the document changes?

Is it better to use OnIdle event or trap OnChange?

And how to enumerate the paragraphs?

Many thanks!
by alexro
Mon Mar 27, 2006 1:48 pm
Forum: Support
Topic: separating paragraphs
Replies: 11
Views: 37821

separating paragraphs

I need to visually separate the first paragraph (make it kind of annotation) from the rest of the document. I think to implement this with a line similar to a page break. The problems I'm facing are: 1) how to draw this line 2) how to prevent it from deletion 3) how to update in case first paragraph ...