New Tool : Simple RTF Annotation ?
New Tool : Simple RTF Annotation ?
Hi Support !
Would it be possible that you offer a simple RTF annotation tool in further releases? This would be a great enhancement !!
Would it be possible that you offer a simple RTF annotation tool in further releases? This would be a great enhancement !!
Greetz Dominik
http://www.logview.info
http://www.logview.info
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
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.
This is already possible as you can see at the example at All Features\Welcome!\3D Canvas\RichText Drawing in the features demo.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
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?
well that´s amazing. That solves a lot of our problems.
Would it be possible to use a wprichtext (wptools) instead of the RichEdit?
Greetz Dominik
http://www.logview.info
http://www.logview.info
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Dominik,
You could try replacing TRichEdit objects for wprichtext.
You could try replacing TRichEdit objects for wprichtext.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Hi Narcis,
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?
I know ...As you can see here doesn't seem to inherit from TRichEdit.
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?
Greetz Dominik
http://www.logview.info
http://www.logview.info
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
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 !
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 !
Greetz Dominik
http://www.logview.info
http://www.logview.info
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Dominik,
Sorry but we don't know of any but there must be something similar. Try searching in the internet.
Sorry but we don't know of any but there must be something similar. Try searching in the internet.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Hi Narcis,
I´ve found one. TRichView fits perfect our needs !
I´ve found one. TRichView fits perfect our needs !
Greetz Dominik
http://www.logview.info
http://www.logview.info