×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Oct 2006
    Location
    Tampere Finland
    Posts
    76

    Exclamation Search Field with List Box for E90

    Hi All,

    I am trying to make a search field with List Box. Everything working fine with normal screen size.

    For E90 Landscape I need the Listbox with search field to be like default contact app.

    But I am not able to reduce the size of listbox to half screen with search field. For normal listbox without search field he listbox is coming as supposed in half screen.

    This is my code for SizeChanged()

    Code:
    void CContactContainer::SizeChanged()
    {	
    if (iListBox)
    {
    			iListBox->SetExtent(TPoint(0,0),TSize(350,280));
    iListBox->ActivateL();
    
    if (iFindBox)
    {
    CAknColumnListBox* aknListBox = STATIC_CAST(CAknColumnListBox*,iListBox);
    AknFind::HandleFixedFindSizeChanged(this, aknListBox, iFindBox);
    }
    else
    {
    iListBox->SetRect(Rect()); 
    }
    }
    }
    Any pointers about how to do this. I tried setting SetMaximumWidth for the findbox. When I pass iListBox insted of this pointer than I am getting the correct size of listbox and search field but then my rest of window is white as its not getting painted and the Container size is reduced.

    Thanks a lot in advance.

    Cheers,
    Adi
    Cheers,
    Adi

    -------------------------------------------------------------------------------------------------
    I have had dreams and I have had nightmares. I overcame the nightmares because of my dreams…

  2. #2
    Regular Contributor
    Join Date
    Dec 2007
    Posts
    51

    Re: Search Field with List Box for E90

    Adi...you can find the size of the window which you wanna draw...
    for that you can use print screen command and after opening it into paint brush you can find out the size you want ....
    and in Setextent can paas this size.....

    hope it will work.......!!!


    ---------------------------------------
    Live & Let Live

  3. #3
    Registered User
    Join Date
    Oct 2006
    Location
    Tampere Finland
    Posts
    76

    Re: Search Field with List Box for E90

    Hi,

    Thanks a lot for your reply. I am getting the screen size.

    I just want to draw list box with search field in half screen and info about the selected item in list box in second half.

    I am able to do this without search field listbox.

    Regards,
    Adi
    Cheers,
    Adi

    -------------------------------------------------------------------------------------------------
    I have had dreams and I have had nightmares. I overcame the nightmares because of my dreams…

Similar Threads

  1. column list box not shown correctly in landscape mode.
    By praveena_R in forum Symbian User Interface
    Replies: 3
    Last Post: 2007-12-14, 10:14
  2. problem with list box
    By srkreddy999 in forum Symbian User Interface
    Replies: 2
    Last Post: 2005-09-30, 10:44
  3. Multi selection List Box
    By disamant in forum Symbian
    Replies: 0
    Last Post: 2005-08-27, 07:25
  4. Contact List Box
    By tripiri in forum Symbian User Interface
    Replies: 0
    Last Post: 2005-01-13, 12:13
  5. Change Search Field Font
    By Blkangel in forum Symbian
    Replies: 0
    Last Post: 2004-02-08, 16: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
  •  
×