FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Richtext.prg
Posts: 142
Joined: Sun Oct 09, 2005 10:59 AM
Richtext.prg
Posted: Fri Mar 17, 2006 09:55 AM

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

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Richtext.prg
Posted: Fri Mar 17, 2006 10:05 AM

Frank,

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

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 142
Joined: Sun Oct 09, 2005 10:59 AM
Richtext.prg
Posted: Fri Mar 17, 2006 11:40 AM

Antonio,

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

Frank

Posts: 142
Joined: Sun Oct 09, 2005 10:59 AM
Richtext.prg
Posted: Fri Mar 17, 2006 11:41 AM

Antonio,

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

Frank

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Richtext.prg
Posted: Fri Mar 17, 2006 11:43 AM

Frank,

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

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 142
Joined: Sun Oct 09, 2005 10:59 AM
Richtext.prg
Posted: Fri Mar 17, 2006 11:58 AM

Antonio,

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

Frank

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Richtext.prg
Posted: Fri Mar 17, 2006 12:00 PM

Frank,

is it working ok now ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 142
Joined: Sun Oct 09, 2005 10:59 AM
Richtext.prg
Posted: Fri Mar 17, 2006 12:19 PM

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

Frank

Continue the discussion