En window funciona correctamente pero necesito poner el control en un dialog y no logro que funcione bien.
Code: Select all
#include "FiveWin.ch"
#include "richedit.ch"
Function Main()
local oDlg
local oRtf
local hRichDLL := LoadLibrary( "riched20.dll" )
local cFile := "testrtf.rtf"
local cText := MemoRead( cFile )
DEFINE DIALOG oDlg TITLE "Test" PIXEL FROM 10, 10 TO 400, 600
@ 02, 02 RICHEDIT oRtf;
VAR cText;
OF oDlg;
PIXEL;
SIZE 200, 150;
READONLY
ACTIVATE DIALOG oDlg CENTERED
FreeLibrary( hRichDLL )
Return NIL