×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Feb 2008
    Posts
    22

    input box with QueryWinL

    Hello,

    I want to use QueryWinL, but when I try to use it, my application is close. compilation is OK. My application use the camera and when user take snap I want display the message box
    I have try :
    TBool value = iEikonEnv->QueryWinL(_L("text"),_L("Continue?"));
    and this line too:
    TBool value = CEikonEnv::QueryWinL(_L("text"),_L("Continue?"));
    and this too
    TBool value = CEikonEnv::Static()->QueryWinL(_L("text"),_L("Continue?"));

    with CAknGlobalConfirmationQuery, initialisation failed
    CAknGlobalConfirmationQuery* temp = CAknGlobalConfirmationQuery::NewLC();

    could I use this function in particular class?

  2. #2
    Registered User
    Join Date
    Feb 2008
    Posts
    22

    Re: input box with QueryWinL

    I have forgotten to add library!! Carbide dont say, that he cant compile the .exe and he used the old .exe ... Finally I have use this code :

    //create yes or no message box
    CAknGlobalConfirmationQuery* pQ = CAknGlobalConfirmationQuery::NewL();
    CleanupStack::PushL(pQ);


    _LIT(KQuestion, "message display?");

    TRequestStatus theStat = KRequestPending;
    pQ->ShowConfirmationQueryL(theStat, KQuestion, R_AVKON_SOFTKEYS_YES_NO);
    User::WaitForRequest(theStat);

    CleanupStack::PopAndDestroy(pQ);
    //get respons of mesasge box
    TBool answer = (theStat.Int() == EAknSoftkeyYes);


    if(answer)
    {
    //key press is OK
    }

Similar Threads

  1. javascript set focus to input text box ??
    By zaponjanx in forum Browsing and Mark-ups
    Replies: 5
    Last Post: 2008-03-12, 09:52
  2. How to display input type in a find box with EPopup style?
    By yuxiaohui in forum Symbian User Interface
    Replies: 0
    Last Post: 2007-04-17, 10:16
  3. Edit box not taking character input
    By pankaj-jataayu in forum Symbian
    Replies: 7
    Last Post: 2005-07-21, 05:14
  4. can not input in find box
    By qianghstc in forum Symbian
    Replies: 1
    Last Post: 2004-07-14, 04:08
  5. numbers only input box
    By DanAvni in forum Browsing and Mark-ups
    Replies: 1
    Last Post: 2003-12-17, 11:50

Posting Permissions

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