×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Aug 2010
    Posts
    5

    version s60_3rd_mr, without RemoveLocalItemDefs() interface, how to change scrollbar

    Hi, I have a problem when change scrollbar from custom skin to system skin dynamic.
    I use version s60_3rd_mr,but this version has no RemoveLocalItemDefs() interface, so i can't change scrollbar from custom skin to system skin dynamic. any suggestion about thisproblem?

  2. #2
    Registered User
    Join Date
    Aug 2010
    Posts
    5

    Re: version s60_3rd_mr, without RemoveLocalItemDefs() interface, how to change scroll

    I try following methord, but it dosen't work

    MAknsDataContext* aDataContext = AknsUtils:ataContext(this);
    aDataContext->ReleaseItem(KAknsIIDQsnCpScrollHandleMiddle);
    aDataContext->ReleaseItem(KAknsIIDQsnCpScrollHandleTop);
    aDataContext->ReleaseItem(KAknsIIDQsnCpScrollHandleBottom);
    aDataContext->ReleaseItem(KAknsIIDQsnCpScrollHandleBgTop);
    aDataContext->ReleaseItem(KAknsIIDQsnCpScrollHandleBgMiddle);
    aDataContext->ReleaseItem(KAknsIIDQsnCpScrollHandleBgBottom);
    aDataContext->ReleaseItem(KAknsIIDQsnCpScrollBgTop);
    aDataContext->ReleaseItem(KAknsIIDQsnCpScrollBgMiddle);
    aDataContext->ReleaseItem(KAknsIIDQsnCpScrollBgBottom);

  3. #3
    Registered User
    Join Date
    Aug 2010
    Posts
    5

    Re: version s60_3rd_mr, without RemoveLocalItemDefs() interface, how to change scroll

    any suggestions?

  4. #4
    Super Contributor
    Join Date
    Aug 2005
    Location
    india
    Posts
    2,078

    Re: version s60_3rd_mr, without RemoveLocalItemDefs() interface, how to change scroll

    Hi,

    can you try MAknsSkinInstance


    Regards,
    Mateen Maldar
    "Whatever the mind can conceive and believe, the mind can achieve"

  5. #5
    Registered User
    Join Date
    Aug 2010
    Posts
    5

    Re: version s60_3rd_mr, without RemoveLocalItemDefs() interface, how to change scroll

    I use MAknsSkinInstance to set custom scrollbar like this:
    CAknsItemDef* pDef = AknsUtils::CreateMaskedBitmapItemDefL(KAknsIIDQsnCpScrollBgTop,
    customSkinImagesFile,
    EMbmCustomskinScroll_bg, EMbmCustomskinScroll_bg_mask);
    AknsUtils::SkinInstance()->SetLocalItemDefL(pDef);
    , but in version s60_3rd_mr, MAknsSkinInstance has no method to change scrollbar skin from custom to system skin.
    In s60 5th version, MAknsSkinInstance has method RemoveLocalItemDefs() to remove custom skin, so I can change back to system skin in 5th version, but In s60_3rd_mr,I have no idea

Similar Threads

  1. Change ScrollBar Images - S60 5Th
    By c0107010 in forum Symbian
    Replies: 8
    Last Post: 2009-12-15, 09:01
  2. How to change position of ScrollBar?
    By zhangwei_Nirvana in forum Symbian User Interface
    Replies: 1
    Last Post: 2009-06-12, 14:33
  3. Replies: 0
    Last Post: 2008-12-28, 21:21
  4. How to change scrollbar type with the grid?
    By stevenhotw in forum Symbian
    Replies: 0
    Last Post: 2006-09-27, 09:44
  5. Can scrollbar of listbox change height?
    By chingking in forum Symbian User Interface
    Replies: 1
    Last Post: 2006-09-15, 06:29

Posting Permissions

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