Home Search

DriveWorks Pro 22
Picture Checked, Hover, Selected and Pressed

Send Feedback

Picture Checked, Hover, Selected and Pressed

This description applies to the following properties:

  • Picture Checked
  • Picture Hover
  • Picture Selected
  • Picture Pressed

The Picture (...) property applies an image to the control when the corresponding action (Checked, Hover, Selected or Pressed) has taken place.

Property Type: Static

Default Value: null

Hierarchical Reference (Picture Checked): ControlName.PictureChecked

Hierarchical Reference (Picture Hover): ControlName.PictureHover

Hierarchical Reference (Picture Pressed): ControlName.PicturePressed

Hierarchical Reference (Picture Selected): ControlName.PictureSelected

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

The affect the Picture property has on the appearance of the control is controlled by the Picture Style property (see below).

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:

A. 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

B. 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

Default Appearance

The default appearance for the controls that support the Picture property are shown below.

The default appearance can be changed by applying an image to the Picture property and setting the appropriate Picture Style property.

Check Box(Checked)

Hyperlink(Hover)

Option Button and Group (Selected)

Macro and Dialog Button (Hover)

Macro and Dialog Button (Pressed)

Default Appearance when (Action) is applied

The Default Appearance for the Check Box, Option Button and Option Group can be removed by setting the properties listed below:

  • Check Box - Property: Show Check Value: False
  • Option Button and Option Group - Property: Show Option Value: False

Examples

Picture (...) Property Value (static)ResultNotes
Graphics\Checked.png

Displays the image Checked.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\ProductMedium.gifDisplays the image ProductMedium.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\ BlackSelected.jpgDisplays the image BlackSelected.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 defiined 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\GlassSelected.png", "Graphics\WoodSelected.png")

Displays the image GlassSelected.png when the control ProductType results in the value Glass. Otherwise the image WoodSelected.png will be displayed 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.

Value set in Form Designer. Static properties can be made Dynamic by double clicking the gray radio button.