Tech Tip: Adding a background image in 4D Write Pro Area object
PRODUCT: 4D | VERSION: 15R4 | PLATFORM: Mac & Win
Published On: September 21, 2016
In v15 R4, 4D Write Pro Area objects' attribute can add a background image. The previous Tech tip # (Changing the picture of the image attribute in 4D Write Pro Area object) contained a method which can modify the image attribute. By replace the following code:
WP_ADD_BACKGROUND_IMAGE_ATTR($objPtr->;wk image;$text_set_attr) |
To this code:
WP_ADD_BACKGROUND_IMAGE_ATTR($objPtr->;wk background image;$text_set_attr) |
Note: The background image will only display the size of the text area. If the size of the 4D Write Pro Area is bigger than the text that is able to write, it will not show the background image to the size of the object area.
Example #1 Choosing a picture:
READ PICTURE FILE("";$pic) WP_ADD_BACKGROUND_IMAGE_ATTR ($pic;->WriteProArea) |
Example #2 Picture from a field:
// Assuming that the picture was quiered WP_ADD_BACKGROUND_IMAGE_ATTR ([Table_1]Field_Picture;->WriteProArea) |