×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Sep 2006
    Posts
    15

    Unhappy Screen bottom problem

    Hi,
    I've problem with my UI application. When a query dialog or standart note dialog is shown on the screen, it clears its background. As the dialogbox closes, the view is shown half. In the bottom of the screen i see the background which is the phone's main menu.
    I tried:

    TSize size(60,60);
    TRect trect(aRect);
    trect.Grow(size);
    gc.DrawRect(trect);

    but no way. The screen is still shrunk after any dialog box.

    What can cause this?
    Please help.
    Last edited by monur; 2006-10-09 at 13:22.

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,572

    Re: Screen bottom problem

    Note that "aRect" contains only the rectangle that should be redrawn. Use Rect() to get the full drawing area (which has been actually set with SetRect(...) in your ConstructL).

  3. #3
    Registered User
    Join Date
    Sep 2006
    Posts
    15

    Re: Screen bottom problem

    Thanks for reply,

    I also tried
    TRect trect(Rect());
    gc.DrawRect(trect);

    but nothing is different.
    it must draw a rectangle all over the screen but when i open a menu popup or a dialog box the bottom of the screen gets transparent. The code above in the Draw() method draws a rectangle in that smaller area.My Rect() size is decreasing.

    Please help. It's urgent.

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,572

    Re: Screen bottom problem

    Quote Originally Posted by monur
    TRect trect(Rect());
    gc.DrawRect(trect);

    My Rect() size is decreasing.
    It is not likely. Check if you mis-use SetRect, SetSize or SetExtend somewhere.

  5. #5
    Registered User
    Join Date
    Sep 2006
    Posts
    15

    Re: Screen bottom problem

    Is there any other opinion about this issue?
    I'm using Carbide ++ v1.1 and now i think it's creating some functions that cause this.
    Anybody has this problem?

  6. #6
    Registered User
    Join Date
    Apr 2007
    Posts
    1

    Re: Screen bottom problem

    Hello,

    Don't worry, you're being delirious. Defining two menubars for one view can cause this problem. Here is a resource definition that causes it:

    RESOURCE EIK_APP_INFO
    {
    hotkeys = r_guitime_hotkeys;
    menubar = r_guitime_menubar; // REMOVE THIS
    cba = R_AVKON_SOFTKEYS_OPTIONS_BACK;
    }

    RESOURCE AVKON_VIEW r_tot_view
    {
    menubar = r_guiime_menubar;
    cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT;
    }

    Apparently the program reserves space for two menubars, but draws only one, leaving the space for the other menubar transparent.

Similar Threads

  1. Full Screen problem
    By PankajNeve in forum Symbian
    Replies: 5
    Last Post: 2006-09-30, 16:24
  2. Timers & Refresh Screen Problem
    By EtsiEtsi in forum Symbian
    Replies: 1
    Last Post: 2005-11-03, 08:59
  3. Screen flicker problem
    By znappahead in forum Mobile Java Media (Graphics & Sounds)
    Replies: 0
    Last Post: 2003-11-05, 17:30
  4. Problem playing a Sound using FORMAT_TONE in a FullScreenCanvas screen...
    By joseprio in forum Mobile Java Media (Graphics & Sounds)
    Replies: 5
    Last Post: 2003-10-22, 20:11
  5. Replies: 0
    Last Post: 2003-09-22, 07:00

Posting Permissions

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