×

Discussion Board

Results 1 to 11 of 11
  1. #1
    Registered User
    Join Date
    Mar 2003
    Location
    51°11'4.78"N -|- 2°48'27.05"E (Belgium)
    Posts
    730

    [moved] ListBox doesn't display the skin completly !

    Hi,

    hope that someone can find a solution to this problem, I have already work on it many and many days ...

    I have a ListBox derived from CEikColumnListBox; in fact, I need a special listbox with defined font, size, ...; my listbox must have 3 pre-defined columns : graphic, text, text (that's the reason why I have chosen CEikColumnListBox).
    All works fine except that the skin (theme) is not displayed entiretly behind the listbox, there is a small region at the bottom which stays white !! :



    the project is for S60 3rd edition.

    I have already tried to use a bakground context without success.

    I have tried on different devices (N80, N95, 6210) in resulting that the size of this white zone is different (I had noticed this problem on the 2nd edition too)

    Here attached is the small project into a zip file

    Thanks so so much in advance,
    Domi.
    d.hugo@skynet.be
    Attached Files Attached Files
    Last edited by Jeepy; 2009-07-09 at 08:40.
    ----------------------------------------------------------------------------------
    FExplorer is my baby !

    you can get the FREE version from www.gosymbian.com
    you can get the PRO version from http://store.ovi.com/content/339454

  2. #2
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,019

    Re: ListBox doesn't display the skin completly !

    hi..try setting the following in your Appui ConstructL:

    CEikStatusPane* sp = StatusPane();
    sp->SwitchLayoutL(R_AVKON_STATUS_PANE_LAYOUT_SMALL);

  3. #3
    Registered User
    Join Date
    Mar 2003
    Location
    51°11'4.78"N -|- 2°48'27.05"E (Belgium)
    Posts
    730

    Re: ListBox doesn't display the skin completly !

    thanks for your fast reply vineet.jain

    unfortunatly, this doesn't work (this crashes !!) and I don't want to change to look of the status pane or the control pane.

    Regards,
    Domi.
    ----------------------------------------------------------------------------------
    FExplorer is my baby !

    you can get the FREE version from www.gosymbian.com
    you can get the PRO version from http://store.ovi.com/content/339454

  4. #4
    Nokia Developer Champion
    Join Date
    Jan 2008
    Location
    Moscow, Russia
    Posts
    3,348

    Re: ListBox doesn't display the skin completly !

    I've checked attached sources and don't see any problems.

    Here is two screenshots: screenshot1 & screenshot2

    Which SDK version and IDE you are using?

  5. #5
    Registered User
    Join Date
    Mar 2003
    Location
    51°11'4.78"N -|- 2°48'27.05"E (Belgium)
    Posts
    730

    Re: [moved] ListBox doesn't display the skin completly !

    Hi A.A.M

    thanks for your test.

    I have tried 2 SDK :

    "S60 3rd Edition - Symbian OS v9.1" give me a bad result both on the emulator and the devices

    and

    "S60 3rd Edition SDK MR" dislays correctly on the emulator BUT gives an error on the devices (I have tried on the N95 and 6210)

    your screenshots have been taken from the emulator; that's the reason why it looks ok.

    kind regards,
    Domi.
    ----------------------------------------------------------------------------------
    FExplorer is my baby !

    you can get the FREE version from www.gosymbian.com
    you can get the PRO version from http://store.ovi.com/content/339454

  6. #6
    Registered User
    Join Date
    Dec 2008
    Posts
    16

    Re: [moved] ListBox doesn't display the skin completly !

    Hi,

    I got this problem too for S60 3rd FP1, FP2 and S60 5th edition, anyone have a solution for this issue?

  7. #7
    Registered User
    Join Date
    Dec 2008
    Posts
    16

    Re: [moved] ListBox doesn't display the skin completly !

    Anyone have a solution for this issue ? please help me :(

    Seems CEikColumnListBox wont skinned all listbox part(bottom part) properly

  8. #8
    Registered User
    Join Date
    Mar 2003
    Location
    51°11'4.78"N -|- 2°48'27.05"E (Belgium)
    Posts
    730

    Re: [moved] ListBox doesn't display the skin completly !

    The only solution I have found (and this works for me) is to re-write the listbox class derived from CEikTextListBox AND (the most important for this issue) is to re-write the itemdrawer derived from CListItemDrawer; you use the skin there.

    Domi.
    ----------------------------------------------------------------------------------
    FExplorer is my baby !

    you can get the FREE version from www.gosymbian.com
    you can get the PRO version from http://store.ovi.com/content/339454

  9. #9
    Regular Contributor
    Join Date
    Jan 2009
    Posts
    61

    Re: [moved] ListBox doesn't display the skin completly !

    Quote Originally Posted by Jeepy View Post
    The only solution I have found (and this works for me) is to re-write the listbox class derived from CEikTextListBox AND (the most important for this issue) is to re-write the itemdrawer derived from CListItemDrawer; you use the skin there.

    Domi.
    I have a much easier answer - took me hours to find the solution. After setting the list box rectangle add the code which sets list box's view rectangle to the same value as the size. Here is my code from SizeChanged function of the container class:
    Code:
            
    EXPORT_C void CSettingsContainer::SizeChanged()
    {
        //ipCurrentControl is of type CCoeControl and points to currently visible control
        if(ipCurrentControl) 
            ipCurrentControl->SetRect(Rect());
        
        if(ipCurrentControl==ipListBox)
        {
            CListBoxView* pView = ipListBox->View();
            if(pView)
                pView->SetViewRect(Rect());
        }
    }
    Worked like a dream for me.

  10. #10
    Regular Contributor
    Join Date
    Jan 2009
    Posts
    61

    Re: [moved] ListBox doesn't display the skin completly !

    Quote Originally Posted by palringosymbian View Post
    I have a much easier answer - took me hours to find the solution. After setting the list box rectangle add the code which sets list box's view rectangle to the same value as the size. Here is my code from SizeChanged function of the container class:
    Code:
            
    EXPORT_C void CSettingsContainer::SizeChanged()
    {
        //ipCurrentControl is of type CCoeControl and points to currently visible control
        if(ipCurrentControl) 
            ipCurrentControl->SetRect(Rect());
        
        if(ipCurrentControl==ipListBox)
        {
            CListBoxView* pView = ipListBox->View();
            if(pView)
                pView->SetViewRect(Rect());
        }
    }
    This however does not solve the problem. As soon as you change to landscape mode the control shows the blank line again. One quick fix would be to recreate the damn control again.

  11. #11
    Registered User
    Join Date
    Mar 2003
    Location
    51°11'4.78"N -|- 2°48'27.05"E (Belgium)
    Posts
    730

    Re: [moved] ListBox doesn't display the skin completly !

    for me (have just tested), the code from palringosymbian does not work (I get no difference), my listbox is derived from CEikColumnListBox and not from an Akn... the basis class CEikColumnListBox doesn't handle the theme, only Akn.. does that and therefore you need to derive the itemdrawer too to re-implement the drawer of the skin.

    Or maybe I have missed something....; @palringosymbian : can you modify my project (zip from the first post) and re-post here with your modification please ? - thanks !

    Domi.
    ----------------------------------------------------------------------------------
    FExplorer is my baby !

    you can get the FREE version from www.gosymbian.com
    you can get the PRO version from http://store.ovi.com/content/339454

Similar Threads

  1. skin not displayed in custom listbox....
    By Neelakantan in forum Symbian User Interface
    Replies: 10
    Last Post: 2010-06-20, 09:14
  2. [moved] display text at top of the screen
    By saniat.rasel in forum Symbian
    Replies: 3
    Last Post: 2009-02-17, 08:13
  3. [moved] ListBox not visible
    By ash_leo in forum Symbian User Interface
    Replies: 4
    Last Post: 2008-11-12, 08:00
  4. Replies: 2
    Last Post: 2006-11-29, 08:35
  5. display form on click of listbox item
    By Kapil Kaushik in forum Symbian
    Replies: 0
    Last Post: 2006-03-16, 09:38

Posting Permissions

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