×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Feb 2007
    Posts
    134

    Error position of ScrollBar of listbox

    Hi,eveyone:
    Here my code:

    void CMyContainer::SizeChanged()
    {
    TRect aRect=Rect();
    aRect.iTl.iY += 40;
    iListBox->SetRect(aRect);
    }

    After I adjust top of ListBox,the top of ScrollBar not change!! Still on old position.
    How to make ScrollBar adjust follow listbox?

  2. #2
    Regular Contributor
    Join Date
    Feb 2007
    Posts
    134

    Re: Error position of ScrollBar of listbox

    My platform is 9.2,

  3. #3
    Regular Contributor
    Join Date
    Aug 2006
    Location
    Cairo, Egypt
    Posts
    67

    Lightbulb Re: Error position of ScrollBar of listbox

    use the following code in your parent container SizeChanged
    TInt cY = the Y-Axis of list box;
    iListBox->ScrollBarFrame()->VerticalScrollBar()->SetPosition(TPoint(iListBox->ScrollBarFrame()->VerticalScrollBar()->Position().iX, cY));

Similar Threads

  1. ListBox Hide ScrollBar
    By muntain in forum Symbian User Interface
    Replies: 7
    Last Post: 2007-08-09, 09:17
  2. listbox wrong scrollbar position
    By koreson in forum Symbian User Interface
    Replies: 7
    Last Post: 2007-01-09, 07:36
  3. Can scrollbar of listbox change height?
    By chingking in forum Symbian User Interface
    Replies: 1
    Last Post: 2006-09-15, 06:29
  4. about listbox and scrollbar rect
    By xiaowato in forum Symbian
    Replies: 1
    Last Post: 2006-08-30, 06:15
  5. Scrollbar problem in Listbox.
    By mahavirjain in forum Symbian User Interface
    Replies: 0
    Last Post: 2006-06-27, 11:30

Posting Permissions

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