×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Mar 2004
    Posts
    73

    Selection list with find

    I have a dialog with the following resource, straight from the book:

    Code:
    RESOURCE DIALOG r_dialog {
      flags = EAknDialogSelectionList;
      buttons = R_AVKON_SOFTKEYS_OPTIONS_EXIT;
      items = {
        DLG_LINE {
          type = EAknCtSingleListBox;
          id = ESelectionListControl;
          control = LISTBOX {
            flags = EAknListBoxSelectionList;
            };
          },
        DLG_LINE {
          itemflags = EEikDlgItemNonFocusing;
          id = EFindControl;
          type = EAknCtSelectionListFixedFind;
          }
        };
      }
    Also, I call it as shown in the examples, and I also set

    Code:
    Container->SetupFind (CAknSelectionListDialog::EFixedFind);
    My problem is that, although the dialog works all right, the find field only appears when I start entering letters. I'd prefer to have it on screen constantly like in the built-in Contacts. I thought that FixedFind, in contrast to PopupFind, was supposed to do this but it doesn't seem to work that way.

    Thanks,
    Gabor

  2. #2
    Registered User
    Join Date
    May 2006
    Posts
    39

    Re: Selection list with find

    Hi,
    I think u might have solved ur problem and if so, plz help me to solve the same as I also want to create selection list in multipage dialog.

    In RSS file I m defining dialog with pages and pages with forms...bt in form ,if I write
    flags = EAknDialogSelectionList;
    //buttons = R_AVKON_SOFTKEYS_OK_BACK;
    items =
    {
    DLG_LINE
    {
    type = EAknCtSingleListBox;// specify ur list type here
    id = ESelectionListControl;
    control = LISTBOX
    {
    flags=EAknListBoxSelectionList|EAknListBoxLoopScrolling;
    array_id = r_list_box_array;
    };
    },
    DLG_LINE {
    itemflags = EEikDlgItemNonFocusing;
    id = EFindControl;
    type = EAknCtSelectionListFixedFind;

    it doesn't show anything on screen.if I only state
    DLG_LINE
    {
    type = EEikCtEdwin;
    prompt="Search";
    id = ElabelDlgCtrlIdPhone1;
    //itemflags = EEikDlgItemTakesEnterKey| EEikDlgItemOfferAllHotKeys;
    //itemflags = EEikDlgItemTakesEnterKey;
    control = EDWIN
    {
    //flags = EEikEdwinNoHorizScrolling;
    flags = EEikDlgItemTakesEnterKey;
    allowed_input_modes=EAknEditorTextInputMode;
    width = LABEL_EDWIN_WIDTH;
    maxlength = ElabelEdwinMaxLength;
    then i get pages with textfield

    So if u have solution then plz help.

    Thanx
    Meetee

Posting Permissions

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