×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jun 2005
    Posts
    2

    How to Full Screen

    Before, i only develope App on Sony and Samsung. But now, i wanna try with Nokia Series60 but my app cannot use FullScreen. Please show me how to use full canvas...

  2. #2
    Regular Contributor
    Join Date
    Jan 2005
    Posts
    154

    Full screen

    Hi,
    u need to include the SetExtentToWholeScreen(); function in your container's ConstructL() function as follows:

    void MyContainer::ConstrucL(const TRect& aRect)
    {
    CreateWindowL();

    // Take the whole screen into use
    SetExtentToWholeScreen();

    ...

    SetRect(aRect);
    ActivateL();
    }

    hope this will help
    Abolfoooud

  3. #3
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395
    Somehow, I don't think C++ code is going to help this programmer with a Java problem.

    To use FullCanvas, you have to import the right package:
    Code:
    import com.nokia.mid.ui.*;
    Then change your code so that you extend FullCanvas instead of Canvas. Note that you cannot use Commands with FullCanvas, so calls to addCommand() or setCommandListener() will fail.

    Graham.

Posting Permissions

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