×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Regular Contributor
    Join Date
    Jun 2007
    Location
    Jakarta, Indonesia
    Posts
    269

    Scrollbar background (skin?) problem [with screenshot]

    Hi FN


    Here is my application's screen shots taken from the emulator.

    http://www.mediafire.com/?yewbbtv5211

    http://www.mediafire.com/?ohbx0kdlyj0

    http://www.mediafire.com/?9m0dc1yx3my

    From the screen shots you can see the scrollbar's top background has white area. Look to the upper right of the scrollbar and you'll see what I mean.

    The screen shot is the result from a tutorial in the wiki.forum.nokia

    How to create a fully skinned scrollbar?

    * In the device, the scrollbar also looks the same
    Last edited by strike_noir; 2008-05-27 at 07:59.

  2. #2
    Registered User
    Join Date
    Nov 2007
    Posts
    98

    Re: Scrollbar background (skin?) problem [with screenshot]

    I have same problem :) if I find solution I will tell you.

  3. #3
    Registered User
    Join Date
    Nov 2007
    Posts
    98

    Re: Scrollbar background (skin?) problem [with screenshot]

    anyone got idea why this is happening?

  4. #4
    Regular Contributor
    Join Date
    Sep 2006
    Posts
    79

    Re: Scrollbar background (skin?) problem [with screenshot]

    I have the same problem, any solution anyone?

  5. #5
    Regular Contributor
    Join Date
    Jun 2008
    Location
    Tianjin
    Posts
    156

    Re: Scrollbar background (skin?) problem [with screenshot]

    I had the same issue but I found the solution. :)

    Code:
    void CSUContainer::ConstructL()
    	{
    	// Create a window for this application view
    	CreateWindowL();
        
    	iScrollBarFrame = new ( ELeave ) CEikScrollBarFrame(this, NULL);
    	iScrollBarFrame->CreateDoubleSpanScrollBarsL( ETrue, EFalse );
    	iScrollBarFrame->SetTypeOfVScrollBar( CEikScrollBarFrame::EDoubleSpan );
    	iScrollBarFrame->SetScrollBarVisibilityL(CEikScrollBarFrame::EOff, CEikScrollBarFrame::EAuto);
    
    	// skin background, make first with no size at all
    	iBackground = CAknsBasicBackgroundControlContext::NewL(KAknsIIDQsnBgAreaMain, TRect(0,0,1,1), ETrue);
        
    	//Create richeditor
    	iBody = CBodyControl::NewL(this); 
    	iBody->SetContainerWindowL(*this);
    
    	TRect rect;
    	AknLayoutUtils::LayoutMetricsRect(AknLayoutUtils::EMainPane,rect); 
    	// Setting rect will cause SizeChanged to be called
    	// and iBackground size & position is updated accordingly.
    	SetRect(rect);
    
    	// Activate the window, which makes it ready to be drawn
    	ActivateL();
    	}
    Code:
    void CSUContainer::SizeChanged()
    	{
    	if ( iBackground )
    		{
    		iBackground->SetRect(Rect());
     
    		if ( &Window() )
    			{
    			iBackground->SetParentPos( PositionRelativeToScreen() );
    			}
    		}
    	UpdateControls();
    	TRAP_IGNORE(UpdateScrollBarFrameL());
    	}
    anson_zhao

  6. #6
    Regular Contributor
    Join Date
    Jun 2007
    Location
    Jakarta, Indonesia
    Posts
    269

    Re: Scrollbar background (skin?) problem [with screenshot]

    Hi anson_zhao



    Thank you very much for the solution. It worked charmingly.

    Code:
    	if ( iBackground )
    		{
    		iBackground->SetRect(Rect());
     
    		if ( &Window() )
    			{
    			iBackground->SetParentPos( PositionRelativeToScreen() );
    			}
    		}
    PS : after trying your code. seems it needed only to add these lines to my SizeChanged()

  7. #7
    Regular Contributor
    Join Date
    Jun 2008
    Location
    Tianjin
    Posts
    156

    Re: Scrollbar background (skin?) problem [with screenshot]

    YES.
    Glad to see it worked.
    anson_zhao

Similar Threads

  1. s60 own background skin
    By Oleg_ in forum Symbian User Interface
    Replies: 3
    Last Post: 2009-05-07, 18:51
  2. HI!Yucca!SOS!UI Background problem
    By psi1983 in forum Symbian User Interface
    Replies: 9
    Last Post: 2007-12-14, 05:23
  3. Problem MMC+USB Connection
    By Fede81 in forum Symbian
    Replies: 1
    Last Post: 2007-06-14, 06:13
  4. Problem with background for CAknSingleGraphicStyleListBox
    By hforsstr in forum Symbian User Interface
    Replies: 1
    Last Post: 2004-06-17, 13:46
  5. Problem displaying background image
    By advocatee in forum Symbian User Interface
    Replies: 3
    Last Post: 2003-11-18, 13:30

Posting Permissions

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