Page 1 of 1

Richtext.prg

Posted: Fri Mar 17, 2006 9:55 am
by Frank Demont
Hello,

I try to use RTF in mine main aplication.

First I convert memo files in RTF format , txt in the example . In a testprogram next routine works :

DEFINE WINDOW oWnd FROM 0, 0 TO 300, 827 PIXEL ;
MDICHILD OF oWndMain:oWnd ;
TITLE "TRichEdit" ;
COLOR CLR_BLACK, nil

@ 0, 0 RICHEDIT oRTF VAR Tkst OF oWnd
ACTIVATE WINDOW oWnd


Placing this routine in the main project , shows as text from the RTF in his window only {...}

I have no idea why this code works in a separate program and not in the main program . In both cases Txt has the same value and seems to be corect . Xbuilder points in both cases to the same FWH dir

Frank

Posted: Fri Mar 17, 2006 10:05 am
by Antonio Linares
Frank,

You may do a MsgInfo( Tkst ) before creating the richedit control just to check its contents.

Posted: Fri Mar 17, 2006 11:40 am
by Frank Demont
Antonio,

Of course i did it , it see no difference between the two values

Frank

Posted: Fri Mar 17, 2006 11:41 am
by Frank Demont
Antonio,

Of course i did it , it see no difference between the two values

Frank

Posted: Fri Mar 17, 2006 11:43 am
by Antonio Linares
Frank,

Please email me your RTF file as a ZIP file, thanks.

Posted: Fri Mar 17, 2006 11:58 am
by Frank Demont
Antonio,

Sorry antonio , i overlooked that in the main aplication the variable is an array , so i had to put txt[1]

Frank

Posted: Fri Mar 17, 2006 12:00 pm
by Antonio Linares
Frank,

is it working ok now ?

Posted: Fri Mar 17, 2006 12:19 pm
by Frank Demont
Yes , it works very nice , very easy to use , fantastic results .

Frank