×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor
    Join Date
    Jan 2004
    Location
    North East England
    Posts
    57

    Series60 - Query dialog with custom text

    Hi all,

    Im looking for a way to create a yes/no query dialog, but rather than yes/no (or ok/cancel) I'd like it to be Login/Register. Alternatively, any other suggestions of a suitable way of make the user make such a choice are welcome.

    I guess I could word the text of a Yes/No to be something like
    'Have you already registered?', but thats a real last resort.



    Cheers,
    Stew

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,169
    you could set the texts, by defining your own buttons in the resource definition for your query dialog.

    yucca

  3. #3
    Regular Contributor
    Join Date
    Jan 2004
    Location
    North East England
    Posts
    57
    Thanks Yucca. Didn't know you could do that; didn't (and still dont) see any mention of it in the sdk documentation.

    Just says:

    buttons Set the type of soft key.
    R_AVKON_SOFTKEYS_OK_CANCEL : OK/Cancel
    R_AVKON_SOFTKEYS_YES_NO : Yes/No



    Know of any comprehensive resource file documentation? - that is where I seem to get stuck the most. I've got a few books, but its all just selected examples.

  4. #4
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,169
    Hi

    I have been quite happy with the standard buttons in the queries, but anyway you could try something like this, it might work (haven't tried myself, so don't really know)

    RESOURCE CBA r_mycba_cba
    {
    buttons=
    {
    CBA_BUTTON
    {
    id=EAknSoftkeyOk;
    txt="Register";
    },
    CBA_BUTTON
    {
    id=EAknSoftkeyCancel;
    txt="Login";
    }
    };
    }

    yucca

  5. #5
    Regular Contributor
    Join Date
    Jan 2004
    Location
    North East England
    Posts
    57
    That works great Yucca, thanks.

    I've learned more from reading your posts (not just to my questions) than from the sdk docs and both my books put together.

    Keep up your contributions. Thanks.

Posting Permissions

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