351 if ( !iInputContext ) |
351 if ( !iInputContext ) |
352 { |
352 { |
353 // we need to provide own context if one does not exist |
353 // we need to provide own context if one does not exist |
354 // because old style drawing did kind of work even |
354 // because old style drawing did kind of work even |
355 // without calling SetInputContext( ... ) |
355 // without calling SetInputContext( ... ) |
356 iInputContext = CAknsFrameBackgroundControlContext::NewL( |
356 TRAP_IGNORE |
357 KAknsIIDQsnFrInput, TRect(0,0,0,0), TRect(0,0,0,0), EFalse ); |
357 ( |
358 iFlags = iFlags | EOwnsInputContext; |
358 iInputContext = CAknsFrameBackgroundControlContext::NewL( |
359 // also need to provide skin for the editor in this case |
359 KAknsIIDQsnFrInput, TRect(0,0,0,0), TRect(0,0,0,0), EFalse); |
360 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 ); |
361 } |
368 } |
362 |
369 |
363 if ( iInputContext ) |
370 if ( iInputContext ) |
364 { |
371 { |
365 // this layout is actually from form! |
372 // this layout is actually from form! |