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.

Commandbutton Color

5 posts in Objects Last posting was on 2005-05-06 15:03:05.0Z
Jason Lipman Posted on 2005-05-04 17:26:24.0Z
From: "Jason Lipman" <NOSPAMjlipman@healthtrans.com>
Newsgroups: sybase.public.powerbuilder.objects
Subject: Commandbutton Color
Lines: 8
Organization: HealthTrans
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
X-RFC2646: Format=Flowed; Original
X-Original-NNTP-Posting-Host: 65.173.1.158
Message-ID: <427905ba$1@forums-2-dub>
X-Original-Trace: 4 May 2005 10:26:18 -0700, 65.173.1.158
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 4 May 2005 10:26:21 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 4 May 2005 10:26:24 -0700
X-Trace: forums-1-dub 1115227584 10.22.108.75 (4 May 2005 10:26:24 -0700)
X-Original-Trace: 4 May 2005 10:26:24 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8386
Article PK: 735611

PB 9.0.2

How do you change the color of a commandbutton? Am I doomed to create my own
commandbutton class to accomplish this?

Jason


Philip Salgannik Posted on 2005-05-04 17:39:13.0Z
Sender: 3606.4278e119.1804289383@sybase.com
From: Philip Salgannik
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: Commandbutton Color
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <427908be.3bd5.1681692777@sybase.com>
References: <427905ba$1@forums-2-dub>
X-Original-NNTP-Posting-Host: 10.22.241.42
X-Original-Trace: 4 May 2005 10:39:10 -0700, 10.22.241.42
Lines: 11
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 4 May 2005 10:39:11 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 4 May 2005 10:39:13 -0700
X-Trace: forums-1-dub 1115228353 10.22.108.75 (4 May 2005 10:39:13 -0700)
X-Original-Trace: 4 May 2005 10:39:13 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8387
Article PK: 735612

Comand button color is determined by the OS.

> PB 9.0.2
>
> How do you change the color of a commandbutton? Am I
> doomed to create my own commandbutton class to accomplish
> this?
>
> Jason
>
>


Chris Pollach Posted on 2005-05-04 18:11:41.0Z
From: "Chris Pollach" <cpollach@travel-net.dot.com>
Newsgroups: sybase.public.powerbuilder.objects
References: <427905ba$1@forums-2-dub>
Subject: Re: Commandbutton Color
Lines: 29
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4927.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4927.1200
X-Original-NNTP-Posting-Host: stealth.nserc.ca
Message-ID: <4279105a$1@forums-2-dub>
X-Original-Trace: 4 May 2005 11:11:38 -0700, stealth.nserc.ca
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 4 May 2005 11:11:39 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 4 May 2005 11:11:41 -0700
X-Trace: forums-1-dub 1115230301 10.22.108.75 (4 May 2005 11:11:41 -0700)
X-Original-Trace: 4 May 2005 11:11:41 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8388
Article PK: 735613

Jason;

No problem .. just use the Picture Button and assign an image (of one
solid colour) to the PB for whatever condition you wish to portray.
Transport Canada uses this for Red, Yellow and Green CB's (must be a
syndrome related to traffic lights <lol>). End users though are just tickled
pink .. no pun intended :)

Note: Same for the CB in the DataWindow object ... however, the Command
Button can also be a Picture Button so the class in generically used. Then
you can assign the image dynamically using a DC.Modify ( ) method call if
you like!

Regards ... Chris

"Jason Lipman" <NOSPAMjlipman@healthtrans.com> wrote in message
news:427905ba$1@forums-2-dub...
> PB 9.0.2
>
> How do you change the color of a commandbutton? Am I doomed to create my
own
> commandbutton class to accomplish this?
>
> Jason
>
>


Jason Lipman Posted on 2005-05-04 21:46:52.0Z
From: "Jason Lipman" <NOSPAMjlipman@healthtrans.com>
Newsgroups: sybase.public.powerbuilder.objects
References: <427905ba$1@forums-2-dub> <4279105a$1@forums-2-dub>
Subject: Re: Commandbutton Color
Lines: 3
Organization: HealthTrans
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
X-RFC2646: Format=Flowed; Original
X-Original-NNTP-Posting-Host: 65.173.1.158
Message-ID: <427942c8$1@forums-2-dub>
X-Original-Trace: 4 May 2005 14:46:48 -0700, 65.173.1.158
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 4 May 2005 14:46:49 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 4 May 2005 14:46:52 -0700
X-Trace: forums-1-dub 1115243212 10.22.108.75 (4 May 2005 14:46:52 -0700)
X-Original-Trace: 4 May 2005 14:46:52 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8390
Article PK: 735615

Great idea. Thanks, Chris!


Chris Pollach Posted on 2005-05-06 15:03:05.0Z
From: "Chris Pollach" <cpollach@travel-net.dot.com>
Newsgroups: sybase.public.powerbuilder.objects
References: <427905ba$1@forums-2-dub> <4279105a$1@forums-2-dub> <427942c8$1@forums-2-dub>
Subject: Re: Commandbutton Color
Lines: 9
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4927.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4927.1200
NNTP-Posting-Host: stealth.nserc.ca
X-Original-NNTP-Posting-Host: stealth.nserc.ca
Message-ID: <427b8729$1@forums-1-dub>
Date: 6 May 2005 08:03:05 -0700
X-Trace: forums-1-dub 1115391785 198.96.2.93 (6 May 2005 08:03:05 -0700)
X-Original-Trace: 6 May 2005 08:03:05 -0700, stealth.nserc.ca
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8393
Article PK: 735618

As they say here in Canada's Great White North: "Go for it Lad ... eh!".

"Jason Lipman" <NOSPAMjlipman@healthtrans.com> wrote in message
news:427942c8$1@forums-2-dub...
> Great idea. Thanks, Chris!
>
>