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.

getting windows colour scheme

5 posts in Objects Last posting was on 2007-07-03 23:56:58.0Z
John Smith Posted on 2007-04-23 06:28:09.0Z
Sender: 4013.4629c7c2.1804289383@sybase.com
From: John smith
Newsgroups: sybase.public.powerbuilder.objects
Subject: getting windows colour scheme
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <462c51f8.1b42.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 22 Apr 2007 23:28:09 -0700
X-Trace: forums-1-dub 1177309689 10.22.241.41 (22 Apr 2007 23:28:09 -0700)
X-Original-Trace: 22 Apr 2007 23:28:09 -0700, 10.22.241.41
Lines: 11
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9328
Article PK: 736487

Hi All,

Is it possible to get all custom + deault windows colours
from windows registry like how we are getting fonts from
registry.

Thanks in advance for any help,

Regards,

Smith


Bruce Armstrong [TeamSybase] Posted on 2007-04-23 12:31:55.0Z
From: "Bruce Armstrong [TeamSybase]" <NOCANSPAM_bruce.armstrong@teamsybase.com>
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: getting windows colour scheme
Organization: TeamSybase
Reply-To: NOCANSPAM_bruce.armstrong@teamsybase.com
Message-ID: <5m9p23dm58k0v3npn824med18o6vgl7rq6@4ax.com>
References: <462c51f8.1b42.1681692777@sybase.com>
X-Newsreader: Forte Agent 2.0/32.652
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 68-190-226-38.static.lsan.ca.charter.com
X-Original-NNTP-Posting-Host: 68-190-226-38.static.lsan.ca.charter.com
Date: 23 Apr 2007 05:31:55 -0700
X-Trace: forums-1-dub 1177331515 68.190.226.38 (23 Apr 2007 05:31:55 -0700)
X-Original-Trace: 23 Apr 2007 05:31:55 -0700, 68-190-226-38.static.lsan.ca.charter.com
Lines: 20
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9329
Article PK: 736488

HKEY_CURRENT_USER\Control Panel\Colors I believe, but the more
appropriate way to get them would be the GetSysColors API function

http://msdn2.microsoft.com/en-us/library/ms724371.aspx

On 22 Apr 2007 23:28:09 -0700, John smith wrote:

>Hi All,
>
>Is it possible to get all custom + deault windows colours
>from windows registry like how we are getting fonts from
>registry.
>
>Thanks in advance for any help,
>
>Regards,
>
>Smith


John Smith Posted on 2007-07-03 04:21:46.0Z
Sender: 7fa2.4678d120.1804289383@sybase.com
From: John Smith
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: getting windows colour scheme
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <4689ceda.3ea3.1681692777@sybase.com>
References: <5m9p23dm58k0v3npn824med18o6vgl7rq6@4ax.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 2 Jul 2007 21:21:46 -0700
X-Trace: forums-1-dub 1183436506 10.22.241.41 (2 Jul 2007 21:21:46 -0700)
X-Original-Trace: 2 Jul 2007 21:21:46 -0700, 10.22.241.41
Lines: 29
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9377
Article PK: 736536

Hi Bruse,

I didnt find any keys in the registry. is there any other
way?

Regards,

Ranjith T

> HKEY_CURRENT_USER\Control Panel\Colors I believe, but the
> more appropriate way to get them would be the GetSysColors
> API function
>
> http://msdn2.microsoft.com/en-us/library/ms724371.aspx
>
> On 22 Apr 2007 23:28:09 -0700, John smith wrote:
>
> >Hi All,
> >
> >Is it possible to get all custom + deault windows colours
> >from windows registry like how we are getting fonts from
> >registry.
> >
> >Thanks in advance for any help,
> >
> >Regards,
> >
> >Smith
>


Real Gagnon Posted on 2007-07-03 13:21:41.0Z
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: getting windows colour scheme
From: Real Gagnon <realgag+usenet@geocities.com>
References: <5m9p23dm58k0v3npn824med18o6vgl7rq6@4ax.com> <4689ceda.3ea3.1681692777@sybase.com>
Message-ID: <Xns99625F7E23599realhowtowwwrgagnonc@192.138.151.106>
User-Agent: Xnews/2006.08.24
X-Face: '>{u/e[@wCYV$e!T!j^qB%wU,7sGB<j\$2x+m&b<L:qzZ;x8EJMzD|$^
NNTP-Posting-Host: bas4-quebec14-1128572283.dsl.bell.ca
X-Original-NNTP-Posting-Host: bas4-quebec14-1128572283.dsl.bell.ca
Date: 3 Jul 2007 06:21:41 -0700
X-Trace: forums-1-dub 1183468901 67.68.165.123 (3 Jul 2007 06:21:41 -0700)
X-Original-Trace: 3 Jul 2007 06:21:41 -0700, bas4-quebec14-1128572283.dsl.bell.ca
Lines: 13
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9378
Article PK: 736537


> I didnt find any keys in the registry. is there any other
> way?

Use the GetSysColor() API.

See http://www.rgagnon.com/pbdetails/pb-0018.html

Bye.
--
Real Gagnon from Quebec, Canada
* Java, Javascript, VBScript and PowerBuilder code snippets
* http://www.rgagnon.com/howto.html
* http://www.rgagnon.com/bigindex.html


Jeremy Lakeman Posted on 2007-07-03 23:56:58.0Z
From: Jeremy Lakeman <jeremy.lakeman@gmail.com>
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: getting windows colour scheme
Date: Tue, 03 Jul 2007 23:56:58 -0000
Organization: http://groups.google.com
Lines: 49
Message-ID: <1183507018.446584.115320@g37g2000prf.googlegroups.com>
References: <5m9p23dm58k0v3npn824med18o6vgl7rq6@4ax.com> <4689ceda.3ea3.1681692777@sybase.com> <Xns99625F7E23599realhowtowwwrgagnonc@192.138.151.106>
NNTP-Posting-Host: 203.28.159.167
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
X-Trace: posting.google.com 1183507019 19970 127.0.0.1 (3 Jul 2007 23:56:59 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Tue, 3 Jul 2007 23:56:59 +0000 (UTC)
In-Reply-To: <Xns99625F7E23599realhowtowwwrgagnonc@192.138.151.106>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4,gzip(gfe),gzip(gfe)
X-HTTP-Via: 1.1 fly.essential.com.au:3128 (squid/2.5.STABLE8), 1.0 asp.essential.intranet:3128 (squid/2.5.STABLE8)
Complaints-To: groups-abuse@google.com
Injection-Info: g37g2000prf.googlegroups.com; posting-host=203.28.159.167; posting-account=V-rDVg0AAADfPFm1X8zwpcMoA3SSVH2A
Path: forums-1-dub!forums-master!newswest.sybase.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!g37g2000prf.googlegroups.com!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9384
Article PK: 736544


On Jul 3, 10:21 pm, Real Gagnon <realgag+use...@geocities.com> wrote:
> > I didnt find any keys in the registry. is there any other
> > way?
>
> Use the GetSysColor() API.
>
> Seehttp://www.rgagnon.com/pbdetails/pb-0018.html
>
> Bye.
> --
> Real Gagnon from Quebec, Canada
> * Java, Javascript, VBScript and PowerBuilder code snippets
> *http://www.rgagnon.com/howto.html
> *http://www.rgagnon.com/bigindex.html

You can also use the constants that PB uses when you choose a colour
in the IDE.

constant long color_windowtext = 33554432
constant long color_buttonface = 67108864
constant long color_applicationworkspace = 268435456
constant long color_transparent = 536870912
constant long color_windowbackground = 1073741824
constant long color_scrollbar = 134217728
constant long color_Desktop = 134217729
constant long color_activetitlebar = 134217730
constant long color_inactivetitlebar = 134217731
constant long color_menubar = 134217732
constant long color_windowframe = 134217734
constant long color_menutext = 134217735
constant long color_activetitletext = 134217737
constant long color_activeborder = 134217738
constant long color_inactiveborder = 134217739
constant long color_highlight = 134217741
constant long color_highlighttext = 134217742
constant long color_buttonshadow = 134217744
constant long color_disabledtext = 134217745
constant long color_buttontext = 134217746
constant long color_inactivetitlebartext = 134217747
constant long color_buttonhighlight = 134217748
constant long color_buttondarkshadow = 134217749
constant long color_buttonlightshadow = 134217750
constant long color_tooltiptext = 134217751
constant long color_tooltip = 134217752
constant long color_link = 134217856
constant long color_linkhover = 134217857
constant long color_linkactive = 134217858
constant long color_linkvisited = 134217859