Community: Wiki

你在这里: You Are Here: Olet tässä: Vous êtes ici: Sie befinden sich hier: Tu sei qui: 現在のページ: Você está aqui: Вы здесь: Usted está aquí:
 

Talk:Changing Title Pane Text

From Forum Nokia Wiki


// a patched verison, which does not include subPane declaration // because CEikStatusPaneBase::TPaneCapabilities is an // inner class, it is not supposed to be declare as // an automatic in the function (causing problem). // And the TUid titlePaneUid is updated to TPaneId // although they are actually the same by #define, // the strongly typed compiler may have warning.


void CUi::ChangeTitle()

   {
   TPaneId titlePaneUid;
   CEikStatusPane * statusPane;
   // peter: subPane = xxx model is doing memory copy
   titlePaneUid.iUid = EEikStatusPaneUidTitle;
   statusPane = StatusPane();  // CAknAppUi


   // original:
   // if ( subPane.IsPresent() && subPane.IsAppOwned()... )
   if ( statusPane->PaneCapabilities(titlePaneUid).IsPresent()
     && statusPane->PaneCapabilities(titlePaneUid).IsAppOwned() )
       {
       HBufC* titleText;
       CAknTitlePane* titlePane ; 
       titlePane = 
           (CAknTitlePane*) statusPane->ControlL(titlePaneUid);

       // read the title text from the resource file
    
       titleText = StringLoader::LoadLC(R_TITLE_MAIN);

       // set the title pane's text
    
       titlePane->SetTextL(*titleText);
    
       CleanupStack::PopAndDestroy(titleText);
       }
   }
 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditFurlTechnocratiMagnoliaTwitter  Share this page Share this page Invite a friend Invite a friend
E-mail Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us Regional websites: Chinese Japanese © 2008 Nokia 
RDF Facets: qfnZtypeQUqfnTypeZCommunityContentQ qfnZtypeQUqfnTypeZWebpageQ qfnZtypeQUqfnTypeZWikiContentQ qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX