Sponsored Content
Operating Systems Solaris Changing CDE FrontPanel Button Colors Post 302259557 by insamniac on Tuesday 18th of November 2008 11:57:24 AM
Old 11-18-2008
Changing CDE FrontPanel Button Colors

OK so I've been trying to figure this out on and off for about two years on Solaris 8, and now I'm trying to do it in Solaris 10 (which seem to have identical resource structures for Dtwm.)

I've created my own sleek, single row front panel with small custom icons, and smaller font so that it's less than 20% of the bulky original size. I've never been able to figure out how to change the color of individual buttons on my SWITCH.
They seem to play along with my dtstyle color settings no matter what type of nonsense I try to stick in my .Xdefaults or other various resource files..

I had pretty much given upon this vain desire assuming it was more involved than just changing some resource files... until this morning.. I came across someone using Trusted Solaris 8 and the buttons on the FrontPanel were color coded based on the security zone... He let me look at the resource files i could think of, but I couldn't find anything new... But I took it as a slap in the face.. Damn you Trusted Solaris. So this has to be possible... Someone out there must know! Haylp!! (plz/thx)
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Changing korn shell script text Menu colors?

Is it possible to change the color of text in a korn shell script Menu? I can change the color of session text through my telnet client but I want to be able to change color text in the Korn shell menu to highlight certain items. (6 Replies)
Discussion started by: darthur
6 Replies

2. UNIX for Dummies Questions & Answers

Script for using the Back button and the Close button

Here's a question I have for anyone that might be able to help me: I can write a html script that will allow the user to return to the previous page using the back button, and I can write a script that will allow the user to return to the previous page using the close button, but...is there a... (1 Reply)
Discussion started by: mdgibson
1 Replies

3. UNIX for Dummies Questions & Answers

changing the colors of nedit

I have only slight difference between remarks (gray) and code (black) using c and c++ how cani change remark to other color ? The option preferences/language mode/c++ doesn't help (0 Replies)
Discussion started by: eynkesef
0 Replies

4. Solaris

Changing the mouse pointer size in CDE

Hi Frnds, Can anybody of you suggest me hw to change the mouse pointer size in CDE..?? (0 Replies)
Discussion started by: sriram.s
0 Replies

5. UNIX for Dummies Questions & Answers

Changing middle mouse button for pasting to right mouse button in cygwin rxvt

Hi, I'm using rxvt in Cygwin and I'm wondering how to change my mouse bindings from the middle button for pasting to the right button. The main reason why I want to do this is because my laptop doesn't have a middle mouse button. Thanks for any help! (2 Replies)
Discussion started by: sayeo
2 Replies

6. OS X (Apple)

Changing OSX Terminal Man Page Colors

For a long time, when I type man anything on my Mac, both the manpage header fonts and the background was black, so I had to use my mouse to highlight the manpage output to read it. It was really annoying. The problem was the same both locally or using the terminal and going ssh somewhere. ... (1 Reply)
Discussion started by: Neo
1 Replies

7. Shell Programming and Scripting

Python- Changing background color on Button click

Hi, I am trying to write a python program which changes background color on click of button. However i am stuck up. Instead of changing the color currently it is creating a new frame every time. please look at the code and let me know how to correct it #!/usr/bin/env python from Tkinter... (0 Replies)
Discussion started by: vickylife
0 Replies

8. UNIX for Advanced & Expert Users

Changing colors for compiler errors/warnings

Hi, I am using GNU unix. And running a bash shell. Can anyone please tell me what is the command for changing the color of the compiler error/warning messages on the console. I think it is in .bashrc and do not know how. Thanks Pink (0 Replies)
Discussion started by: pink01
0 Replies

9. UNIX for Dummies Questions & Answers

Changing colors for compiler errors/warnings

Hi, I am using GNU unix. And running a bash shell. Can anyone please tell me what is the command for changing the color of the compiler error/warning messages on the console. I think it is in .bashrc and do not know how. Thanks Pink (1 Reply)
Discussion started by: pink01
1 Replies

10. UNIX Desktop Questions & Answers

How to migrate Solaris 10 CDE config to HP-UX CDE.

Hello, Do you guys by any chance know what is the best (if any ) way to move CDE configuration from a SOLARIS 10 machine to HP-UX? Just the config (actions, text files etc). Thanks in advance! (0 Replies)
Discussion started by: binary0x01
0 Replies
ico(n)							       Windows ICO handling							    ico(n)

__________________________________________________________________________________________________________________________________________________

NAME
ico - Reading and writing windows icons SYNOPSIS
package require Tcl 8.4 package require ico ?1.0.5? ::ico::icons file ?option value...? ::ico::iconMembers file name ?option value...? ::ico::getIcon file name ?option value...? ::ico::getIconByName file name ?option value...? ::ico::getFileIcon file ?option value...? ::ico::writeIcon file name depth data ?option value...? ::ico::copyIcon file index file2 index2 ?option value...? ::ico::EXEtoICO file ?dir? ::ico::clearCache ?file? ::ico::transparentColor image color ::ico::Show file ?option value...? _________________________________________________________________ DESCRIPTION
This package provides functions for reading and writing Windows icons from ICO, EXE, DLL, ICL, and BMP files. As used in this module an icon is a visual representation of an object. An icon consists of one or more images usually with varying resolution and color depth. Each icon and image has a resource identifier which may be a text string or a positive integer value. Most commands use this identifier to spec- ify which icon or image to operate on. API
::ico::icons file ?option value...? Returns a list of icons found in file where each element is the name or numeric ID. Recognizes the following options: -type fileFormat ::ico::iconMembers file name ?option value...? Returns a list of images that make up the icon with ID name. Each element is itself a sublist in the format {name width height bpp}. Recognizes the following options: -type fileFormat ::ico::getIcon file name ?option value...? Extracts the icon with ID name from file. The default -format is image which will return the name of a Tk image containing the icon. The resolution and color depth are selected with the ?-res?, ?-bpp?, and ?-exact? options. If -exact is specified and there is no exact match, an error is thrown. Optionally -image may be used to specify the name of the Tk image that is created. If -for- mat is colors then a list of color names in the #RRGGBB format is returned. Each list element is a horizontal row. Each horizontal row contains a list of colors for all the pixels in that row from left to right. If -format is name then the resource name of the image chosen is returned. This is useful for calling writeIcon or getIconByName. Recognizes the following options. -type fileFormat -format value -image value -res value -bpp value -exact value ::ico::getIconByName file name ?option value...? Extracts the image with ID name from file. This name should be the name of a specific image as returned by ::ico::iconMembers, not an icon name returned from ::ico::icons. If there is no matching resource ID in file an error is thrown. Recognizes the following options: -type fileFormat -format value ::ico::getFileIcon file ?option value...? This command is only functional when running under Windows. It reads the Windows registry to determine the display icon for file as it would appear in Explorer or similar. file does not need to exist and may also be specified as a file extension with a leading dot. If file is a directory or you specify the special name Folder then the icon representing a folder is returned. This command takes the same arguments and usage as getIcon: -format value -image value -res value -bpp value -exact value ::ico::writeIcon file name depth data ?option value...? Writes an image to file. name is the resource identifier of the image in file to write. When writing to an EXE, DLL, or ICL file you may only overwrite existing icons with an icon of the same dimensions and color depth. No icons may be added to these file types. When writing to BMP the name is ignored as this type can contain only one image. This means if the file already existed it is com- pletely overwritten. When writing to an ICO or ICODATA file if the name specified does not exist then an image is appended and will be named the next in sequence (the specified name is ignored). Images in ICO and ICODATA files may be overwritten with differing dimensions or color depths. Note that you will get strange results when displaying icons if you fail to change every image which makes up a given icon. integer depth (in) This argument must have a value of 1, 4, 8, 24, or 32. If data has more colors than the color depth allows an error will be generated. options data (in) This argument is either a list of colors in the format returned by ::ico::getIcon -format colors or the name of a Tk image. Recognizes the following options. -type fileFormat ::ico::copyIcon file index file2 index2 ?option value...? Copies the icon at index in file to index2 in file2. -fromtype fileFormat -totype fileFormat ::ico::EXEtoICO file ?dir? Extracts all icons from the executable file to ICO files placed in dir. ?dir? defaults to the directory file is located in. Icon files will be named in the form file-ID.ico where ID is the icon resource identifier. -type fileFormat ::ico::clearCache ?file? The ::ico::getIconList command caches icon offsets inside EXE, DLL, ICL, and ICO files in order to speed up extraction. This com- mand clears that cache for the specific ?file? or all files. ::ico::transparentColor image color If image is a single word it is assumed to be the name of a Tk image. All pixels matching color in the image will be set transpar- ent. Alternatively, image may be a color list in which case a modified list is returned. ::ico::Show file ?option value...? Application level command which displays a window showing all the icons in file and their name. -type fileFormat -parent pathName EXAMPLE
button .explore -image [::ico::getIcon explorer.exe 0 -name explore -res 16 -bpp 8] set i [lsearch -inline [::ico::iconMembers tclkit.exe 0] {* 32 32 8}] set colorlist [::ico::getIconByName tclkit.exe [lindex $i 0] -format colors] LIMITATIONS
Icons may not be added or removed from file types other than ICO. Icons in these files may only be replaced with icons of the same dimen- sions and color depth. Icons of 8bpp or lower must include black in the pallete, this means if your icon does not have black in it, you will need to leave a color free so that it may be included by writeIcon. There is currently no way to read alpha channel information from 32bpp icons. Tk images do not have an alpha channel so the only way to write a true 32bpp icon is from a color list. writing a 32bpp icon from a Tkimage is identical to writing a 24bpp icon. KEYWORDS
dll, entry, exe, ico, icon ico 1.0.5 ico(n)
All times are GMT -4. The time now is 09:36 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy