List notes that can be marked

Source: Internet
Author: User

The cakndoublestylelistbox list is used during the test.

First, add the eaknlistboxmarkablelist when constructing the list:
Ilistbox-> constructl (this, eaknlistboxmarkablelist );

Or do not use this sentence directly in the RSS file:

Resource ListBox r_contact_list_box_list_box
{
Flags = eaknlistboxmarkablelist;
}
Second:
Add list icon
Void clisttolistbox: setuplistboxiconsl ()
{
_ Partition (kmlfile, "Z: // resource // apps // Multiviews. MBM ");
Ceikonenv * eikonenv = ceikonenv: static ();
Tfilename mbmfile (kmlfile );
Carrayptr <cgulicon> * icons = new (eleave) cakniconarray (3 );
Cleanupstack: pushl (icons );
Icons-> appendl (eikonenv-> createiconl (mbmfile, embmmultiviewslist_icon,
Embmmultiviewslist_icon_mask ));
// Icons-> appendl (eikonenv-> createiconl (mbmfile, embmmarkliststar, embmmarkliststarmask ));
Cleanupstack: Pop (icons );
Ilistbox-> itemdrawer ()-> formattedcelldata ()-> seticonarray (icons );
If (icons! = NULL)
{
Ilistbox-> itemdrawer ()-> columndata ()-> seticonarray (icons );
}
}
Finally:
Add a list tag related menu,
Add
.....
Menu_title
{
Menu_pane = r_avkon_menupane_markable_list;
}
.....

Process the menu command
Case eakn1_mark:
Case eakncmdunmark:
Case eaknmarkall:
Case eaknunmarkall:
{
Iappcontainer-> handlemarkcommandl (acommand); // transfer to the Container Control
Break;
}
You can.

 

In addition:

Const clistboxview: cselectionindexarray * selection =
Ilistbox-> selectionindexes ();

You can obtain the index value array of the marked item.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.