Home Search

DriveWorks Pro 22
Picture

Send Feedback

Picture

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:

  • *.jpg
  • *.jpeg
  • *.png
  • *.gif
  • *.svg
  • *.bmp
  • *.webp

To Change the Default Value

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:

  • Browse to the image:
    1. Click in the property field for the control to be changed
    2. Click the browse button at the end of the property field  
    3. Browse to the image and click Open
  • Typing the required value directly into the property field:
    1. Click in the property field for the control to be changed
    2. Type the required caption directly into the property field

Examples

Picture Property Value (static)ResultNotes
Graphics\Unchecked.pngDisplays 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.gifDisplays 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.jpgDisplays 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)ResultNotes
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.