DrawLine( 0,300 )...
function DrawLine( x, y )
Local hdc:= oDlgMain:GetDc()
Local hPen := CreatePen( 0, 1, CLR_BLUE )
Local hOldPen := SelectObject( oDlgMain:hDc, hPen )
MoveTo( oDlgMain:hDC, x, y)
LineTo( oDlgMain:hDC, x, y )
SelectObject( oDlgMain:hDc, hOldPen )
DeleteObject( hPen )
oDlgMain:ReleaseDc()
return nil
WHY NOT RUN ?