version 6.0
DR PLACE PICTURE (area; picture; location)
| Parameter | Type | Description | |
| area | Longint | 4D Draw area | |
| picture | Picture | 4D Picture to place | |
| location | Integer | 0=Normal | |
| 1=Center | |||
| 2=Origin |
Description
The command DR PLACE PICTURE pastes picture into area at a point determined by location.
picture must be a valid 4th Dimension picture expression.
If location equals 0, the command pastes picture as if from the Clipboard, that is, it places picture where the mouse was last clicked in area.
If location equals 1, the command places picture in the center of the window that displays area.
If location equals 2, the command places picture at the origin.
Example
The following 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)
DR PLACE PICTURE(Area;[Logos]Logo;2)
Else
ALERT("This company does not exist.")
End if
End if
See Also
DR Area to picture, DR Clipboard to picture, DR SET ORIGIN.