KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Setting the image attribute in Write Pro with or without a range
PRODUCT: 4D Write Pro | VERSION: 16 | PLATFORM: Mac & Win
Published On: April 13, 2017

Setting the image attribute under constant wk image for WP SET ATTRIBUTES on a 4D Write Pro object has the ability to set a selection of pictures or all of them. The command can take the following:

1. Setting pictures that are selected in the Write Pro object as a range.


This example selects all 3 objects in the 4D Write Pro object:




The resulting selection of pictures can be called in a range and then be set with this code:

C_OBJECT($range)
C_TEXT($text_set_attr)

$range:=WP Get selection(WriteProArea)
WP SET ATTRIBUTES($range;wk image;$text_set_attr)


2. Setting pictures with no range.

With no range to address the picture location, setting the image attribute affects all images with the code below:

WP SET ATTRIBUTES(WriteProArea;wk image;$text_set_attr)


See Also: