DR PLACE PICTURE

4D - Documentation   Français   English   German   4D Draw 2004, Command Theme List   4D Draw 2004, Command Alphabetical List   Back   Previous   Next

version 6.0


DR PLACE PICTURE (area; picture; location)

ParameterTypeDescription
areaLongint4D Draw area
picturePicture4D Picture to place
locationInteger0=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.


4D - Documentation   Français   English   German   4D Draw 2004, Command Theme List   4D Draw 2004, Command Alphabetical List   Back   Previous   Next