×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    40

    I don't understand the CreateIconL() -function

    Hi! I have some troubles with the CAknSingleLargeStyleListBox. The program falls when I try to draw the listbox. I think that the problem is with this CreateIconL() -function. I have studied the listbox example and tried the following:
    ...
    CArrayPtr<CGulIcon>* icons = new( ELeave ) CAknIconArray(1);
    CleanupStack::PushL(icons);
    icons->AppendL(iEikonEnv->CreateIconL(_L"z:\\system\\apps\\MyProg\\todoicon.mbm"),1,1));
    iListBox->ItemDrawer()->ColumnData()->SetIconArray(icons);
    CleanupStack::Pop();
    ...
    The mbm-file is copied from the SDK folders. What is the meaning of those two other parameters? I didn't understand it from the help.

    -Marw

  2. #2
    Registered User
    Join Date
    Mar 2003
    Posts
    34

    RE: I don't understand the CreateIconL() -function

    Please refer to sample application 'List' patiently. That should be very useful to solve your problem.

  3. #3
    Registered User
    Join Date
    Mar 2003
    Posts
    3
    Hi,
    I have the same problem.. I can't find the good clue in the sample.
    Did you solve your problem ?

  4. #4
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,167
    Hi
    in iEikonEnv->CreateIconL(_L"z:\\system\\apps\\MyProg\\todoicon.mbm",1,1));

    todoicon.mbm is the multi-bitmap file that has multiple bitmaps in it. The second parameter is the icon picture and the third is the icon mask. So most usually they shouldn't be same. For more information of masks see SDK help.

    yucca

Posting Permissions

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