multiselection listbox

Login to reply to this topic.
Mon, 2006-08-21 06:36
Joined: 2006-05-08
Forum posts: 75
HI,
   I do not have  idea how to create the multiseletion listbox  . i know  how to create dynamiclistbox but i do not know   about multiselection listbox , if any body knows please tell me .


thanks .

Tue, 2006-08-29 06:42
Joined: 2006-04-28
Forum posts: 84
Re: multiselection listbox
hi Sanjay

Try going through this tutorial. Hope this will clear your concept and the way to solve ur problem.

Cheers!!!

Nitin Sahdev
Symbian Developer

Tue, 2006-08-29 08:18
Joined: 2005-09-16
Forum posts: 141
Re: multiselection listbox
Hi,

Set the flag in ConstructL function for listbox as EMultiSelection.

Check Listbox example in sdk.


regards,
eswar

Mon, 2006-10-30 05:08
Joined: 2006-10-25
Forum posts: 27
Re: multiselection listbox
make changes in the rss file by including the listbox flag as EAknListBoxMultiselectionList and try.

Example is shown:

RESOURCE DIALOG r_multi_selection
    {
    flags = EGeneralQueryFlags;
    buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
    items =
        {
        DLG_LINE
            {
            type = EAknCtListQueryControl;
            id = EListQueryControl;
            control = AVKON_LIST_QUERY_CONTROL
                {
                 listtype = EAknCtSinglePopupMenuListBox;
                 listbox = LISTBOX
                    {
                    flags = EAknListBoxMultiselectionList;
                    height =5;
                    width =4;
                    };
                heading = qtn_aptv_multi_program_selection_title;
                };
            }
        };
    }
Tue, 2008-02-05 14:13
Joined: 2007-10-26
Forum posts: 36
Re: multiselection listbox

PLEASE CAN U POST ME hOW TO CREATE A SIMPLE LSIT BOX, i DONT WANT THE POP UP MENU LIST.

Tue, 2008-02-05 14:18
Joined: 2007-10-26
Forum posts: 36
Re: multiselection listbox

PLEASE Can Any body help me to write a code for for simple selection list and also multi selction list.

I have already created pop up menu list ( selction and multiselection list) using list query dialogs and resources. I want a simple menu list. Iam very much canfused.

1) RSS for selection list

RESOURCE DIALOG r_demo_list_query
{
flags = EGeneralQueryFlags;
buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
items =
{
DLG_LINE
{
type = EAknCtListQueryControl;
id = EListQueryControl;
control = AVKON_LIST_QUERY_CONTROL
{
listtype = EAknCtSinglePopupMenuListBox;
listbox = LISTBOX
{
flags = EAknListBoxMenuList;
height = 3;
width = 10;
array_id = r_demo_list_query_item;
};
heading = "Select one item:";
};
}
};
}

RESOURCE ARRAY r_demo_list_query_item
{
items =
{
LBUF {txt = "First item"; },
LBUF {txt = "Second item"; },
LBUF {txt = "Third item"; }
};
}




2) RSS for multiselection list

RESOURCE DIALOG r_demo_multiselection_query
{
flags = EGeneralQueryFlags;
buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
items =
{
DLG_LINE
{
type = EAknCtListQueryControl;
id = EListQueryControl;
control = AVKON_LIST_QUERY_CONTROL
{
listtype = EAknCtSingleGraphicPopupMenuListBox;
listbox = LISTBOX
{
flags = EAknListBoxMultiselectionList;
height = 3;
width = 3;
array_id = r_demo_multiselection_query_list_item;
};
heading = "Select items:";
};
}
};
}

RESOURCE ARRAY r_demo_multiselection_query_list_item
{
items =
{
LBUF { txt = "1\tItem1"; },
LBUF { txt = "1\tItem2"; },
LBUF { txt = "1\tItem3"; },
LBUF { txt = "1\tItem4"; },
LBUF { txt = "1\tItem5"; }
};
}

Now I bneed to write a code for dynamic list also HOw will it be? Please tell me the diff between pop up menu and menu list.

  • Login to reply to this topic.