equal
deleted
inserted
replaced
180 void CXnFocusControl::Draw( const TRect& aRect, CWindowGc& aGc ) const |
180 void CXnFocusControl::Draw( const TRect& aRect, CWindowGc& aGc ) const |
181 { |
181 { |
182 if ( IsVisible() || iRefused ) |
182 if ( IsVisible() || iRefused ) |
183 { |
183 { |
184 CXnNode* node( iAppUiAdapter.UiEngine().FocusedNode() ); |
184 CXnNode* node( iAppUiAdapter.UiEngine().FocusedNode() ); |
185 |
185 |
186 if ( node ) |
186 if ( node ) |
187 { |
187 { |
|
188 CXnProperty* prop( NULL ); |
|
189 |
|
190 TRAP_IGNORE( prop = node->GetPropertyL( |
|
191 XnPropertyNames::common::KFocusAppearance ) ); |
|
192 |
|
193 if ( prop && prop->StringValue() == XnPropertyNames::KNone ) |
|
194 { |
|
195 // Current element refuses to draw focus appearance |
|
196 return; |
|
197 } |
|
198 |
188 TRect innerRect( aRect ); |
199 TRect innerRect( aRect ); |
189 |
200 |
190 innerRect.Shrink( |
201 innerRect.Shrink( |
191 KSkinGfxInnerRectShrink, KSkinGfxInnerRectShrink ); |
202 KSkinGfxInnerRectShrink, KSkinGfxInnerRectShrink ); |
192 |
203 |