×

Discussion Board

Results 1 to 10 of 10

Thread: softkeys

Hybrid View

  1. #1
    Regular Contributor
    Join Date
    Jul 2006
    Posts
    81

    softkeys

    Hi everybody,

    I'm working with an application for nokia series 60 and after I start it the lateral the button's labels don't appear,but the button work fine.

    Here the code I use in RSS:

    RESOURCE EIK_APP_INFO
    {
    menubar = r_myapp_menubar;
    hotkeys=r_myapp_hotkeys;
    cba = r_myapp_softkeys_options_next;
    }

    //-----------------------------------------------------------------------------

    RESOURCE CBA r_myapp_softkeys_options_next
    {
    buttons =
    {
    CBA_BUTTON
    {
    id = EAknSoftkeyOptions;
    txt = "option";
    },
    CBA_BUTTON
    {
    id = EAknSoftkeyBack;
    txt = "back";
    }
    };
    }

    My AppUi is defined:

    class CMyAppUi : public CAknViewAppUi

    What's wrong?!

    Regards

    Let

  2. #2
    Super Contributor
    Join Date
    Jul 2004
    Location
    Romania
    Posts
    560

    Re: softkeys

    There's nothing wrong with your resource definition.Are you sure the error is not in other place (eg Draw method) ?

  3. #3
    Regular Contributor
    Join Date
    Jul 2006
    Posts
    81

    Re: softkeys

    Thanks for your reply!!
    I call the method Draw overriden in my AppView:

    {
    CWindowGc& wndGc = SystemGc();
    if(iRunOnce)
    {
    wndGc.Clear();
    //Blit our picture on screen
    wndGc.BitBlt(TPoint(0,0),iBitmap);
    // flush the screen to update it immediately
    ControlEnv()->Flush();
    }
    else
    {
    // Cleaning up
    TRect drawRect = Rect();
    wndGc.Clear();
    wndGc.DrawRect(drawRect);

    }// Of If.

    }

    What's wrong here?

    Regards

  4. #4
    Super Contributor
    Join Date
    Jul 2004
    Location
    Romania
    Posts
    560

    Re: softkeys

    what exactly appears on your screen?

  5. #5
    Regular Contributor
    Join Date
    Jul 2006
    Posts
    81

    Re: softkeys

    A white screen and nothing else!

    Maybe in the bottom I should see:

    option back

    But don't appear!

  6. #6
    Super Contributor
    Join Date
    Jul 2004
    Location
    Romania
    Posts
    560

    Re: softkeys

    "A white screen and nothing else!"

    "
    // Cleaning up
    TRect drawRect = Rect();
    wndGc.Clear();
    wndGc.DrawRect(drawRect);
    "

    Suppose you you haven't set the rect in the rigth way

  7. #7
    Registered User
    Join Date
    Jan 2004
    Location
    The surburbs of Bangkok, Thailand
    Posts
    135

    Re: softkeys

    Dear letiziad,

    Please try the following:

    1. Adapt resource to

    RESOURCE EIK_APP_INFO
    {
    }

    RESOURCE AVKON_VIEW r_myapp_view
    {
    menubar = r_myapp_menubar;
    hotkeys=r_myapp_hotkeys;
    cba = r_myapp_softkeys_options_next;
    }

    2. In your CMyAppView

    void CMyAppView::ConstructL()
    {
    BaseConstructL(R_MYAPP_VIEW);
    }


    3. (If problem presists then) Make sure that in the DoActivateL of your CMyAppView has the following:

    iContainer->SetRect(ClientRect());
    iContainer->ActivateL();


    Hope that these simple steps can help. May God Guide.
    Liberate yourself from the enslavement of World Monopoly!

Similar Threads

  1. Change the text of softkeys at dynamically
    By jainybhai in forum Symbian
    Replies: 1
    Last Post: 2005-08-26, 03:47
  2. Control pane Softkeys
    By steve.ambler in forum Symbian
    Replies: 1
    Last Post: 2004-09-06, 11:08
  3. How to set icons for softkeys?
    By sreenivasuluy in forum Symbian User Interface
    Replies: 0
    Last Post: 2003-11-27, 09:37
  4. Create dialog like control with softkeys
    By gugelmin in forum Symbian
    Replies: 4
    Last Post: 2003-09-23, 13:41
  5. Softkeys in Global query msg dialog
    By nitinkumar in forum Symbian User Interface
    Replies: 0
    Last Post: 2003-04-16, 20:07

Posting Permissions

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