A window with a metafile

Post Reply
User avatar
Silvio
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

A window with a metafile

Post 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
Best Regards, Saludos

Falconi Silvio
Post Reply