// ---------------------------------------------------------------------------- // CCreate2WayVideoSessionDialog::PreLayoutDynInitL() // . // ---------------------------------------------------------------------------- // void CCreate2WayVideoSessionDialog::PreLayoutDynInitL() { CEikEdwin* edwinPoCAddress = static_cast<CEikEdwin*>( Control( ESessionDialog2WayVideoRecipientAddress ) ); TBuf<KBufLength> defaultAddress; defaultAddress.Copy(iParams->iRecipentAddress); edwinPoCAddress->SetTextL(&defaultAddress); edwinPoCAddress->SetCursorPosL(defaultAddress.Length(),EFalse); CAknPopupFieldText* popupFieldText = static_cast <CAknPopupFieldText*> (Control(ESessionDialog2WayVideoVideoCodec)); popupFieldText->SetCurrentValueIndex(0); popupFieldText = static_cast <CAknPopupFieldText*> (Control(ESessionDialog2WayVideoAudioCodec)); popupFieldText->SetCurrentValueIndex(0); popupFieldText = static_cast <CAknPopupFieldText*> (Control(ESessionDialog2WayVideoViewFinder)); popupFieldText->SetCurrentValueIndex(0); popupFieldText = static_cast <CAknPopupFieldText*> (Control(ESessionDialog2WayVideoCamera)); popupFieldText->SetCurrentValueIndex(0); CAknForm::PreLayoutDynInitL(); }
void CStopwatchForm::PreLayoutDynInitL() { CEikDurationEditor* durationEd = (CEikDurationEditor*)Control( EStopwatchSettingDuration ); durationEd->SetDuration( iData->iDuration ); CAknPopupFieldText* popupFieldTextWhen = (CAknPopupFieldText*)Control( EStopwatchSettingPlayWhen ); popupFieldTextWhen->SetCurrentValueIndex( iData->iPlayWhenIndex ); CAknPopupFieldText* popupFieldTextWhat = (CAknPopupFieldText*)Control( EStopwatchSettingPlayWhat ); popupFieldTextWhat->SetCurrentValueIndex( iData->iPlayWhatIndex ); }
/* * Initialize the Layout for the form1. */ void CYPagesForm1::PreLayoutDynInitL() { CAknPopupFieldText* popupFieldText = static_cast <CAknPopupFieldText*> (ControlOrNull(EYPagesPopup)); if (popupFieldText) { popupFieldText->SetCurrentValueIndex (0); } }
/* * Initialize the Layout for the form. */ void CYPagesForm::PreLayoutDynInitL() { TInt currCityIndex = 0; // TInt for storing index of City. CAknPopupFieldText* popupFieldText = static_cast <CAknPopupFieldText*> (ControlOrNull(EYPagesPopup)); if (popupFieldText) { popupFieldText->SetCurrentValueIndex (currCityIndex); } }