Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

Display as picture sizing

2 posts in DataWindow Last posting was on 2008-09-06 10:35:01.0Z
Bradl Posted on 2008-09-05 21:09:29.0Z
Sender: 3a2f.48c19c98.1804289383@sybase.com
From: Bradl
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Display as picture sizing
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <48c1a008.3aed.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 5 Sep 2008 14:09:29 -0700
X-Trace: forums-1-dub 1220648969 10.22.241.41 (5 Sep 2008 14:09:29 -0700)
X-Original-Trace: 5 Sep 2008 14:09:29 -0700, 10.22.241.41
Lines: 6
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:87717
Article PK: 416974

I have a datawindow that contains three columns and one row.
If any of the columns have contain the name of a bitmap
file, I want to display the image setting the bitmapname =
yes for that column. That seems to be working fine, but is
there any way of dynamically setting the size of the column
to be somewhat close to the dimensions of the bitmap itself?


shashi Posted on 2008-09-06 10:35:01.0Z
From: shashi <gogia7@gmail.com>
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: Display as picture sizing
Date: Sat, 6 Sep 2008 03:35:01 -0700 (PDT)
Organization: http://groups.google.com
Lines: 14
Message-ID: <a445a79e-e874-49af-b95e-8fd43b7604fe@r15g2000prh.googlegroups.com>
References: <48c1a008.3aed.1681692777@sybase.com>
NNTP-Posting-Host: 59.180.27.86
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1220697301 20901 127.0.0.1 (6 Sep 2008 10:35:01 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Sat, 6 Sep 2008 10:35:01 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: r15g2000prh.googlegroups.com; posting-host=59.180.27.86; posting-account=mY9CiAoAAABxoNLAQxxv-hZcQZtLM6pE
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1,gzip(gfe),gzip(gfe)
Path: forums-1-dub!forums-master!newssvr.sybase.com!news-sj-1.sprintlink.net!news-peer1.sprintlink.net!newsfeed.yul.equant.net!nntp1.roc.gblx.net!nntp.gblx.net!nntp.gblx.net!nlpi057.nbdc.sbc.com!prodigy.net!border1.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!r15g2000prh.googlegroups.com!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:87721
Article PK: 416977


On Sep 6, 2:09 am, Bradl wrote:
> I have a datawindow that contains three columns and one row.
>  If any of the columns have contain the name of a bitmap
> file, I want to display the image setting the bitmapname =
> yes for that column.  That seems to be working fine, but is
> there any way of dynamically setting the size of the column
> to be somewhat close to the dimensions of the bitmap itself?

The best way to do it (especially if there is only one row) is to make
a picture object whose picturename (the same can be changed through
the rowfocuschanged event) is the file name of the picture. Make sure
to set the <Original Size> Property to true

Best of Luck