The Picture property sets a picture to display on the control.
Property Type: Static
Default Value: null
Hierarchical Reference: ControlName.PictureDefault
The Picture property requires a path, file name and extension for the image to be used.
Supported image types include:
Ensure the property is a static property (It will display the gray orb alongside the property name)
The default value of the static property can be changed by one of the following methods:
Picture Property Value (static) | Result | Notes |
---|---|---|
Graphics\Unchecked.png | Displays the image Unchecked.png alongside the default appearance of the control. The folder Graphics is located relative to the current project location. | The value can be selected by clicking the browse button that accompanies the property. |
..\..\Content\ProductSmall.gif | Displays the image ProductSmall.gif alongside the default appearance of the control. The folder Content is located 2 levels up (..\..\) from the current project location. | The value can be selected by clicking the browse button that accompanies the property. |
D:\Images\Controlicons\Content\Black.jpg | Displays the image Black.jpg alongside the default appearance of the control. The folder D:\Images\Controlicons\Content is the absolute path to the image. | The value can be set by typing directly into the property field |
A rule can also be built for this property by changing the type to dynamic.
See How To: Change A Static Property To A Dynamic Property.
Picture Property Value (Dynamic) | Result | Notes |
---|---|---|
DWVariable Picture | Displays the image defined by the result of the variable Picture alongside the default appearance of the control. | The value can be set by making the property dynamic (see above), launching the rule builder and applying the function. |
IF(ProductTypeReturn="Glass", "Graphics\Glass.png", "Graphics\Wood.png") | Displays the image Glass.png, alongside the default appearance of the control, when the control ProductType results in the value Glass. Otherwise the image Wood.png will be displayed. | The value can be set by making the property dynamic (see above), launching the rule builder and applying the function. |
Value set in Form Designer. Static properties can be made Dynamic by double clicking the gray radio button.