Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Different Image Size in DataWindow

Status
Not open for further replies.

sibbim

Programmer
Oct 27, 2004
4
DE
Hi PB-Developers,

I'm trying to display different screenshots with
different size in a DataWindow.
I'm using a computed field and I already can see
the different images but they are streched to the
size of the computed field.
I have the original size of the images but when I
try to set the size with:

dw_list.object.win_pic.height = height
dw_list.object.win_pic.width = width

...all images have the size of the last image
in this datawindow. Is it possible to define a
different size for every image.

Thanks,

Sebastian - European
 
You could add two more columns to your dw for the height and width, set their values with the height and width when the image is loaded, then set up an expression in the height and width properties of the column containing the images to set the size based on the two new columns values.
 
Thanks magician :)

this small trick solved one of my biggest problems...
...it works - thanks again!

Sebastian - European
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top