Picture.property
property (DataWindow object)
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.
Applies to
DataWindows
Syntax
PowerBuilder dot notation:
|
1 |
dw_control.Object.datawindow.picture.property |
Describe and Modify argument:
|
1 |
"DataWindow.picture.property { = value }" |
|
Parameter |
Description |
|---|---|
|
property |
A property for the picture background. Properties |
|
value |
The value to be assigned to the property. For |
|
Property for Picture |
Value |
|---|---|
|
Clip.Bottom |
An integer specifying the percentage to clip from Painter: |
|
Clip.Left |
An integer specifying the percentage to clip from Painter: |
|
Clip.Right |
An integer specifying the percentage to clip from Painter: |
|
Clip.Top |
An integer specifying the percentage to clip from Painter: |
|
File |
Painter: Background tab, Picture A string indicating the pathname for the |
|
Mode |
An integer indicating the orientation and size of Values 0 — Original Size 1 — Fit to 2 — Fit to Height 3 — Preserve 4 — Stretch to 5 — Tile 6 — Flip X 7 8 — Flip XY Painter: |
|
Scale.X |
An integer from 0 to 100 that indicates the Painter: |
|
Scale.Y |
An integer from 0 to 100 that indicates the Painter: |
|
Tranparency |
An integer in the range 0 to 100, where 0 means Painter: Background tab, |
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 fit the |
|
1 – Fit to Width |
The image is stretched or compressed (depending on |
|
2 – Fit to Height |
The image is stretch or compressed (depending on |
|
3 – Preserve Aspect Ratio/Max to |
The image is stretched or compressed (without |
|
4 – Stretch to Fit |
The image is stretched to fill the DataWindow |
|
5 – Tile |
The image is tiled to fill the DataWindow. The |
|
6 – Flip X |
The image is used to fill the DataWindow by tiling |
|
7 – Flip Y |
The image is used to fill the DataWindow by tiling |
|
8 – Flip XY |
The image is used to fill the DataWindow by tiling |
Examples
|
1 2 |
dw_1.Modify("datawindow.brushmode=6") dw_1.Object.datawindow.picture.File="MyPic.bmp" |