×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Feb 2007
    Posts
    11

    icons are not getting displayed

    I am creating icons to show them as buttons on the view. For example These buttons could be something like play, forward and rewind buttons of a player.


    I am creating the icons in the following manner but the icons are not visible in the view. I want to create 12 icons i.e in 4 x 3 fashion.

    1) I had created bitmaps and created .mbm and .mbg file.
    2)in ConstructL() of the container i am doing this
    ibitmap1 = new (ELeave) CFbsBitmap();
    iMask1 = new (ELeave) CFbsBitmap();
    ibitmap2 = new (ELeave) CFbsBitmap();
    iMask2 = new (ELeave) CFbsBitmap();
    .
    .
    .
    .
    .
    .
    .
    ibitmap12 = new (ELeave) CFbsBitmap();
    iMask12 = new (ELeave) CFbsBitmap();
    TInt retVal = ibitmap1->Load(pbuf,EMbmDemo_mbmList_icon);
    retVal = ibitmap2->Load(pbuf,EMbmDemo_mbmMark_icon);

    AknIconUtils::CreateIconL(ibitmap1, iMask1, KMbmFileName, EMbmDemo_mbmList_icon, EMbmDemo_mbmList_icon_mask);
    AknIconUtils::CreateIconL(ibitmap2, iMask2, KMbmFileName, EMbmDemo_mbmMark_icon, EMbmDemo_mbmMark_icon_mask);
    .
    .
    .
    AknIconUtils::CreateIconL(ibitmap2, iMask2, KMbmFileName, EMbmDemo_mbmUnMark_icon, EMbmDemo_mbmUnMark_icon_mask);
    AknIconUtils::SetSize(ibitmap1,TPoint(10,10));
    AknIconUtils::SetSize(ibitmap2,TPoint(10,10));
    .
    .
    .
    AknIconUtils::SetSize(ibitmap12,TPoint(10,10));

    .
    In addtion to this do i need to handle anything else to draw the icons on the view. I want to handle certain commands based on the icons that i select. How to achieve this.
    Please reply me in case if u have any idea about this.
    Thanks

  2. #2
    Registered User
    Join Date
    Dec 2006
    Location
    Noida, India
    Posts
    150

    Re: icons are not getting displayed

    the goal will be easily achieved by using grid.. try to implement CAknGrid..

  3. #3
    Registered User
    Join Date
    Feb 2007
    Posts
    11

    Re: icons are not getting displayed

    Hi,
    I wanna have the following icons on the view. I dont think i can have a grid for this.
    I am planning to implement a winamp player type application. In that case i wanna have the following icons. How can i acieve this.
    pause, play, forward, reverse and stop buttons and the name of the song that is playing.

    5 buttons and one text editor.

    I know that if i use grid or list box i know that icons will get displayed properly because it internally takes care of icon drawing.

  4. #4
    Super Contributor
    Join Date
    May 2005
    Location
    Hyderabad,India
    Posts
    704

    Re: icons are not getting displayed

    Hi,

    For this, Divide the screen width with 4 and height with 3 and display the bitmaps using drawbitmap() function. And in offerkeyeventl() funtion handle left,right,up,and down arrows. Default It'll select the first rect.

    regards,
    eswar

Similar Threads

  1. code is compiled successfully but icons are not displayed on my Grids
    By jyotideep in forum Symbian User Interface
    Replies: 2
    Last Post: 2012-08-28, 10:51
  2. How to place flash-made icons in S60 Theme Studio?
    By heylife in forum Streaming and Video
    Replies: 0
    Last Post: 2006-03-21, 12:06
  3. Problem with listbox + icons
    By bojolex in forum Symbian
    Replies: 0
    Last Post: 2006-01-18, 11:28
  4. Problem with my 6265 (icons)
    By P4x in forum Mobile Java Tools & SDKs
    Replies: 0
    Last Post: 2006-01-11, 03:45
  5. Bitmap icons in List
    By billqu in forum Symbian
    Replies: 3
    Last Post: 2005-10-25, 18:12

Posting Permissions

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