473,407 Members | 2,320 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

SystemColor - how to set

I am trying to globally change the value of one of SystemColor fields.
Apparently, it is loaded from UIDefaults (this is largely a guessing game
since there is almost no documenation available) and it should be possible
to change it by setting the appropriate key/value pair in UIDefaults.

But this is what happens in reality:

1. I set textHighlight in UIDefaults as the first statement in main():

UIManager.put("textHighlight",new ColorUIResource(Color.red));

2. I print out the RGB value of SystemColor.textHighlight: [r=0,g=0,b=128]

This is the original color - nothing changed.

Am I missing something obvious here? If this is a wrong approach to setting
SystemColor values, what is the right one?
Alex Molochnikov
Gestalt Corporation

Jul 17 '05 #1
0 1566

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Iconoclast | last post by:
Hello friends, I am new to Vs.net and C# development environment... I wanted to know, how to change the background color of tabcontrol (which is set bydefault to systemcolor.control).. i want to...
2
by: Ade | last post by:
Hello, i've noticed that some old system colors have been left out of the current version of the .net framework, including ButtonFace, ButtonHighlight & ButtonShadow. It seems these have been...
11
by: anthony | last post by:
this one is really a challenge to me. the application i developed in VB.NET 2003 runs on marine boat, the application has many screens and controls. On a marine boat at night, only dark cyan...
2
by: Steve | last post by:
Hi, I would like to set the default value of a property on my control by: but can't because SystemColors.WindowText is not a constant. Microsoft controls do it, can I - is there a work round?...
1
by: NvrBst | last post by:
I have a dropdown list, then right now I simply call BGColorComboBox.DataSource = Enum.GetValues(typeof(KnownColor)); BGColorComboBox.SelectedItem = KnownColor.Black; Which works great except...
5
by: Pure Heart | last post by:
hi haw can i know that the user changed the xp color from olie to blue or silver ? -- Ammar S. Mitoori IT Head QIMCO Co. Tel : +9744831199 Mobile : +9745378400
3
by: Joe | last post by:
Hi I have a propertygrid that I allow the user to pick a system.color and I want to save to a file to load later onto the propertygrid. String and bool values work but I am unable to save...
4
by: foleyflint | last post by:
Hello, lately I've been trying to make an applet that has a background image and a couple of canvas objects on it holding an image each. I created the class ImageCanvas which extends Canvas adn...
1
by: =?Utf-8?B?Q2hyaXN0aWFuIFdlaW5lcnQ=?= | last post by:
Hello, I currently fight with a problem during the derivative of WinForm controls. In Visual Studio I created a new User Control. This control is derived from the DataGridView of the...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.