×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Dec 2006
    Posts
    187

    Search Box Problem in Double Large Stylle List Box

    Hi,

    i have an application with 2 views and in first view i have created CAknSingleLargeStyleListBox and added CAknSearchField in it. it is working fine. And in second view i have created CAknDoubleLargeStyleListBox and added CAknSearchField but it does not appear clear as shown in attached image. And when i move from second Tab to First Tabs Application crashes but if i remove search box from Double Large List box its work fine from Second to Firts Tab & vice verca. can any body share code of double large style list box with search field.

    Regards
    Asif Nazir
    Attached Images Attached Images

  2. #2
    Super Contributor
    Join Date
    Mar 2004
    Location
    Bangalore,India
    Posts
    2,146

    Re: Search Box Problem in Double Large Stylle List Box

    Have you called the sizechanged on the listbox and the search field? Also what is the error code you are getting when you say the application crashes on tabbing?
    Cheers,
    Mayank

  3. #3
    Registered User
    Join Date
    Dec 2006
    Posts
    187

    Thumbs up Re: Search Box Problem in Double Large Stylle List Box

    Yes i m calling sizechanged and no error code appears.

    //Sizechanged code

    if (iListBox & iSearchField)
    {
    TInt findWindowResourceId( R_AVKON_FIND_PANE );
    TInt listAreaResourceId( R_AVKON_LIST_GEN_PANE_X );
    TInt findWindowParentId( R_AVKON_MAIN_PANE_PARENT_NONE );
    TBool flagsOfPopup( EFalse ); // Flag for find popup.
    AknFind::HandleFindSizeChanged(this, iListBox, iSearchField, flagsOfPopup, findWindowResourceId,listAreaResourceId, R_AVKON_LIST_GEN_PANE_WITH_FIND_POPUP,findWindowParentId );

    //AknFind::HandlePopupFindSizeChanged (this,iListBox, iSearchField);
    }
    else
    {
    iListBox->SetRect(Rect());
    }



    when i use commented line and comment all line above it then does not crash but search control not appears.

  4. #4
    Super Contributor
    Join Date
    Jul 2007
    Location
    Beijing, China
    Posts
    538

    Re: Search Box Problem in Double Large Stylle List Box

    use AknFind::HandleFixedFindSizeChanged( this, iListBox, iSearchField); in SizeChanged()

  5. #5
    Super Contributor
    Join Date
    Mar 2004
    Location
    Bangalore,India
    Posts
    2,146

    Re: Search Box Problem in Double Large Stylle List Box

    Comment all the other code and try this one out, this works on a CAknSingleGraphicStyleListBox(I have tested it), I would assume should work on a double style list box as well.

    Code:
    CAknColumnListBox* aknListBox = STATIC_CAST(CAknColumnListBox*,	/*YourListBox*/);
    AknFind::HandlePopupFindSizeChanged(this, aknListBox, /*Your search Box*/);
    Cheers,
    Mayank

  6. #6
    Registered User
    Join Date
    Dec 2006
    Posts
    187

    Re: Search Box Problem in Double Large Stylle List Box

    Thanks for reply

    i have already used , when i use AknFind::HandleFixedFindSizeChanged( this, iListBox, iSearchField);
    its gives a error of "error: illegal implicit conversion from 'CAknDoubleLargeStyleListBox *' to"

    and when i used "CAknColumnListBox* aknListBox = STATIC_CAST(CAknColumnListBox*, /*YourListBox*/);
    AknFind::HandlePopupFindSizeChanged(this, aknListBox, /*Your search Box*/);"

    it gives error illegal implicit conversion from CAknDoubleLargeStyleListBox* to.

    i have replace CAknColumnListBox with CAknDoubleLargeStyleListBox but search bar not shown as image attached

  7. #7
    Super Contributor
    Join Date
    Mar 2004
    Location
    Bangalore,India
    Posts
    2,146

    Re: Search Box Problem in Double Large Stylle List Box

    How about :-

    Code:
    CEikFormattedCellListBox* aknListBox = STATIC_CAST(CEikFormattedCellListBox*,	/*YourListBox*/);
    AknFind::HandlePopupFindSizeChanged(this, aknListBox, /*Your search Box*/);
    Cheers,
    Mayank

  8. #8
    Registered User
    Join Date
    Dec 2006
    Posts
    187

    Re: Search Box Problem in Double Large Stylle List Box

    yes i also tried this but at the end of list box white square box appears and when i change to portrait mode search box visible but also with littel small white square.
    Last edited by Asif Nazir; 2009-07-15 at 17:23.

Similar Threads

  1. Problem in pointer click on List Box items
    By gopishkumar in forum Symbian User Interface
    Replies: 3
    Last Post: 2009-08-17, 22:58
  2. Settings list box problem
    By vdharankar in forum Symbian User Interface
    Replies: 6
    Last Post: 2009-04-25, 07:49
  3. [moved] Problem in list box view
    By shahidur.rahman in forum Symbian User Interface
    Replies: 2
    Last Post: 2009-04-09, 15:14
  4. Search Field with List Box for E90
    By aditya4180 in forum Symbian User Interface
    Replies: 2
    Last Post: 2007-12-13, 15:21
  5. Strange Problem with List Box Size
    By aditya4180 in forum Symbian User Interface
    Replies: 2
    Last Post: 2007-03-03, 16: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
  •