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 .
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.
Forum posts: 84
Try going through this tutorial. Hope this will clear your concept and the way to solve ur problem.
Cheers!!!
Nitin Sahdev
Symbian Developer
Forum posts: 141
Set the flag in ConstructL function for listbox as EMultiSelection.
Check Listbox example in sdk.
regards,
eswar
Forum posts: 27
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;
};
}
};
}
Forum posts: 36
PLEASE CAN U POST ME hOW TO CREATE A SIMPLE LSIT BOX, i DONT WANT THE POP UP MENU LIST.
Forum posts: 36
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.