Page 1 of 1

A window with a metafile

Posted: Sun Oct 22, 2006 11:19 pm
by Silvio
I want create a metafile into a window but it not found oDevice and nHorzRes() and nVertRes()


How I can create it on a window ?

this my test

Code: Select all

Function test()
Local oWnd,oTest

DEFINE WINDOW oWnd COLOR CLR_BLACK, CLR_HGRAY ;
 VSCROLL HSCROLL

 oTest:=TMetaFile():New( 0,0,0,0,"",;
                  oWnd,CLR_BLACK,CLR_WHITE,oDevice:nHorzRes(),;
                  oDevice:nVertRes() )

ACTIVATE WINDOW oWnd