version 1
CT Place picture (area; picture; left; top) Longint
| Parameter | Type | Description | |
| area | Longint | 4D Chart area | |
| picture | Picture | 4D picture to place | |
| left | Real | Left coordinate, in points from left | |
| top | Real | Top coordinate, in points from top | |
| Function result | Longint | The picture's Object ID |
Description
CT Place picture pastes picture into area at a point determined by left and top and returns the picture's object ID.
Picture must be a valid 4th Dimension picture expression.
Example
This example pastes the contents of the Picture field [Logos]Logo into Area for the specified company.
MyRequest:=Request ("Which company's logo do you want?")
If (OK=1)
QUERY ([Logos];[Logos]Company=MyRequest)
If (Records in selection([Logos]>0)
$NewPict:= CT Place picture (Area;[Logos]Logo;10;10)
Else
ALERT ("This company does not exist.")
End if
End if