×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Oct 2004
    Location
    Hamburg
    Posts
    58

    Question Dynamic PopupField

    Hi,

    i tried to generate a dynamic popupfield by CreateLineByTypeL. The following works fine - a popupfield will be added to my CAknForm, but the user can't choose a value by the enterkey (only by left/right). I think i must add the itemflags 'EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys' to the specific DLG_LINE.

    How can i do this on an automatic generated dialog line?

    Code:
            ////////////////////////////////////////////////////
    	// Dynamic Components
    	////////////////////////////////////////////
    	CCoeControl* popupControl = CreateLineByTypeL(_L("Question"),
                                                          ActivePageId(),
                                                          100,
                                                          EAknCtPopupFieldText,
                                                          NULL);	
    	
    	CAknPopupFieldText* popupQuestion = STATIC_CAST(CAknPopupFieldText*, 
                                                            popupControl);
    
    	TResourceReader reader;
    
    	iCoeEnv->CreateResourceReaderLC(reader, R_POPUP_DYNAMIC_QUESTION);
    	popupQuestion->ConstructFromResourceL(reader);
    	CleanupStack::PopAndDestroy(); //reader
    Resource declaration...

    Code:
    RESOURCE POPUP_FIELD_TEXT r_popup_dynamic_question {
    	popupfield = POPUP_FIELD {
    		width = KSettingsChoiceLength;
    	};
    	textarray = r_settings_choice_std;
    	active = 0;
    }
    
    RESOURCE ARRAY r_settings_choice_std {
    	items = {
    		LBUF { txt = qtn_appl_yes; },
    		LBUF { txt = qtn_appl_no; },
    		LBUF { txt = qtn_appl_ask; }
    	};
    }
    Thx & Cheers,

    Rasmus
    Last edited by grapentin; 2006-10-23 at 10:31.

  2. #2
    Regular Contributor
    Join Date
    Oct 2004
    Location
    Hamburg
    Posts
    58

    Thumbs up Re: Dynamic PopupField

    I found the solution in the form class:

    Code:
    Line(id)->SetOfferHotKeys(ETrue);
    Hope that helps someone...

Similar Threads

  1. Replies: 13
    Last Post: 2009-07-17, 17:13
  2. How to show note(any note) with dynamic text with no Timeout?????
    By advocatee in forum Symbian User Interface
    Replies: 3
    Last Post: 2009-01-28, 04:24
  3. Dynamic Menu
    By PankajNeve in forum Symbian
    Replies: 2
    Last Post: 2006-07-17, 05:58
  4. real dynamic menu???(how to create)
    By pahmed in forum Symbian User Interface
    Replies: 3
    Last Post: 2006-02-21, 01:58
  5. Dynamic Sub Menu creation
    By Blkangel in forum Symbian User Interface
    Replies: 4
    Last Post: 2005-08-08, 04:14

Posting Permissions

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