realbasic-nug
[Top] [All Lists]

Re: focus ring color

To: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Subject: Re: focus ring color
From: Philip Regan <rblists@oatmealandcoffee.com>
Date: Fri, 29 May 2009 12:47:15 -0400
Authentication-results: mx.google.com; spf=neutral (google.com: 74.124.194.228 is neither permitted nor denied by best guess record for domain of realbasic-nug-bounces@lists.realsoftware.com) smtp.mail=realbasic-nug-bounces@lists.realsoftware.com
Delivered-to: listarchive@realsoftware.com
In-reply-to: <8402C214-4D21-44B3-AFBC-5FDA3549A57D@verizon.net>
References: <CC755E8E-294F-423E-8DCA-9373EBBBDB77@verizon.net> <F2CD10B5-CB28-47A0-B64C-782953E273B5@shaw.ca> <8402C214-4D21-44B3-AFBC-5FDA3549A57D@verizon.net>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com

On May 29, 2009, at 11:40, Karen wrote:


On May 29, 2009, at 11:15 AM, Terry Ford wrote:

Is there an X-platform way to get the focus ring color so you can draw one yourself?

One problem is that on Mac, it's many separate colors, (as viewed with DigitalColor Meter). I don't know about Windows or Linux.


Because of Anti-aliasing and maybe a line width greater than 1? If so then only one color would suffice to draw it and a function such as :

    RealBasic.FocusRingColor would be all that is needed.

If it is truly is something more complex on OS X, then maybe we need functions like:
   Graphics.DrawFocusRect X, Y, Width, Height, ArcWidth, ArcHeight

   Graphics.DrawFocusOval X, Y, Width, Height

After looking at it with XScope, I think it's a 1-pixel outline of the control with a 2-pixel blur, probably generated with Quartz or CoreGraphics.

--
Philip Regan
http://www.oatmealandcoffee.com
Treasurer - Association of REALBasic Professionals
http://www.arbp.org
Mac OS 10.5, RB2008r3


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>