?
Solved

Change Windows desktop color

Posted on 1999-10-28
7
Medium Priority
?
804 Views
Last Modified: 2008-02-01
..how can I change the color of desktop in Windows 95/98 ??
I'm using Delphi 3,  SetSysColor is just temporary for the section, I want to change the color permanently.

Thanks.
0
Comment
Question by:uffa
  • 4
  • 3
7 Comments
 
LVL 1

Expert Comment

by:AttarSoftware
ID: 2168186
It is in the registry...

HKEY_CURRENT_USER\Control Panel\Colors\Background

if you set the value here then it will change next time you reboot windows, so maybe a combination of the two methods is required....

Tim.
0
 

Author Comment

by:uffa
ID: 2169427
.thanks, but can you give me an actual example (a code segment) ?
0
 
LVL 1

Accepted Solution

by:
AttarSoftware earned 80 total points
ID: 2169528
For ten points, its a bit of a liability, but...ok
make sure you include the Registry file in your uses clause, then:

procedure SetIt( r, g, b : byte ) ;
var
  reg : tRegistry ;
begin
  reg := tRegistry.Create ;
  if( reg.OpenKey( '\Control Panel\Colors', false ) ) then
  begin
    reg.WriteString( 'Background', IntToStr( r ) + ' ' + IntToStr( g ) + ' ' + IntToStr( b ) ) ;
    reg.CloseKey ;
  end ;
  reg.Free ;
end ;

Or something like that...

You may need to fiddle this, as I havent got my computer on (home time), and so I can't test it...but it should work...  Check if it does with regedit...

0
Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

 
LVL 1

Expert Comment

by:AttarSoftware
ID: 2169533
Good luck :)

Tim.
0
 

Author Comment

by:uffa
ID: 2169636
Adjusted points to 20
0
 

Author Comment

by:uffa
ID: 2169644
.thanks for the code segment, I didn't know about the reg. object.  I increased the points to 20, how is that?
0
 
LVL 1

Expert Comment

by:AttarSoftware
ID: 2173769
Wonderful   =OD

Cheers Uffa :)

Tim.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
This is an update to some code that someone else posted on Experts Exchange. It is an alternate approach, I think a little easier to use, & makes sure that things like the Task Bar will update.
The Relationships Diagram is a good way to get an overall view of what a database is keeping track of. It is also where relationships are defined. A relationship specifies how two tables connect to each other. As you build tables in Microsoft Ac…
Is your organization moving toward a cloud and mobile-first environment? In this transition, your IT department will encounter many challenges, such as navigating how to: Deploy new applications and services to a growing team Accommodate employee…
Suggested Courses

598 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question