Richtext.prg

Richtext.prg

Postby Frank Demont » Fri Mar 17, 2006 9: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
Frank Demont
 
Posts: 142
Joined: Sun Oct 09, 2005 10:59 am

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

Postby Frank Demont » Fri Mar 17, 2006 11:40 am

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

Postby Frank Demont » Fri Mar 17, 2006 11:41 am

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

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

Postby Frank Demont » 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
Frank Demont
 
Posts: 142
Joined: Sun Oct 09, 2005 10:59 am

Postby Antonio Linares » Fri Mar 17, 2006 12:00 pm

Frank,

is it working ok now ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42074
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Frank Demont » Fri Mar 17, 2006 12:19 pm

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

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


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 52 guests