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.

Displaying pictures in a datawindow

4 posts in DataWindow Last posting was on 2012-10-24 17:48:42Z
Larry Peters Posted on 2012-10-24 06:25:27Z
From: Larry Peters <peterslarry@hotmail.com>
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Displaying pictures in a datawindow
Message-ID: <m52f8814h1hd1b1iom60ole0ktdmvif4q6@4ax.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Antivirus: avast! (VPS 121023-2, 10/24/2012), Outbound message
X-Antivirus-Status: Clean
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Date: 23 Oct 2012 23:25:27 -0700
X-Trace: forums-1-dub 1351059927 172.20.134.152 (23 Oct 2012 23:25:27 -0700)
X-Original-Trace: 23 Oct 2012 23:25:27 -0700, vip152.sybase.com
Lines: 15
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:94625
Article PK: 414221

In a datawindow I wish to display pictures.

If I use the Display As Picture option, this works if the picture is a
file (larry.bmp, etc).

However, some of the pictures are of the enumerated type as used by
menus & listviews (StopSign!, custom035!, etc). These will not display
or if they can then I do not know how to achieve this.

(This has come about because I am converting a listview into a
datawindow.)

TIA

Larry


Chris Pollach Posted on 2012-10-24 12:47:18Z
From: Chris Pollach <cpollach@travel-net.com>
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:16.0) Gecko/20121010 Thunderbird/16.0.1
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: Displaying pictures in a datawindow
References: <m52f8814h1hd1b1iom60ole0ktdmvif4q6@4ax.com>
In-Reply-To: <m52f8814h1hd1b1iom60ole0ktdmvif4q6@4ax.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <5087e356$1@forums-1-dub>
Date: 24 Oct 2012 05:47:18 -0700
X-Trace: forums-1-dub 1351082838 172.20.134.152 (24 Oct 2012 05:47:18 -0700)
X-Original-Trace: 24 Oct 2012 05:47:18 -0700, vip152.sybase.com
Lines: 38
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:94626
Article PK: 414224

Hi Larry;

Unfortunately, for the DW you need to convert all images to external
resources. The Picture Control has a SetPicture (vBlob) method that I
think the DW needs to support as well. Handling images only in an
external fashion is "so passé"! :-)

--
Regards ... Chris
President: OSUG / STD Inc.
Vice President: ISUG
Blog: http://chrispollach.blogspot.com
SourceForge: http://sourceforge.net/projects/stdfndclass
PBDJ: http://chrispollach.sys-con.com

On 10/24/2012 2:25 AM, Larry Peters wrote:
> In a datawindow I wish to display pictures.
>
> If I use the Display As Picture option, this works if the picture is a
> file (larry.bmp, etc).
>
> However, some of the pictures are of the enumerated type as used by
> menus & listviews (StopSign!, custom035!, etc). These will not display
> or if they can then I do not know how to achieve this.
>
> (This has come about because I am converting a listview into a
> datawindow.)
>
> TIA
>
> Larry
>


Bruce Armstrong Posted on 2012-10-24 17:02:00Z
User-Agent: NewsTap/3.5.5 (iPad)
From: Bruce Armstrong <NOCANSPAM_bruce.armstrong@yahoo.com>
Newsgroups: sybase.public.powerbuilder.datawindow
Content-Type: text/plain; charset=UTF-8
Mime-Version: 1.0
Content-Transfer-Encoding: 8bit
Message-ID: <1330677115372790484.452577NOCANSPAM_bruce.armstrong-yahoo.com@forums.sybase.com>
Subject: Re: Displaying pictures in a datawindow
References: <m52f8814h1hd1b1iom60ole0ktdmvif4q6@4ax.com>
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Date: 24 Oct 2012 10:02:00 -0700
X-Trace: forums-1-dub 1351098120 172.20.134.152 (24 Oct 2012 10:02:00 -0700)
X-Original-Trace: 24 Oct 2012 10:02:00 -0700, vip152.sybase.com
Lines: 23
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:94628
Article PK: 414226

You either need to save those images out as files or embed them in the
database as blobs for the datawindow tomaccess them.

Larry Peters <peterslarry@hotmail.com> wrote:
> In a datawindow I wish to display pictures.
>
> If I use the Display As Picture option, this works if the picture is a
> file (larry.bmp, etc).
>
> However, some of the pictures are of the enumerated type as used by
> menus & listviews (StopSign!, custom035!, etc). These will not display
> or if they can then I do not know how to achieve this.
>
> (This has come about because I am converting a listview into a
> datawindow.)
>
> TIA
>
> Larry

--
PowerBuilder Developer Center Forums - http://goo.gl/VXpIb


Chris Pollach Posted on 2012-10-24 17:48:42Z
From: Chris Pollach <cpollach@travel-net.com>
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:16.0) Gecko/20121010 Thunderbird/16.0.1
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: Displaying pictures in a datawindow
References: <m52f8814h1hd1b1iom60ole0ktdmvif4q6@4ax.com> <1330677115372790484.452577NOCANSPAM_bruce.armstrong-yahoo.com@forums.sybase.com>
In-Reply-To: <1330677115372790484.452577NOCANSPAM_bruce.armstrong-yahoo.com@forums.sybase.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <508829fa$1@forums-1-dub>
Date: 24 Oct 2012 10:48:42 -0700
X-Trace: forums-1-dub 1351100922 172.20.134.152 (24 Oct 2012 10:48:42 -0700)
X-Original-Trace: 24 Oct 2012 10:48:42 -0700, vip152.sybase.com
Lines: 30
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:94629
Article PK: 414227

Note: This will require PB 12.5 to be able to do this directly by the
DWO (you could use OLE in older PB versions though).

On 10/24/2012 1:02 PM, Bruce Armstrong wrote:
> You either need to save those images out as files or embed them in the
> database as blobs for the datawindow tomaccess them.
>
> Larry Peters <peterslarry@hotmail.com> wrote:
>> In a datawindow I wish to display pictures.
>>
>> If I use the Display As Picture option, this works if the picture is a
>> file (larry.bmp, etc).
>>
>> However, some of the pictures are of the enumerated type as used by
>> menus & listviews (StopSign!, custom035!, etc). These will not display
>> or if they can then I do not know how to achieve this.
>>
>> (This has come about because I am converting a listview into a
>> datawindow.)
>>
>> TIA
>>
>> Larry
>
>