textinput/peninputhwrboxjp/src/peninputhwrboxwindow.cpp
branchRCL_3
changeset 10 6defe5d1bd39
parent 0 eb1f2e154e89
equal deleted inserted replaced
8:6ceef9a83b1a 10:6defe5d1bd39
   422 
   422 
   423     // Switch to vkb button
   423     // Switch to vkb button
   424     AddButtonL( EPeninutWindowCtrlIdSwitchToVkbBtn,
   424     AddButtonL( EPeninutWindowCtrlIdSwitchToVkbBtn,
   425                 EPeninputLayoutEventToVkb,
   425                 EPeninputLayoutEventToVkb,
   426                 R_PENINPUT_LAYOUT_HWR_VKB );
   426                 R_PENINPUT_LAYOUT_HWR_VKB );
   427 
   427     
   428     for ( TInt i = 0; i < iCtrlPool->ControlCount(); i++ )
   428     if( iCtrlPool != NULL )
   429         {
   429         {
   430         if ( iCtrlPool )
   430         for ( TInt i = 0; i < iCtrlPool->ControlCount(); i++ )
   431             {
   431             {
   432             iCtrlPool->ControlByIndex( i )->AddEventObserver( UiLayout() );
   432             iCtrlPool->ControlByIndex( i )->AddEventObserver( UiLayout() );
   433             }
   433             }
   434         }
   434         }
   435     }
   435     }