Solved

Screen->Appearance->Colors

Posted on 1997-09-14
2
146 Views
Last Modified: 2010-04-04
I want to implement something like the box dialog box from Windows 95 you get to see when you select Color panel->screen (or something, I have a dutch version) ->Appearance>Colors

First for a custom colorable item, there appears a colorbox containing 20 (21 in case of a custom color) colors.
16 of these colors are fixed: these are the ones selectable
in Delphi (clBlack, clNavy, clMaroon and so forth).
4 of the rest can differs, depending on your active color
scheme (this are the last four: in fact they are
   PaletteIndex 8 9 10 11
or PaletteIndex 9 8 10 11

Part 1 of my question: When does 9 come before 8?
(It is not only depending on the lightness)

part 2 of my question:
After pressing the Others.. button,
on the left you get a 8*6 matrix of predefined (some dithered) colors. Which RGB values do they have?

I consider this question answered if part two is answered.
An answer to part 1 would be very nice to.


0
Comment
Question by:miauw
2 Comments
 
LVL 3

Accepted Solution

by:
mirek071497 earned 80 total points
ID: 1344831
When you click on the 8x6 matrix you can read RGB values for them. This is displayed in the right buttom corner

I write this values for the 1 row
(255,128,128),(255,255,128),(128,255,128),(0,255,128),(128,255,255),(0,128,255),(255,128,192),(255,128,255)

Why this values not others ? This is from algorithm for calculating saturation(i don't remember name but probably HSE algoritm). I have not now this algoritm, but if you need i can find this.

0
 

Author Comment

by:miauw
ID: 1344832
Thanks Mirek.
I totally overlooked it. But have been looking to long
to the screen.

Do you have the answer for the first part as well?


0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

708 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now