274 TRect parent( Rect() ); // parent for components |
274 TRect parent( Rect() ); // parent for components |
275 TRect editorParent( Rect() ); // parent for the editor |
275 TRect editorParent( Rect() ); // parent for the editor |
276 TRect rect( Rect() ); // rect of the whole shebang |
276 TRect rect( Rect() ); // rect of the whole shebang |
277 TAknLayoutRect r; // common temporary layout rect |
277 TAknLayoutRect r; // common temporary layout rect |
278 |
278 |
279 TAknWindowComponentLayout outline(0); |
|
280 TAknWindowLineLayout iconPos(0); |
|
281 TAknTextComponentLayout editor(0); |
|
282 |
|
283 TBool apac( AknLayoutUtils::Variant() == EApacVariant && ( iFlags & EShowIndicators ) ); |
279 TBool apac( AknLayoutUtils::Variant() == EApacVariant && ( iFlags & EShowIndicators ) ); |
|
280 |
|
281 TAknWindowComponentLayout outline = AknLayoutScalable_Avkon::input_find_pane(); |
|
282 TAknWindowLineLayout iconPos = AknLayoutScalable_Avkon::find_popup_pane_g1().LayoutLine(); |
|
283 TAknTextComponentLayout editor = AknLayoutScalable_Avkon::input_popup_find_pane_t1( apac ? 2 : 0 ); |
|
284 |
284 |
285 |
285 if ( iFlags & EPopupLayout ) // popup find box |
286 if ( iFlags & EPopupLayout ) // popup find box |
286 { |
287 { |
287 _AKNTRACE( "[%s][%s] PopupLayout", |
288 _AKNTRACE( "[%s][%s] PopupLayout", |
288 "CAknInputFrame", __FUNCTION__ ); |
289 "CAknInputFrame", __FUNCTION__ ); |
350 if ( !iInputContext ) |
351 if ( !iInputContext ) |
351 { |
352 { |
352 // we need to provide own context if one does not exist |
353 // we need to provide own context if one does not exist |
353 // because old style drawing did kind of work even |
354 // because old style drawing did kind of work even |
354 // without calling SetInputContext( ... ) |
355 // without calling SetInputContext( ... ) |
355 iInputContext = CAknsFrameBackgroundControlContext::NewL( |
356 TRAP_IGNORE |
356 KAknsIIDQsnFrInput, TRect(0,0,0,0), TRect(0,0,0,0), EFalse ); |
357 ( |
357 iFlags = iFlags | EOwnsInputContext; |
358 iInputContext = CAknsFrameBackgroundControlContext::NewL( |
358 // also need to provide skin for the editor in this case |
359 KAknsIIDQsnFrInput, TRect(0,0,0,0), TRect(0,0,0,0), EFalse); |
359 static_cast<CEikEdwin*>( iField )->SetSkinBackgroundControlContextL( iInputContext ); |
360 |
|
361 if (iInputContext) |
|
362 { |
|
363 iFlags = iFlags | EOwnsInputContext; |
|
364 // also need to provide skin for the editor in this case |
|
365 static_cast<CEikEdwin*>( iField )->SetSkinBackgroundControlContextL( iInputContext ); |
|
366 } |
|
367 ); |
360 } |
368 } |
361 |
369 |
362 if ( iInputContext ) |
370 if ( iInputContext ) |
363 { |
371 { |
364 // this layout is actually from form! |
372 // this layout is actually from form! |