473,609 Members | 1,868 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.tex tHighlight: [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 1576

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

Similar topics

1
7195
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 set it to something like a khaki or steel blue... there isnt a backcolor property for tabcontrol, nor there is a transparent property for it , so that i can place it on a panel and set the panels color to achieve the desired color... i dont know...
2
338
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 replaced by Control, ControlLight & ControlDark. The one i'm particularly interested in is Control which when rendered to the browser is actually output as buttonface. I need to be able to set the color (in the style attribute of the html) of a...
11
1363
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 (or similar) color must be used on display (much like the radar display) otherwise the captain will be blinded by the bright colors. When at night, the user clicks on a button to turn the application into night mode. I do not want to go through...
2
7880
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? I can cheat by... but its not quite what I want. Plus: if I use the cheat("Black") would this
1
2607
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 it has some values I don't want... Everything in the "SystemColor" enumeration actually (IE "ActiveBorder" "ControlDark").
5
1652
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
2796
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 colors Any suggestions??? Thanks
4
3945
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 draws a picture in the canvas. Next I have to place the canvas on the applet and there I got stuck because I don't know how to control the position of every canvas. How can I put a canvas exactly there where I want it to be? Here is my code so far:...
1
2219
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 System.Windows.Forms namespace. I want to use this control as a template for futher controls. Within this control i want to set some property values to be pre-defined for further derived controls. My base class looks like this:
0
8139
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8579
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8555
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8232
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6064
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4032
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4098
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1686
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1403
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.