Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

printf

macrumors regular
Original poster
Aug 27, 2008
105
0
when a control, such as a text edit control is activated by the user, it is decorated with a glow that matches the users appearance theme to indicate the control has focus. i'm not sure what the technical name for this feature is, but if you reply to this post, when you click on the 'title' or 'message' text boxes, you'll see the behavior i'm referring to.

i've seen it done before though - photoshop cs3, for example does it in their adjustments dialogs - like Brightness/Contrast. anyone have any idea how?




if you care to know why i'd want to do this, you can read the following ramblings:
i have a few controls in a dialog where this 'glow' looks less than stellar against the background and i was wondering how it can be turned off. i also have one control that is positioned right next to an icon drawn to the window, to give the effect of a single control. however, when focus is placed on the control, the icon, obviously is left out of all the glowing fun and the illusion is lost. :/
 

printf

macrumors regular
Original poster
Aug 27, 2008
105
0
perfect, my app is carbon as well - what did they use to build their controls? specifically their text edit controls?
 

garethlewis2

macrumors 6502
Dec 6, 2006
277
1
They have their own cross development platform, this includes compiler, gui builder, etc. They don't use Xcode or any other tools, it would make it impossible for them to build an app for Windows and Mac otherwise.
 

kainjow

Moderator emeritus
Jun 15, 2000
7,958
7
It's called a focus ring. In 10.5+ you can use HIViewShowsFocus() to enable or disable it, but I can't find the non-HIView method that would work on 10.4.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.