hi all,
can you please let me know how to create drop down list box in symbian.
is it possible?
its urgent for me...
hi all,
can you please let me know how to create drop down list box in symbian.
is it possible?
its urgent for me...
There is no drop-down list box like native symbian UI control.
You should implement it by yourself.
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...
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.
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]
Also check CAknChoiceList if you are working on 5th edition.
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.
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