Solved

FONTID problem with color calculation

Posted on 2009-05-14
11
321 Views
Last Modified: 2013-12-18
I am getting Color byte = 117 after using FontGetColor macro on fontid. But this value doesn't match to any of NOTES_COLOR_XXX. SO how can I calculate the color from FONTID?
In notes peek I can see it is displaying exact color.
SOrry it is for notes 7
0
Comment
Question by:prpradip
  • 6
  • 5
11 Comments
 
LVL 46

Accepted Solution

by:
Sjef Bosman earned 70 total points
ID: 24390900
http://www.keysolutions.com/notesFAQ/cancolor.html

Sadly, I don't know the hex-values for these colors...
0
 

Author Comment

by:prpradip
ID: 24404754
any better way please?
0
 

Author Comment

by:prpradip
ID: 24405715
is there any way to get the color in RGB using color code like 117 (in my case)
0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
LVL 46

Expert Comment

by:Sjef Bosman
ID: 24405763
0
 

Author Comment

by:prpradip
ID: 24408896
I need a code to convert that the value of color code to real color.
0
 
LVL 46

Expert Comment

by:Sjef Bosman
ID: 24409610
How about developing it yourself?? And then publish it?

Here's a way: create a screen that contains squares of all possible colour numbers, view it in a browser, use a colour picker to get the RGB values, put it in a table, and use that table in your code.
0
 

Author Comment

by:prpradip
ID: 24418901
Hey I have spent plenty of time to do so without success
0
 
LVL 46

Expert Comment

by:Sjef Bosman
ID: 24419236
0
 

Author Comment

by:prpradip
ID: 24419583
Thank you
Ya, I am spending more time and now begin to stop.
0
 

Author Comment

by:prpradip
ID: 24419862
Finally I found it. It uses the 140 color value index to do so. But I am still not satisfied because I am not getting API or list to do so.
0
 
LVL 46

Assisted Solution

by:Sjef Bosman
Sjef Bosman earned 70 total points
ID: 24419898
Be pragmatic. It is probably hard-coded in Notes, so do the same and document your code well. Or publish (part of) it in some forum.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Problem "Can you help me recover my changes?  I double-clicked the attachment, made changes, and then hit Save before closing it.  But when I try to re-open it, my changes are missing!"    Solution This solution opens the Outlook Secure Temp Fold…
This article covers general Notes 8.5 troubleshooting information including recreating the Notes\Data folder.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

809 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