×

Discussion Board

Results 1 to 2 of 2

Thread: CGuiIcon

  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    15

    CGuiIcon

    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
    Join Date
    Mar 2003
    Posts
    371

    RE: CGuiIcon

    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
  •  
×