void CMyListBoxAppView::ConstructL(const TRect& aRect) { iIsDoubleLine = 0; CreateWindowL(); CreateListBoxL(); iTitle = CCknAppTitle::NewL(CCknAppTitle::EList); iTitle->SetContainerWindowL(*this); HBufC* text = iCoeEnv->AllocReadResourceLC(R_APP_TITLE); iTitle->SetTextL(*text, CCknAppTitle::EMainTitle); CleanupStack::PopAndDestroy(text); TRect titleRect(1, 1, aRect.Width()-KShadowMargin, iTitle->MinimumSize().iHeight); iTitle->SetRect(titleRect); // Indicate that the control is blank SetBlank(); // Set the control's border //SetBorder(TGulBorder::EFlatContainer); // Set the correct application view (Note: ESkinAppViewWithCbaNoToolband is the default) CknEnv::Skin().SetAppViewType(ESkinAppViewWithCbaNoToolband); SetRect(aRect); ActivateL(); }
// --------------------------------------------------------------------------- // CTrkAppContainer::ConstructL // Symbian OS 2nd phase constructor // --------------------------------------------------------------------------- // void CTrkAppContainer::ConstructL(const TRect& aRect) { CreateWindowL(); //Window().SetShadowDisabled(EFalse); SetBlank(); SetRect(aRect); ActivateL(); }
void ReadFlags() { for (;; ++format_) { switch (*format_) { case _T('-'): SetLeftJustify(); break; case _T('+'): SetShowSignAlways(); break; case _T(' '): SetBlank(); break; case _T('#'): SetAlternateForm(); break; case _T('0'): SetFillZeros(); break; default: return; } } }
void CNRLTestControl::ConstructL (const TRect& aRect) { CreateWindowL(); Window().SetShadowDisabled(ETrue); Window().SetBackgroundColor(KRgbGray); EnableDragEvents(); SetRect(aRect); SetBlank(); TRect consoleSize = aRect; consoleSize.Shrink(1,1); iConsole=new(ELeave) CEikConsoleScreen; iConsole->ConstructL(_L("TEST"),TPoint(1,1),consoleSize.Size(),CEikConsoleScreen::ENoInitialCursor,EEikConsWinInPixels); }
// Set up console control void CConsoleControl::ConstructL() { CreateWindowL(); Window().SetShadowDisabled(ETrue); Window().SetBackgroundColor(KRgbGray); EnableDragEvents(); SetExtentToWholeScreen(); SetBlank(); iConsole=new(ELeave) CEikConsoleScreen; _LIT(KMsgExApp,"MsgExApp"); iConsole->ConstructL(KMsgExApp,0); iConsole->SetHistorySizeL(10,10); (iCoeEnv->WsSession()).SetAutoFlush(ETrue); iMenuHandler = new (ELeave) CMenuHandler(*iConsole,iBuffer); iMenuHandler->ConstructL(); }
void CPausedContainer::ConstructL(const TRect& aRect) { CreateWindowL(); SetBlank(); SetRect(aRect); //初始化BitMap变量 iBackupBitmap = new (ELeave) CWsBitmap(iCoeEnv->WsSession()); iBackupBitmap->Create(Rect().Size(), EColor16M); iBitmapDevice = CFbsBitmapDevice::NewL(iBackupBitmap); User::LeaveIfError(iBitmapDevice->CreateContext(iBitmapGc)); //初始化心跳包 iGfxTimer = new (ELeave) CGfxTimer(*this, NULL); iGfxTimer->ConstructL(); iGfxTimer->StartPulse(KONE_SECOND_IN_MICRO_SECONDS / KFRAMES_PER_SECOND); iIsFlagDelete = EFalse; TRAPD(err2, iBackGroundSheep= iEikonEnv->CreateBitmapL(_L("\\resource\\apps\\RS_Man.mbm"),EMbmRs_manSheepbg)); ActivateL(); }
void CRS_ManContainer::ConstructL(const TRect& aRect, CData* aData) { iData = aData; CreateWindowL(); SetBlank(); SetRect(aRect); //初始化BitMap变量 iBackupBitmap = new (ELeave) CWsBitmap(iCoeEnv->WsSession()); iBackupBitmap->Create(Rect().Size(), EColor16M); iBitmapDevice = CFbsBitmapDevice::NewL(iBackupBitmap); User::LeaveIfError(iBitmapDevice->CreateContext(iBitmapGc)); //初始化心跳包 //iFramesPerSecond = KFRAMES_PER_SECOND; //iScroll = SCROLL_SPEED_HIGH; iGfxTimer = new (ELeave) CGfxTimer(*this, NULL); iGfxTimer->ConstructL(); //iWoodPlayer = CAudioPlayer::NewL(_L("c:\\data\\RS_Man\\Sounds\\Wood.wav"), iData->iSoundDegree); iWoodPlayer = CAudioPlayer::NewL(*iData->iFilePathWood, iData->iSoundDegree); iStabPlayer = CAudioPlayer::NewL(*iData->iFilePathStab, iData->iSoundDegree); iMarblePlayer = CAudioPlayer::NewL(*iData->iFilePathMarble, iData->iSoundDegree); iConveyPlayer = CAudioPlayer::NewL(*iData->iFilePathConvey, iData->iSoundDegree); iNormalDeadPlayer = CAudioPlayer::NewL(*iData->iFilePathNormalDead, iData->iSoundDegree); iDropDeadPlayer = CAudioPlayer::NewL(*iData->iFilePathDropDead, iData->iSoundDegree); iSpringPlayer = CAudioPlayer::NewL(*iData->iFilePathSpring, iData->iSoundDegree); iSpringPlayer2 = CAudioPlayer::NewL(*iData->iFilePathSpring, iData->iSoundDegree); iCongratulationPlayer = CAudioPlayer::NewL(*iData->iFilePathCongratulations, iData->iSoundDegree); iSpringSoundSwitch = EFalse; iGfxTimer->StartPulse(KONE_SECOND_IN_MICRO_SECONDS / iData->iFramesPerSecond); iBitmapNum = new (ELeave) TBitmapNum; iBitmapNum->SetOriginNum(iData->iFloor, iData); iActionAnalyst.SetActionAnalystByLayoutType(iData->iLayoutType); iGameKey = TEnum::EKeyNone; iTicks = 0; //初始化Man iIsFlagDelete = EFalse; TRAPD(err3, iBackGround= iEikonEnv->CreateBitmapL(_L("\\resource\\apps\\RS_Man.mbm"),EMbmRs_manBackground)); ActivateL(); iCallMonitor = CCallMonitor::NewL(*this); iCallStatus = CTelephony::EStatusUnknown; }