×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Jul 2005
    Location
    Mumbai
    Posts
    55

    Full screen splash screen

    Hi,

    I want to display a full screen splash screen
    but I am only able to display it within the area of the application i.e. the status pane is still there.

    I used Application Rect() in ;

    void CHelloWorldBasicAppUi::ConstructL()
    {
    BaseConstructL();

    iAppView = CHelloWorldBasicAppView::NewL(ApplicationRect());
    AddToStackL(iAppView);
    }
    now it takes full screen but then the application view is not drawn on the screen

    I am drawing the splash screen in draw

    void CHelloWorldBasicAppView:raw(const TRect& /*aRect*/) const
    {
    // Get the standard graphics context
    CWindowGc& gc = SystemGc();
    // SetRect( ApplicationRect());
    // CHelloWorldBasicAppView::SetExtentToWholeScreen();
    CFbsBitmap* bitmap = new (ELeave) CFbsBitmap();

    CleanupStack::PushL(bitmap);


    User::LeaveIfError(bitmap->Load(KMBMFileName,0));



    gc.BitBlt(TPoint(0,0), bitmap);


    CleanupStack::PopAndDestroy();
    User::After(2000000);


    // Gets the control's extent
    TRect rect = Rect();

    // Clears the screen
    gc.Clear(rect);
    // Create a window for this application view

    }

    Thanks,

    Jitendra chhajed

  2. #2
    Nokia Developer Champion
    Join Date
    Mar 2004
    Location
    Czech Republic
    Posts
    2,037
    Hi,

    there are many ways how to do it, probably the easiest is to create container from view in such manner:

    // full screen with CBA
    TRect rect = ClientRect();
    rect.iTl = TPoint(0,0);
    iContainer->ConstructL( rect );

    Bye
    STeN

Posting Permissions

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