×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Aug 2005
    Posts
    87

    CAknPopupSettingPage implementation

    Hi guys,

    I wonder how to implement CAknPopupSettingPage.

    Here is my history:

    first i declare res:

    Code:
    RESOURCE AVKON_SETTING_PAGE r_list_setting_page
    {
    	label = "fixme1";
    	type = EAknCtPopupSettingList;
    	editor_resource_id = r_list_editor;
    }
    
    RESOURCE POPUP_SETTING_LIST r_list_editor
    {
    	flags = 0;
    }

    the second i try to sho list:

    Code:
    			CDesC16ArrayFlat* pList = new ( ELeave ) CDesC16ArrayFlat( 10 );
    			CleanupStack::PushL( pList );
    			pList->AppendL( _L("111111111111") );
    			pList->AppendL( _L("222222222222") );
    			pList->AppendL( _L("333333333333") );
    
    			CAknQueryValueTextArray* pArray = CAknQueryValueTextArray::NewLC();
    			pArray->SetArray( *pList );
    			CAknQueryValueText* pItems = CAknQueryValueText::NewLC();
    			pItems->SetArrayL( pArray );
    			pItems->SetQueryCaption( R_COMMAND1_TEXT );
    			CAknPopupSettingPage* pPage = new ( ELeave ) CAknPopupSettingPage( R_LIST_SETTING_PAGE, *pItems );
    			TBool lRes = pPage->ExecuteLD();
    			
    			CleanupStack::PopAndDestroy( pItems );
    			CleanupStack::PopAndDestroy( pArray );
    			CleanupStack::PopAndDestroy( pList );
    on ExecuteLD() my emulator dies.

    what is wrong?

  2. #2
    Registered User
    Join Date
    Nov 2008
    Posts
    30

    Re: CAknPopupSettingPage implementation

    Quote Originally Posted by donDonald View Post
    Hi guys,

    I wonder how to implement CAknPopupSettingPage.

    Here is my history:

    first i declare res:

    Code:
    RESOURCE AVKON_SETTING_PAGE r_list_setting_page
    {
    	label = "fixme1";
    	type = EAknCtPopupSettingList;
    	editor_resource_id = r_list_editor;
    }
    
    RESOURCE POPUP_SETTING_LIST r_list_editor
    {
    	flags = 0;
    }

    the second i try to sho list:

    Code:
    			CDesC16ArrayFlat* pList = new ( ELeave ) CDesC16ArrayFlat( 10 );
    			CleanupStack::PushL( pList );
    			pList->AppendL( _L("111111111111") );
    			pList->AppendL( _L("222222222222") );
    			pList->AppendL( _L("333333333333") );
    
    			CAknQueryValueTextArray* pArray = CAknQueryValueTextArray::NewLC();
    			pArray->SetArray( *pList );
    			CAknQueryValueText* pItems = CAknQueryValueText::NewLC();
    			pItems->SetArrayL( pArray );
    			pItems->SetQueryCaption( R_COMMAND1_TEXT );
    			CAknPopupSettingPage* pPage = new ( ELeave ) CAknPopupSettingPage( R_LIST_SETTING_PAGE, *pItems );
    			TBool lRes = pPage->ExecuteLD();
    			
    			CleanupStack::PopAndDestroy( pItems );
    			CleanupStack::PopAndDestroy( pArray );
    			CleanupStack::PopAndDestroy( pList );
    on ExecuteLD() my emulator dies.

    what is wrong?
    Hai Donald,
    I Don't Know Whether You Find Answer Or Not.
    But Try It
    Call The ConstructL() Method After Constructing The Object.

    bye,
    Kamesh

Similar Threads

  1. SIP 3.0 SDK ECom implementation
    By cryptor in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2005-04-11, 12:04
  2. SAMS implementation and message id's
    By AlexGrig in forum General Messaging
    Replies: 0
    Last Post: 2005-04-01, 11:05
  3. MIDP 2.0 implementation
    By maxagaze in forum Mobile Java Networking & Messaging & Security
    Replies: 2
    Last Post: 2004-12-15, 14:05
  4. I have to complain some wrong implementation in Nokia6600
    By popeyelin in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2004-05-07, 14:51
  5. Replies: 1
    Last Post: 2003-04-18, 04:30

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×