QG_GetCellPicture

QG_GetCellPicture(areaRef; pictExpression; rectLeft; rectTop; rectRight; rectBottom; displayFormat):errorCode
areaRef Longint QGrid area reference
pictExpression Text The picture expression
rectLeft Longint Left coordinate
rectTop Longint Top coordinate
rectRight Longint Right coordinate
rectBottom Longint Bottom coordinate
displayFormat Longint Picture format number
error Longint Error result

Returns the current picture object setup.

Parameter areaRef is the QGrid area reference. If areaRef is not a valid QGrid area reference, qg_paramErr error is returned. If no picture object was defined, qg_NoPictureErr error is returned.

Parameter pictExpression receives the picture expression used to draw the picture object.

Parameters rectLeft, rectTop, rectRight and rectBottom receive the picture box coordinates in the cell's coordinate system.

Parameter displayFormat receives the picture display format. QGrid defines the following constants for picture display formats:

qg_PictTruncCentered 1 Same as 4D's Truncated Centered (default)
qg_PictScaledToFit 2 Same as 4D's Scaled To Fit
qg_PictTruncNonCenter 4 Same as 4D's Truncated non Centered
qg_PictScaledToFitProp 5 Same as 4D's Scaled to fit proportional
qg_PictScaledToFitPropCenter 6 Same as 4D's Scaled to fit prop centered
qg_PictXScaledToFitProp 8 Same as 4D's Scaled to fit proportional, but scales up as well
qg_PictXScaledToFitPropCenter 9 Same as 4D's Scaled to fit prop centered, but scales up as well

Example

C_LONGINT($err;$tblNum;$fldNum;$left;$top;$right;$bottom;$format)
C_TEXT($pictXpression)
 
$err:=QG_GetCellPicture (xGrid;$pictXpression;$left;$top;$right;$bottom;$format)
 
If ($err = qg_NoPictureErr)
  ` No picture object was defined for the area
Else
  If ($err # qg_noErr)
    ` Handle the error
  End if
End if
 
 

Related commands

QG_SetCellPicture Setup a picture object for the area cells
QG_GetCellCaption Return the current caption object

QGrid © Escape
Generated by QDoc 2.8 on Thu, Oct 8, 2009 17:35:52