Richtext.prg

Post Reply
Frank Demont
Posts: 142
Joined: Sun Oct 09, 2005 10:59 am

Richtext.prg

Post 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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Frank,

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

Antonio Linares
www.fivetechsoft.com
Frank Demont
Posts: 142
Joined: Sun Oct 09, 2005 10:59 am

Post by Frank Demont »

Antonio,

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

Frank
Frank Demont
Posts: 142
Joined: Sun Oct 09, 2005 10:59 am

Post by Frank Demont »

Antonio,

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

Frank
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Frank,

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

Antonio Linares
www.fivetechsoft.com
Frank Demont
Posts: 142
Joined: Sun Oct 09, 2005 10:59 am

Post 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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Frank,

is it working ok now ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
Frank Demont
Posts: 142
Joined: Sun Oct 09, 2005 10:59 am

Post by Frank Demont »

Yes , it works very nice , very easy to use , fantastic results .

Frank
Post Reply