Adjunto pequeño ejemplo para probar
- Code: Select all Expand view
- #include "fivewin.ch"
#include "RichEdi5.ch"
Function Main()
Local oWnd
Local oWndRich1, oRich1, cRich1
Local oWndRich2, oRich2, cRich2
DEFINE WINDOW oWnd FROM 1, 1 TO 20, 70 TITLE "Test Multiple Richedit5" MDI
DEFINE WINDOW oWndRich1 MDICHILD OF oWnd FROM 2, 2 TO 20, 50 TITLE "Rich1" COLOR "B/W"
@ 0, 0 RICHEDIT5 oRich1 VAR cRich1 OF oWndRich1 NOBORDER HSCROLL
ACTIVATE WINDOW oWndRich1
DEFINE WINDOW oWndRich2 MDICHILD OF oWnd FROM 2, 55 TO 20, 105 TITLE "Rich2" COLOR "B/W"
@ 0, 0 RICHEDIT5 oRich2 VAR cRich2 OF oWndRich2 NOBORDER HSCROLL
ACTIVATE WINDOW oWndRich2
ACTIVATE WINDOW oWnd MAXIMIZED
Return (nil)