dualeditor for Srichviewedit

ScaleRichView support and discussion (TRichView add-on for WYSIWYG editing)
Post Reply
sr1111
Posts: 27
Joined: Thu Jan 31, 2008 12:18 pm

dualeditor for Srichviewedit

Post by sr1111 » Wed Jan 07, 2009 7:29 am

1-how can I implant this procedure to Srichviewedit and without externalRvStyle

and RVStyle1DrawParaBack = ? (where write events) for Srichviewedit.


2-is there dual editor a example for Srichviewedit


procedure TForm1.RVStyle1DrawParaBack(Sender: TRVStyle; Canvas: TCanvas;
ParaNo: Integer; ARect: TRect; var DoDefault: Boolean);
var i, j: Integer;
MakeRed: Boolean;
begin
i := Sender.ItemNo;
if Sender.RVData=RichViewEdit1.RVData then
if FocusedEditor = RichViewEdit1 then
j := RichViewEdit1.CurItemNo
else
j := HltItemNo1
else
if FocusedEditor = RichViewEdit2 then
j := RichViewEdit2.CurItemNo
else
j := HltItemNo2;
repeat
MakeRed := i=j;
if MakeRed then
break;
dec(i);
until TCustomRVData(Sender.RVData).IsFromNewLine(i+1);
if MakeRed then begin
Canvas.Brush.Style := bsSolid;
Canvas.Brush.Color := $CCCCFF;
Canvas.FillRect(ARect);
end;
end;

proxy3d
ScaleRichView Developer
Posts: 307
Joined: Mon Aug 07, 2006 9:37 am

Post by proxy3d » Sat Jan 10, 2009 8:38 pm

In SRichViewEdit it is possible to use internal RVStyle ("public" property SRichViewEdit. RVStyle) or external ExternalRVStyle.

If you do not wish to use ExternalRVStyle, you need:

Code: Select all

SRichViewEdit.RVStyle.OnDrawParaBack := RVStyle1DrawParaBack; 

sr1111
Posts: 27
Joined: Thu Jan 31, 2008 12:18 pm

Post by sr1111 » Mon Jan 12, 2009 6:11 am

thanks but I dont applied to srichviewedit and I dont it run

could you cretae a example for Srichviewedit dualeditor

proxy3d
ScaleRichView Developer
Posts: 307
Joined: Mon Aug 07, 2006 9:37 am

Post by proxy3d » Tue Jan 13, 2009 2:44 am

Give me your Email, I will send you an example.

sr1111
Posts: 27
Joined: Thu Jan 31, 2008 12:18 pm

Post by sr1111 » Fri Jan 16, 2009 3:00 am

my mail:[email protected]

I am waiting...

proxy3d
ScaleRichView Developer
Posts: 307
Joined: Mon Aug 07, 2006 9:37 am

Post by proxy3d » Sat Jan 17, 2009 10:31 am

Excuse me for a delay, I have sent you an example.

sr1111
Posts: 27
Joined: Thu Jan 31, 2008 12:18 pm

Post by sr1111 » Sun Jan 18, 2009 3:12 am

thanks very good

serkand

Post Reply