Discussion Board

Results 1 to 7 of 7
  1. #1
    Regular Contributor abdullah.jobayer's Avatar
    Join Date
    Feb 2009
    Posts
    51
    Hi all

    Actually i have declared CAknSingleGraphicStyleListBox* iList.i can also draw image & text.but problem is i have to reduced image size of that list icon;

    How i can do it.please response quickly if possible

    With Regards
    Jobayer

  2. #2
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,673
    You should actually not need to do anything with teh size, instead you should load the icon with AknsUtils, and do not set any size to the icons, then they will be automatically set to the correct size when used with CAkn.. listboxes.

  3. #3
    Regular Contributor abdullah.jobayer's Avatar
    Join Date
    Feb 2009
    Posts
    51
    Thanks Sir Yaccua for reply

    So is it possible to reduce icon size of a listBox.

  4. #4
    Regular Contributor abdullah.jobayer's Avatar
    Join Date
    Feb 2009
    Posts
    51
    Thanks Sir Yaccua for reply

    So is it possible to reduce icon size of a listBox.
    If possible how can.

  5. #5
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,673
    I would assume so, at least if you use mbm images and use normal loading for them (i.e. not loading with AknsUtils), anyway, since the screen size are different, the actual required size would be different, thus I would recommend using the normal sizes that listboxes would want to use.

    You could also try loading the icons with AknsUtils, and then setting the size, and experimenting whether the listboxes would then not automatically resize the icons.

  6. #6
    Regular Contributor abdullah.jobayer's Avatar
    Join Date
    Feb 2009
    Posts
    51
    _LIT(LitFileName, "\\resource\\apps\\todo_svg.mif");
    fileName = LitFileName;

    CFbsBitmap* appIconBitmap = NULL;
    CFbsBitmap* appIconMask = NULL;
    TSize picture_size(5,5);


    for( i = 0 ; i < total_image ; i++ )
    {
    appIconBitmap = NULL;
    appIconMask = NULL;
    AknIconUtils::CreateIconL( appIconBitmap
    , appIconMask
    , fileName
    , iconId
    , iconId + 1);
    AknIconUtils::SetSize( appIconBitmap, picture_size );
    AknIconUtils::SetSize( appIconMask, picture_size );

    CleanupStack::PushL( appIconBitmap );
    CleanupStack::PushL( appIconMask );

    iconArray->AppendL( CGulIcon::NewL( appIconBitmap, appIconMask ) );

    CleanupStack::Pop(2); // bitmap, mask
    iconId = iconId + 2;
    }
    i am also changing icon size but not working where is my fault can u tell me.

    Thanks Yccua.

  7. #7
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,673
    I usually let the lists do the scaling by them selves, anyway, could indeed be that the list wants always do the resizing, anyway, you could maybe try out using mbm, and loading them with CFbsBitmap or CGulIcon functions without the AknIconUtils API, then they should not be re-sizeable at least AFAIK.

Similar Threads

  1. APPLICATION ICON SIZE for S60 3rd?
    By kompotFX in forum Symbian User Interface
    Replies: 13
    Last Post: 2007-07-21, 04:50
  2. Application Icon Size 6230i ?
    By internetlabor in forum Mobile Java General
    Replies: 0
    Last Post: 2006-06-14, 17:22
  3. [Themes] Correct icon size?
    By rufuz in forum Streaming and Video
    Replies: 1
    Last Post: 2006-03-01, 00:38
  4. Series60 Fp3 application icon size
    By mahmfa in forum Symbian User Interface
    Replies: 3
    Last Post: 2005-11-21, 13:28
  5. NDS List icon maximum size
    By Nokia_Archive in forum Mobile Java General
    Replies: 1
    Last Post: 2002-05-24, 13:39

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