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.

How do I change the bar color in a bar graph?

5 posts in DataWindow Last posting was on 2009-04-13 21:41:04.0Z
Anthony Posted on 2009-04-13 16:30:19.0Z
Sender: 419.49e3681c.1804289383@sybase.com
From: Anthony
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: How do I change the bar color in a bar graph?
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <49e3689b.428.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 13 Apr 2009 09:30:19 -0700
X-Trace: forums-1-dub 1239640219 10.22.241.41 (13 Apr 2009 09:30:19 -0700)
X-Original-Trace: 13 Apr 2009 09:30:19 -0700, 10.22.241.41
Lines: 4
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:89151
Article PK: 418403

How do I change the 'bar' color in a bar graph that is in a
dw?

I am using PB 11.2 Build 8616.


"Paul Horan[Sybase]" <phoran_remove Posted on 2009-04-13 18:12:41.0Z
From: "Paul Horan[Sybase]" <phoran_remove@remove_sybase.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <49e3689b.428.1681692777@sybase.com>
Subject: Re: How do I change the bar color in a bar graph?
Lines: 16
Organization: Sybase
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <49e38099@forums-1-dub>
Date: 13 Apr 2009 11:12:41 -0700
X-Trace: forums-1-dub 1239646361 10.22.241.152 (13 Apr 2009 11:12:41 -0700)
X-Original-Trace: 13 Apr 2009 11:12:41 -0700, vip152.sybase.com
X-Authenticated-User: teamsybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:89153
Article PK: 418406

setSeriesStyle() or setDataStyle().

Any chance to upgrade to 11.5? The graph engine got a complete overhaul and
now uses DirectX...

--
Paul Horan[Sybase]
paulhoran.pbdjmagazine.com

<Anthony> wrote in message news:49e3689b.428.1681692777@sybase.com...
> How do I change the 'bar' color in a bar graph that is in a
> dw?
>
> I am using PB 11.2 Build 8616.


Anthony Posted on 2009-04-13 20:22:28.0Z
Sender: 5cd.49e37623.1804289383@sybase.com
From: Anthony
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: How do I change the bar color in a bar graph?
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <49e39f04.aea.1681692777@sybase.com>
References: <49e38099@forums-1-dub>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 13 Apr 2009 13:22:28 -0700
X-Trace: forums-1-dub 1239654148 10.22.241.41 (13 Apr 2009 13:22:28 -0700)
X-Original-Trace: 13 Apr 2009 13:22:28 -0700, 10.22.241.41
Lines: 20
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:89155
Article PK: 418407

I tried using SetDataStyle and it does not work. The return
code is always -1. There must be a bug in this function...

> setSeriesStyle() or setDataStyle().
>
> Any chance to upgrade to 11.5? The graph engine got a
> complete overhaul and now uses DirectX...
>
> --
> Paul Horan[Sybase]
> paulhoran.pbdjmagazine.com
>
> <Anthony> wrote in message
> > news:49e3689b.428.1681692777@sybase.com... How do I
> > change the 'bar' color in a bar graph that is in a dw?
> >
> > I am using PB 11.2 Build 8616.
>
>


Terry Dykstra [TeamSybase] Posted on 2009-04-13 20:41:13.0Z
Reply-To: "Terry Dykstra [TeamSybase]" <dontreply_tddykstra@forestoil.ca.x>
From: "Terry Dykstra [TeamSybase]" <tddykstra@forestoil.ca>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <49e38099@forums-1-dub> <49e39f04.aea.1681692777@sybase.com>
Subject: Re: How do I change the bar color in a bar graph?
Lines: 39
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <49e3a369@forums-1-dub>
Date: 13 Apr 2009 13:41:13 -0700
X-Trace: forums-1-dub 1239655273 10.22.241.152 (13 Apr 2009 13:41:13 -0700)
X-Original-Trace: 13 Apr 2009 13:41:13 -0700, vip152.sybase.com
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:89156
Article PK: 418408

I've used it in 10.5 without problems.

Did you create an event mapped to pbm_dwngraphcreate ?

This.SetDataStyle ( "gr_leaseop", 1, i, Foreground!, rgb(0,128,0) ) // dark
green
This.SetDataStyle ( "gr_leaseop", 2, i, LineColor!, rgb(0,0,128) ) // dark
blue

--
Terry Dykstra (TeamSybase)
http://powerbuilder.codeXchange.sybase.com/
http://casexpress.sybase.com
product enhancement requests:
http://my.isug.com/cgi-bin/1/c/submit_enhancement

<Anthony> wrote in message news:49e39f04.aea.1681692777@sybase.com...
>I tried using SetDataStyle and it does not work. The return
> code is always -1. There must be a bug in this function...
>
>
>> setSeriesStyle() or setDataStyle().
>>
>> Any chance to upgrade to 11.5? The graph engine got a
>> complete overhaul and now uses DirectX...
>>
>> --
>> Paul Horan[Sybase]
>> paulhoran.pbdjmagazine.com
>>
>> <Anthony> wrote in message
>> > news:49e3689b.428.1681692777@sybase.com... How do I
>> > change the 'bar' color in a bar graph that is in a dw?
>> >
>> > I am using PB 11.2 Build 8616.
>>
>>


Anthony Posted on 2009-04-13 21:41:04.0Z
Sender: 5cd.49e37623.1804289383@sybase.com
From: Anthony
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: How do I change the bar color in a bar graph?
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <49e3b170.c6a.1681692777@sybase.com>
References: <49e3a369@forums-1-dub>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 13 Apr 2009 14:41:04 -0700
X-Trace: forums-1-dub 1239658864 10.22.241.41 (13 Apr 2009 14:41:04 -0700)
X-Original-Trace: 13 Apr 2009 14:41:04 -0700, 10.22.241.41
Lines: 46
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:89158
Article PK: 418410

Thank you. It worked when I created an event mapped to
pbm_dwngraphcreate just as you asked.
Now, if I can just be able to reduce the height of the graph
object in the DW to a minimum enough of a height so that the
graph text does not become unreadable. Any thoughts on that?
Do you know what I mean?

> I've used it in 10.5 without problems.
>
> Did you create an event mapped to pbm_dwngraphcreate ?
>
> This.SetDataStyle ( "gr_leaseop", 1, i, Foreground!,
> rgb(0,128,0) ) // dark green
> This.SetDataStyle ( "gr_leaseop", 2, i, LineColor!,
> rgb(0,0,128) ) // dark blue
>
> --
> Terry Dykstra (TeamSybase)
> http://powerbuilder.codeXchange.sybase.com/
> http://casexpress.sybase.com
> product enhancement requests:
> http://my.isug.com/cgi-bin/1/c/submit_enhancement
>
> <Anthony> wrote in message
> news:49e39f04.aea.1681692777@sybase.com... >I tried using
> > SetDataStyle and it does not work. The return code is
> always -1. There must be a bug in this function... >
> >
> >> setSeriesStyle() or setDataStyle().
> >>
> >> Any chance to upgrade to 11.5? The graph engine got a
> >> complete overhaul and now uses DirectX...
> >>
> >> --
> >> Paul Horan[Sybase]
> >> paulhoran.pbdjmagazine.com
> >>
> >> <Anthony> wrote in message
> >> > news:49e3689b.428.1681692777@sybase.com... How do I
> >> > change the 'bar' color in a bar graph that is in a
> dw? >> >
> >> > I am using PB 11.2 Build 8616.
> >>
> >>
>
>