idlehomescreen/xmluirendering/uiengine/src/xnfocuscontrol.cpp
changeset 2 08c6ee43b396
parent 0 f72a12da539e
child 15 ff572dfe6d86
--- a/idlehomescreen/xmluirendering/uiengine/src/xnfocuscontrol.cpp	Thu Jan 07 12:39:41 2010 +0200
+++ b/idlehomescreen/xmluirendering/uiengine/src/xnfocuscontrol.cpp	Mon Jan 18 20:10:36 2010 +0200
@@ -182,9 +182,20 @@
     if ( IsVisible() || iRefused ) 
         {                                       
         CXnNode* node( iAppUiAdapter.UiEngine().FocusedNode() );
-
+        
         if ( node )
-            {
+            {            
+            CXnProperty* prop( NULL );
+            
+            TRAP_IGNORE( prop = node->GetPropertyL( 
+                XnPropertyNames::common::KFocusAppearance ) );
+                                            
+            if ( prop && prop->StringValue() == XnPropertyNames::KNone )
+                {
+                // Current element refuses to draw focus appearance
+                return;
+                }
+            
             TRect innerRect( aRect );            
             
             innerRect.Shrink(