4D Chart v12CT Place picture | 
            ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
                    
                        
  | 
                
                    
                         
    4D Chart v12
 
CT Place picture 
 
        
 | 
                |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CT Place picture ( area ; picture ; left ; top ) -> Function result | ||||||||
| 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 | |||||
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 4D picture expression.
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
	Product:  4D Chart
	Theme:  CT Objects
	Number:  
        14562
        
        
        
	
	Created:  4D Chart 1