×

Discussion Board

Results 1 to 9 of 9
  1. #1
    Regular Contributor
    Join Date
    Sep 2007
    Posts
    55

    how to create drop down on symbian

    hi all,

    can you please let me know how to create drop down list box in symbian.

    is it possible?

    its urgent for me...

  2. #2
    Super Contributor
    Join Date
    Jul 2007
    Location
    Beijing, China
    Posts
    538

    Re: how to create drop down on symbian

    There is no drop-down list box like native symbian UI control.
    You should implement it by yourself.

  3. #3
    Regular Contributor
    Join Date
    Sep 2007
    Posts
    55

    Re: how to create drop down on symbian

    Thanks JackSu for your quick reply..

    is there any example or syntax or code?
    it's urgent for me, i am using S60 3rd edition...

  4. #4
    Regular Contributor
    Join Date
    Sep 2007
    Posts
    55

    Re: how to create drop down on symbian

    hi,
    can anyone help me how to put the values in drop down list?
    for example if i select the country i want the list of countries.

  5. #5
    Regular Contributor
    Join Date
    Sep 2007
    Posts
    55

    Re: how to create drop down on symbian

    hi...
    is there any one help me here.....

  6. #6
    Super Contributor
    Join Date
    Nov 2004
    Location
    Wiltshire, UK
    Posts
    3,644

    Re: how to create drop down on symbian

    Use a CAknPopupField.

    Search the wiki, supplied documentation, example code and the internet for examples on how to use this control.
    Download Symbian OS now! [url]http://developer.symbian.org[/url]

  7. #7
    Nokia Developer Champion
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034

    Re: how to create drop down on symbian

    Also check CAknChoiceList if you are working on 5th edition.

  8. #8
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,566

    Re: how to create drop down on symbian

    When something is urgent, try providing a better description. Based on the use-case you have mentioned, I think you would be happy with a popup list. Search for popup in the Wiki.

  9. #9
    Regular Contributor
    Join Date
    Sep 2007
    Posts
    55

    Re: how to create drop down on symbian

    hi i am creating combobox i got two errors in my code can you please let where i am put wrong step please...

    Errors:

    --->illegal access from 'CEikListBox' to protected/private member 'CEikListBox::ConstructL(const CCoeControl *, int)' on symbian

    ---> illegal implicit conversion from 'MListBox Model *' to - 'CTextListBoxModel *'

    My Code:


    CEikListBox* list = new( ELeave ) CAknSinglePopupMenuStyleListBox;
    CleanupStack::PushL( list );
    TInt flags( /*CEikListBox::EPopout |*/ CEikListBox::ELeftDownInViewRect );

    CAknPopupList* popup = CAknPopupList::NewL(list, R_AVKON_SOFTKEYS_OK_BACK, AknPopupLayouts::EMenuWindow);
    CleanupStack::PushL( popup );
    list->ConstructL(popup,flags);
    // Finish list initialization:
    list->View()->SetListEmptyTextL( _L( "List is empty" ) );
    list->CreateScrollBarFrameL( ETrue );
    list->ScrollBarFrame()->SetScrollBarVisibilityL(
    CEikScrollBarFrame::EOff,
    CEikScrollBarFrame::EAuto);
    // Add items to the list:
    CDesCArrayFlat* items = new(ELeave)CDesCArrayFlat( 1 );
    CleanupStack::PushL( items );
    for ( TInt ii=0; ii<8; ii++ )
    {
    TBuf<80> text;
    text.Format( _L( "Listbox Item %d" ), ii+1 );
    items->AppendL( text );
    }


    CTextListBoxModel* model=list->Model();
    model->SetItemTextArray( items );
    model->SetOwnershipType( ELbmOwnsItemArray );
    CleanupStack::Pop(2); // items

Similar Threads

  1. Replies: 3
    Last Post: 2009-04-16, 14:51
  2. create sis file symbian
    By sis1987 in forum Mobile Java General
    Replies: 1
    Last Post: 2008-04-19, 14:16
  3. How to create SSL socket on Symbian OS
    By gpalvia in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2004-05-12, 11:34
  4. Global Symbian Development Opportunities *High Importance*
    By sara.lindsay in forum Symbian C++
    Replies: 2
    Last Post: 2004-05-08, 09:09
  5. Global Symbian Development Opportunities *High Importance*
    By sara.lindsay in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 2004-05-07, 12:17

Posting Permissions

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