Discussion Board

Results 1 to 2 of 2

Thread: CGuiIcon

  1. #1
    Registered User s60's Avatar
    Join Date
    Mar 2003
    Posts
    15
    The class CGuiIcon's setBitmap method does not seem to be working
    Has anybody used this class or has any ideas why it is not working

  2. #2
    Regular Contributor maokkone's Avatar
    Join Date
    Mar 2003
    Posts
    371
    Hi,

    It might be easier to use CEikonEnv::CreateIconL() function to create an instance of CGulIcon.

    _LIT(KBitmapFile,"\\System\\Apps\\MyApplication\\icons.mbm");

    CGulIcon* myIcon = CEikonEnv::Static()->CreateIconL(KBitmapFile,
    EIcon_25x20i, EIcon_25x20m);


    Define bitmaps for icons in your .hrh in same order as they are in .mbm file.

    enum TMyApplicationMbms
    {
    EIcon_25x20i,
    EIcon_25x20m
    };

    I hope this helps!

    Regards,
    Marko / Forum Nokia

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved