成功产品

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

3PROGRAMMER4WDJJavaProMSDNMagazineVisualStudio.NETMagazine57CONTENTS=new(ELeave)CEikLabel;iLabel-SetContainerWindowL(*this);iLabel-SetTextL(_L(ExampleView));iToDoLabel=new(ELeave)CEikLabel;iToDoLabel-SetContainerWindowL(*this);iToDoLabel-SetTextL(_L(AddYourcontrolshere));iLabel=new(ELeave)CEikLabel;iLabel-SetContainerWindowL(*this);iLabel-SetTextL(_L(Move2008SymbianNз?×é));iToDoLabel=new(ELeave)CEikLabel;iToDoLabel-SetContainerWindowL(*this);iToDoLabel-SetTextL(_L());u55uvvuuuu#{Minimalapplication},(0x10004299),1,0,0;OnlytwofilestoinstallfortheminimalapplicationHelloWorld.app-!:\system\apps\HelloWorld\HelloWorld.appHelloWorld.rsc-!:\system\apps\HelloWorld\HelloWorld.rscPROGRAMMER5657TCharFormatdefaultFormat;TCharFormatMaskformatMask;formatMask.SetAttrib(EAttFontStrokeWeight);CRichText*text=iDisplay-RichText();text-Reset();for(inti=0;i10;++i){TPtrCboldText=getBoldPiece(i);TPtrCplainText=getRomanPiece(i);...TIntinsertPos=text-DocumentLength();text-SetInsertCharFormatL(*iCharFormat,formatMask,insertPos);text-InsertL(insertPos,boldText);text-CancelInsertCharFormat();insertPos=text-DocumentLength();text-SetInsertCharFormatL(defaultFormat,formatMask,insertPos);text-InsertL(insertPos,plainText);text-CancelInsertCharFormat();}CParaFormatparaFormat;TParaFormatMaskparaFormatMask;iDisplay-RichText()-GetParaFormatL(¶Format,paraFormatMask,0,iDisplay-TextLength());paraFormatMask.ClearAll();paraFormatMask.SetAttrib(EAttLineSpacing);paraFormatMask.SetAttrib(EAttLineSpacingControl);paraFormat.iLineSpacingControl=CParaFormat::ELineSpacingExactlyInTwips;CGraphicsDevice*screenDevice=iEikonEnv-ScreenDevice();TIntparaDelta;...TIntlineHeight=screenDevice-VerticalPixelsToTwips(iRegularFont-HeightInPixels()+paraDelta);paraFormat.iLineSpacingInTwips=lineHeight;iDisplay-RichText()-ApplyParaFormatL(¶Format,paraFormatMask,0,iDisplay-TextLength());TIntyPos=iDisplay-TextView()-ViewRect().iBr.iY;TViewYPosQualifieryPosQualifier;yPosQualifier.SetHotSpot(TViewYPosQualifier::EFViewBottomOfLine);yPosQualifier.SetMakeLineFullyVisible(TViewYPosQualifier::EFViewForceLineFullyVisible);iDisplay-TextView()-SetViewL(iDisplay-TextLength(),yPos,PROGRAMMER58yPosQualifier,CTextView::EFViewDiscardAllFormat);_LIT(KBoilerplate,Hellothere,%S);TPtrCname=GetPointerIntoNameDescriptorWithoutAllocatingAnyMemory();TPtrfinishedProduct=HBufC::NewLC(KBoilerplate().Length()+name.Length())-Des();finishedProduct.Format(KBoilerplate(),&name);//_LIT(KBoilerplate,Hellothere,%S);TPtrCname=GetPointerIntoNameDescriptorWithoutAllocatingAnyMemory();TPtrfinishedProduct=HBufC::NewLC(KBoilerplate().Length()+name.Length())-Des();finishedProduct.Format(KBoilerplate(),&name);////CleanupStack::Pop();59iPopout=new(ELeave)CEikColumnListBox;iPopout-ConstructL(NULL,CEikListBox::EPopout);iPopout-CreateScrollBarFrameL();iPopout-ScrollBarFrame()-SetScrollBarVisibilityL(CEikScrollBarFrame::EOff,CEikScrollBarFrame::EAuto);iPopout-SetObserver(this);TSizepopoutSize=TSize(width,height);TPointpopoutOrigin=TPoint(topLeft,bottomRight);iPopout-Model()-SetItemTextArray(iArray);iPopout-Model()-SetOwnershipType(ELbmDoesNotOwnItemArray);iPopout-ItemDrawer()-ColumnData()-SetColumnWidthPixelL(0,firstColWidth);iPopout-ItemDrawer()-ColumnData()-SetColumnWidthPixelL(1,secondColWidth);iPopout-SetExtent(popoutOrigin,popoutSize);iPopout-SetCurrentItemIndex(0);iEikonEnv-AddDialogLikeControlToStackL(iPopout);iPopout-ActivateL();iPopout-DrawNow();PROGRAMMER60uuuuuu61utttutttuttutttPROGRAMMER62uuuuuuuu[tinytp]filename=irda.prtindex=2irPod=jeteye7401irBaud=1

1 / 126
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功