CT Place picture

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

version 1


CT Place picture (area; picture; left; top) Longint

ParameterTypeDescription
areaLongint4D Chart area
picturePicture4D picture to place
leftRealLeft coordinate, in points from left
topRealTop coordinate, in points from top
Function resultLongintThe 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

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