I've downloaded the trial version of Richview (V12.6.1) for Delphi 2007 and I'm trying to get it to read in an RTF document. I dropped a tRichView and a style component on my form along with a button with the following code. Basically cloned from one of the demo programs.
begin with RichViewTest do
begin
Clear;
DeleteUnusedStyles(True,True,True);
if loadRTF( 'RV.rtf') then
begin
MessageDlg ( 'Load RTF OK', mtError, [mbOK], 0 );
end;
end;
end;
I click the button and the Load RTF OK dialog pops up but there is nothing displayed in the RichView control.
This seem so basic I can't believe it's so badly broken. What and I missing?
I must be doing something wrong. LoadRTF not working?
-
- Site Admin
- Posts: 17534
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Still not quite there
Calling format did get text displayed on my screen but the RTF formatting isn't working. There is only one font and text that was supposed to be bold is rendered in blue. It looks like RV is thinking it is plain text.Sergey Tkachenko wrote:Call Format after LoadRTF.
Can you point me in the right direction?
-
- Site Admin
- Posts: 17534
- Joined: Sat Aug 27, 2005 10:28 am
- Contact: