On Nov 23, 2006, at 7:02 AM, Carlos M wrote:
If all OS systems have support for Highlight Text Color, please
implement it.
It's often required when using the HighlightColor, mainly with
ListBoxes.
I just saw this. In a sense you do have this with the built in
highlight() function in RB... But it's not so simple...
Empirically it looks OSX uses 3 different highlight colors:
1) A text editing highlighting color (which is what Highlight returns)
2) a darker highlight color used to highlight a selected object
(Listbox Row, MenuItem, Text area of an icon)
3) an inactive "gray" highlight color for when the window goes into
he background
For windows 1 & 2 seem to be the same and Highlight returns. 3 can
be gotten from declares
In Classic 1 & 2 seem to be the same (and again is what is returned
by Hilight() ) but it has no 3 - when not active no highlight shows.
For OSX all 3 can be gotten by declares but 2 is not documented but
the constant to pass to the declare is -5
As far as I can see getting the color is XP is a real pain because of
"themes" and I can't get the themed version of the declare call for
colors to work... You can still get the system colors but in some
cases they might not be right without the themed call.
I have a small project I wrote yesterday that lets one browse all the
system colors on Mac and Windows (but not theme aware on XP) via
declares
- Karen
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>