×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Sep 2009
    Posts
    129

    Best way of loading the mbm file and getting icons from it

    Hello,

    I'm working on a CAknSingleGraphicStyleListBox list here and I have implemented the access to the mbm file in the following way :

    Code:
    TFileName iconfile(_L("\\resource\\apps\\MyApp.mbm"));
    And I am getting an icon from it using :
    Code:
    AknIconUtils::CreateIconL(myTestListIcon, myTestListMask, iconfile, 1, 2);
    Is there a better way to do this ? For example, I don't like the fact that the .mbm file path is hardcoded. And also the icon id and the mask id.

    Thank you in advance

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,144

    Re: Best way of loading the mbm file and getting icons from it

    Basically you should also specify the Drive on the path, it might fail if you do not specify it. Basically you can dynamically make the path as you wish, as well as make a logic to determine the ID's for the images in the files. it is 100% upto you on how you would want to do that, anyway, in the end you do need to specify what file is used, and where it is located, and what images from it needs to be loaded.

  3. #3
    Regular Contributor
    Join Date
    Sep 2009
    Posts
    129

    Re: Best way of loading the mbm file and getting icons from it

    Thank you for your answer

    Best Regards

Similar Threads

  1. how to load from .mbm file when it has multiple .bmp icons
    By tlr in forum Symbian User Interface
    Replies: 16
    Last Post: 2009-11-17, 07:40
  2. avkon.mbm icons
    By symbi4n_programmer in forum Symbian
    Replies: 6
    Last Post: 2009-08-07, 22:56
  3. About mbm icons
    By bmichel in forum Symbian
    Replies: 1
    Last Post: 2008-05-04, 06:56
  4. How to use .jpg file (not .mbm file) as icons on ListBox?
    By liuajie in forum Symbian User Interface
    Replies: 3
    Last Post: 2007-11-01, 12:13
  5. Loading Icons from MBM
    By ee7drs in forum Symbian
    Replies: 4
    Last Post: 2006-07-30, 04:35

Posting Permissions

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