QPx_GetAreaPicture

QPx_GetAreaPicture(areaRef; areaRef):error
areaRef Longint QPix area reference
areaPict Picture 4th Dimension picture variable
error Longint Error result

Get the 4D picture being displayed in a QPix area

The QPix plug-in area is specified by areaRef. If areaRef is not a valid QPix plug-in area reference, qpx_paramErr is returned.

The 4D picture being displayed in areaRef is returned in areaPict. If areaRef is not currently displaying a 4D picture, areaPict is set to a null picture and the qpx_paramErr error code is returned.

Example

   // Get the 4D picture displayed in area

C_LONGINT($error)
C_PICTURE($pict)

$error:=QPx_GetAreaPicture (gQPixArea;$pict)

If ($error#qpx_noErr)
   
      // Handle the error
   
End if 

Related commands

QPx_SetAreaPicture Display a 4D picture in a QPix area