user interface - Cocoa focus ring color animation -


I want to use Focus Ring animation as an indicator of incorrect data in the field. So I'm sending first Respect First to Field and want Focus Ring to fade the default color from red.

I am wrestling with the core animation, but still have not found any way to do it. Is this possible?

I'm not sure that this strategy is in pursuance of HIV, it is often more common to have an area Displaying a constant sign shown is something that is not valid next to the field, but achieving the effect should not be very difficult, which you want.

It may be easy to use, instead of using the core animation, to attract simple focus rings, standard code normally goes something like the following:

  [nsGraphicsContactedSave GraphicsState]; NSSetFocusRingStyle (NSFocusRingOnly); [[Enkolar clear collar] set]; [[NSBZearpath Beziorated: Focused] Filled]; [NSGraphicsContext ReplaceGraphicsState];  

This code will be implemented in the drawRect: method of the custom sub-section of your control.

To attract the custom color focus ring, drag yourself the rectangle, and will not be able to benefit from the NSSetFocusRingStyle function. The color will disappear from NSAnimation, which will also control to redo itself. Because you are not using cocoa facilities to attract the focus ring, you probably have to take the contents of your scene in, so that you have a place to pull the ring.

More information about NSNIMENTs is available in


Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -