Page 1 of 1

New Tool : Simple RTF Annotation ?

Posted: Sun Nov 11, 2007 2:14 pm
by 9349911
Hi Support !

Would it be possible that you offer a simple RTF annotation tool in further releases? This would be a great enhancement !!

Posted: Mon Nov 12, 2007 9:32 am
by narcis
Hi Dominik,

This is already possible as you can see at the example at All Features\Welcome!\3D Canvas\RichText Drawing in the features demo.

Posted: Mon Nov 12, 2007 11:59 am
by 9349911
Hi Narcis,

well that´s amazing. That solves a lot of our problems.

Would it be possible to use a wprichtext (wptools) instead of the RichEdit?

Posted: Mon Nov 12, 2007 1:57 pm
by narcis
Hi Dominik,

You could try replacing TRichEdit objects for wprichtext.

Posted: Mon Nov 12, 2007 2:04 pm
by narcis
Hi Dominik,

As you can see here doesn't seem to inherit from TRichEdit.

Posted: Mon Nov 12, 2007 2:15 pm
by 9349911
Hi Narcis,
As you can see here doesn't seem to inherit from TRichEdit.
I know ...

But I thin k the only problem is this procedure.
Procedure DrawRichText(Chart:TCustomTeePanel; RichEdit:TRichEdit; R:TRect); overload;
{$IFDEF CLR}{$IFDEF ACCEPTDRAW}unsafe;{$ENDIF}{$ENDIF}
{$IFDEF ACCEPTDRAW}
const TwipsPerPixel=1440.0/96.0;
var fr : FORMATRANGE;
{$ENDIF}
begin
{$IFDEF ACCEPTDRAW}
fr.hdc := Chart.Canvas.Handle;
fr.hdcTarget := fr.hdc;
r.left :=Round(r.Left*twipsPerPixel);
r.top :=Round(r.Top*twipsPerPixel);
r.right :=Round(r.Right*twipsPerPixel);
r.bottom := Round(r.Bottom*twipsPerPixel);
fr.rc := r;
fr.rcPage := r;
fr.chrg.cpMin :=0;
fr.chrg.cpMax :=-1;

RichEdit.Perform(EM_FORMATRANGE,1,{$IFNDEF CLR}Integer{$ENDIF}(@fr));
{$ENDIF}
end;

I think the bold parts are the Problem.

Du you think I can change it to work with wptools?

Posted: Mon Nov 12, 2007 2:19 pm
by narcis
Hi Dominik,

We don't have WPTools here. You may want to ask them at their support site.

Posted: Mon Nov 12, 2007 9:29 pm
by 9349911
hi Narcis,

Well we could live with a normal RichEdit as well.
The only important thing we need is background transparency. Did you know an RichEdit inherit from TRichEdit wich supports transparency?

This would solve all our Problems perfectly !

Posted: Mon Nov 19, 2007 10:26 am
by narcis
Hi Dominik,

Sorry but we don't know of any but there must be something similar. Try searching in the internet.

Posted: Mon Nov 19, 2007 10:35 am
by 9349911
Hi Narcis,

I´ve found one. TRichView fits perfect our needs !