×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor
    Join Date
    Sep 2005
    Posts
    57

    Changing OK/CANCEL buttons in query control

    hi,

    i created a query control and i want to change the button and give my own buttons to it.can any body help me in this.

    this is the code i am using

    RESOURCE DIALOG r_buddy_msg_dialog
    {
    flags = EGeneralQueryFlags;
    buttons = R_BUDDY_SOFTKEYS_REPLY_CANCEL;//R_AVKON_SOFTKEYS_OK_CANCEL;
    items =
    {
    DLG_LINE
    {
    type = EAknCtQuery;
    id = EGeneralQuery;
    control = AVKON_CONFIRMATION_QUERY
    {
    layout = EConfirmationQueryLayout;
    label = "Do u want to exit";
    };
    }
    };
    }

    RESOURCE CBA r_buddy_softkeys_reply_cancel
    {
    buttons =
    {
    CBA_BUTTON
    {
    id = 0;
    txt = "Reply";
    },
    CBA_BUTTON
    {
    id = 1;
    txt = "Cancel";
    }
    };
    }

    when i try to compile this code it is giving me the error as "Link name not found" near the line ->buttons = R_BUDDY_SOFTKEYS_REPLY_CANCEL;

    please tell me what i have to here.


    Thanks and Regards,

  2. #2
    Nokia Developer Champion
    Join Date
    Jun 2005
    Location
    Beijing
    Posts
    5,578

    Re: Changing OK/CANCEL buttons in query control

    CBA_BUTTON
    {
    id = 0;
    txt = "Reply";
    },
    CBA_BUTTON
    {
    id = 1;
    txt = "Cancel";
    }

    U can try to change the value of id.
    Beover1984
    -----------
    Doing what comes naturally

  3. #3
    Super Contributor
    Join Date
    May 2005
    Location
    Hyderabad,India
    Posts
    704

    Re: Changing OK/CANCEL buttons in query control

    Hi,

    try this,

    RESOURCE DIALOG r_buddy_msg_dialog
    {
    flags = EGeneralQueryFlags;
    buttons = r_buddy_softkeys_reply_cancel;// in small

  4. #4
    Regular Contributor
    Join Date
    Sep 2005
    Posts
    57

    Re: Changing OK/CANCEL buttons in query control

    thanks eswar.it is working fine now.

Similar Threads

  1. Replies: 2
    Last Post: 2005-06-01, 07:49
  2. How to add buttons to the control pane?
    By eyvind1 in forum Mobile Java General
    Replies: 1
    Last Post: 2005-02-02, 04:42
  3. Replies: 1
    Last Post: 2004-11-25, 03:42
  4. dynamically changing CBA buttons
    By pratbrat77 in forum Symbian C++
    Replies: 8
    Last Post: 2004-04-07, 06:04
  5. Changing CBA buttons the right way
    By zipher in forum Symbian C++
    Replies: 0
    Last Post: 2002-11-18, 08:22

Posting Permissions

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