×

Discussion Board

Results 1 to 9 of 9
  1. #1
    Super Contributor
    Join Date
    Jun 2008
    Posts
    593

    Lightbulb problem of background on screen size 240x320

    hi...

    i have developed my app on visual studio...
    the background i have kept white...

    i tested my app on N80 , 6110 Navigator, E60... it looks fine...
    but on N73 & E51 (240*320 screen phones) i can see my phone's background between the Main Area & button pane..

    i mean.. it seems as if my white background has not covered the full screen...

    any suggestions....

    Thanks
    Nital

  2. #2
    Nokia Developer Expert
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,143

    Re: problem of background on screen size 240x320

    maybe you have hard coded some values in there, so check it in the emulator, and run it in different screen modes to see how the drawing functions are behaving..

  3. #3
    Registered User
    Join Date
    Sep 2009
    Posts
    63

    Re: problem of background on different screen size

    i have the same problem when i change the screen resolution on the emulator the background image not fit the screen

  4. #4
    Nokia Developer Champion
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034

    Re: problem of background on screen size 240x320

    How your code to draw image and SizeChanged() method look like?

  5. #5
    Registered User
    Join Date
    Jun 2008
    Location
    India
    Posts
    1,048

    Re: problem of background on screen size 240x320

    Have you tried the API SetExtentToWholeScreen().

  6. #6
    Registered User
    Join Date
    Jun 2007
    Location
    Mumbai, India
    Posts
    1,998

    Re: problem of background on different screen size

    Quote Originally Posted by ahmed.mansi View Post
    i have the same problem when i change the screen resolution on the emulator the background image not fit the screen
    If you are using a background image, you will have to scale the image accordingly if the device orientation is changed.

  7. #7
    Registered User
    Join Date
    Sep 2009
    Posts
    63

    Re: problem of background on screen size 240x320

    hi savaj,

    void CMobiQuranAbout::Draw( const TRect& aRect ) const
    {
    // [[[ begin generated region: do not modify [Generated Contents]
    CWindowGc& gc = SystemGc();
    gc.Clear( aRect );

    // ]]] end generated region [Generated Contents]

    _LIT(KMBMFile , "z:\\RESOURCE\\APPS\\MobiQuran_BG.mbm" );
    CFbsBitmap* iBitmap = new (ELeave) CFbsBitmap;
    TInt retval = iBitmap->Load(KMBMFile, 0);
    gc.BitBlt(Rect().iTl, iBitmap);
    }
    /////////////////////////////////////////////////////////////////////////////
    void CMobiQuranAbout::SizeChanged()
    {
    CCoeControl::SizeChanged();
    LayoutControls();

    // [[[ begin generated region: do not modify [Generated Contents]

    // ]]] end generated region [Generated Contents]

    }

  8. #8
    Registered User
    Join Date
    Sep 2009
    Posts
    63

    Re: problem of background on screen size 240x320

    hi sumit rathi,

    i try this method -SetExtentToWholeScreen()- but it hide the control pane and the ststus pane

    i want to set one background image for control pane ,container and status pane.

  9. #9
    Registered User
    Join Date
    Jun 2007
    Location
    Mumbai, India
    Posts
    1,998

    Re: problem of background on screen size 240x320

    Quote Originally Posted by ahmed.mansi View Post
    hi sumit rathi,

    i try this method -SetExtentToWholeScreen()- but it hide the control pane and the ststus pane

    i want to set one background image for control pane ,container and status pane.
    You cannot have one image set as a background for your control pane ,container and status pane.

Similar Threads

  1. Replies: 7
    Last Post: 2007-09-05, 10:38
  2. Replies: 10
    Last Post: 2006-07-21, 10:41
  3. Series 60 Old Screen Problem
    By ogucbey in forum Mobile Java General
    Replies: 0
    Last Post: 2005-04-11, 12:38
  4. Screen Saver & MMS viewer SIZE
    By fabiolee in forum General Development Questions
    Replies: 0
    Last Post: 2003-08-26, 07:41
  5. Draw on screen from background application
    By dancom in forum Symbian
    Replies: 2
    Last Post: 2003-05-26, 12:37

Posting Permissions

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