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.

Dropdownpicturelist box functionality in dddw

2 posts in DataWindow Last posting was on 2009-10-19 18:56:49.0Z
Thomas C. Posted on 2009-10-05 20:34:09.0Z
Sender: 5ca5.4aca5736.1804289383@sybase.com
From: Thomas C.
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Dropdownpicturelist box functionality in dddw
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <4aca5841.5cdf.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 5 Oct 2009 13:34:09 -0700
X-Trace: forums-1-dub 1254774849 10.22.241.41 (5 Oct 2009 13:34:09 -0700)
X-Original-Trace: 5 Oct 2009 13:34:09 -0700, 10.22.241.41
Lines: 7
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:90051
Article PK: 409655

I am in the process of updating the look and feel of one of
my applications and was wondering if there is a way to have
a dddw to somehow display a icon + text similar to how a
ddplb is. Curently a dddw only displays one field on the
dddw when it is not selected. Is there a way to somehow do
this on a computed column: bitmap(icon_path) + text?
Thanks!


Jason 'Bug' Fenter [TeamSybase] Posted on 2009-10-19 18:56:49.0Z
From: "Jason 'Bug' Fenter [TeamSybase]" <jason.fenter@teamsybase.com>
User-Agent: Thunderbird 2.0.0.23 (Windows/20090812)
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: Dropdownpicturelist box functionality in dddw
References: <4aca5841.5cdf.1681692777@sybase.com>
In-Reply-To: <4aca5841.5cdf.1681692777@sybase.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4adcb671@forums-1-dub>
Date: 19 Oct 2009 11:56:49 -0700
X-Trace: forums-1-dub 1255978609 10.22.241.152 (19 Oct 2009 11:56:49 -0700)
X-Original-Trace: 19 Oct 2009 11:56:49 -0700, vip152.sybase.com
Lines: 24
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:90109
Article PK: 409723

The drop-down portion itself should have no problems, which I think
you've seen. The problem is that the data value gets bound to a single
column on the parent datawindow. A single column can hold only a single
value, not both the text and the icon.

The "best" solution I can envision spur-of-the-moment is to have two
columns on the parent dw. Bump them up side-by-side so that they look
like one column. Have one column display the icon and the other display
the text.

The WPF datawindow in PB12 looks like it should give you the flexibility
to do what you want, but I don't think you'll see a simple solution in
any other version.

Thomas C. wrote:
> I am in the process of updating the look and feel of one of
> my applications and was wondering if there is a way to have
> a dddw to somehow display a icon + text similar to how a
> ddplb is. Curently a dddw only displays one field on the
> dddw when it is not selected. Is there a way to somehow do
> this on a computed column: bitmap(icon_path) + text?
> Thanks!