Picture.property DataWindow object property
Description
Settings that control
the background picture displayed in a DataWindow object. Picture
properties are not supported in RichText, Graph, or OLE DataWindow
presentation styles.
Controls
DataWindows
Syntax
PowerBuilder dot notation:
|
1 |
<span>dw_control</span>.Object.datawindow.picture.<span>property</span> |
Describe and Modify argument:
|
1 |
"DataWindow.picture.<span>property </span>{ = <span>value </span>}" |
|
Parameter |
Description |
|---|---|
|
property |
A property for the picture background. |
|
value |
The value to be assigned to the property. |
|
Property for Picture |
Value |
|---|---|
|
Clip.Bottom |
An integer specifying the percentage Painter: Background tab, Picture group. |
|
Clip.Left |
An integer specifying the percentage Painter: Background tab, Picture group. |
|
Clip.Right |
An integer specifying the percentage Painter: Background tab, Picture group. |
|
Clip.Top |
An integer specifying the percentage Painter: Background tab, Picture group. |
|
File |
Painter: Background tab, Picture group. A string indicating the pathname for the picture file to be |
|
Mode |
An integer indicating the orientation Values are:
Painter: Background tab, Picture group. |
|
Scale.X |
An integer from 0 to 100 that indicates Painter: Background tab, Picture group. |
|
Scale.Y |
An integer from 0 to 100 that indicates Painter: Background tab, Picture group. |
|
Tranparency |
An integer in the range 0 to 100, where Painter: Background tab, Picture group. |
Usage
In the painter
Select the DataWindow object and set the value on the Background
tab of the Properties view.
If you save to an EMF or WMF, the properties on the Background
tab are not saved with the DataWindow.
This table explains the values for Picture.Mode:
|
Value |
Description |
|---|---|
|
0 – Original Size |
The image is centered and not tiled to |
|
1 – Fit to Width |
The image is stretched or compressed |
|
2 – Fit to Height |
The image is stretch or compressed (depending |
|
3 – Preserve Aspect Ratio/Max |
The image is stretched or compressed |
|
4 – Stretch to Fit |
The image is stretched to fill the DataWindow |
|
5 – Tile |
The image is tiled to fill the DataWindow. |
|
6 – Flip X |
The image is used to fill the DataWindow |
|
7 – Flip Y |
The image is used to fill the DataWindow |
|
8 – Flip XY |
The image is used to fill the DataWindow |
Examples
|
1 |
dw_1.Modify("datawindow.brushmode=6") |
|
1 |
dw_1.Object.datawindow.picture.File="MyPic.bmp" |