×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Dec 2008
    Location
    Suzhou, China
    Posts
    107

    CEikEdwin scrollbar, private member?

    I'm trying to add a scrollbar to my CEikEdwin because the text is very long (it's a read only that just displays some results but it can get long), but I'm getting:

    Code:
    Creation Time	Description	Resource	Path	Location	Type
    1253010994840	illegal access from 'CEikEdwin' to protected/private member 'CEikEdwin::CreateScrollBarFrameL(int)'	TestAppStandaloneContainer.cpp	TestAppStandalone/src	line 257	C/C++ Problem
    My code is simply

    Code:
    	iResults = new ( ELeave ) CEikEdwin;
    	iResults->SetContainerWindowL( *this );
    		{
    		TResourceReader reader;
    		iEikonEnv->CreateResourceReaderLC( reader, R_TESTAPPSTANDALONE_CONTAINER_RESULTS );
    		iResults->ConstructFromResourceL( reader );
    		CleanupStack::PopAndDestroy(); // reader internal state
    		}
    		{
    		HBufC* text = StringLoader::LoadLC( R_TESTAPPSTANDALONE_CONTAINER_RESULTS_2 );
    		iResults->SetTextL( text );
    		CleanupStack::PopAndDestroy( text );
    		}
    	iResults->SetAlignment( EAknEditorAlignCenter );
            iResults->CreateScrollBarFrameL(ETrue);
            iResults->ScrollBarFrame()->SetScrollBarVisibilityL( 
                    CEikScrollBarFrame::EOn, CEikScrollBarFrame::EAuto );
    Can someone help me out please?

  2. #2
    Super Contributor
    Join Date
    Nov 2004
    Posts
    1,009

    Re: CEikEdwin scrollbar, private member?

    iEdwin->CreatePreAllocatedScrollBarFrameL();
    iEdwin->ScrollBarFrame()->SetScrollBarVisibilityL (
    CEikScrollBarFrame::EOff, CEikScrollBarFrame::EAuto );
    Regards,
    Shafali

Similar Threads

  1. java.lang.ClassCastException error in Eclipse
    By jacky521 in forum Mobile Java General
    Replies: 3
    Last Post: 2007-10-15, 03:18
  2. 求教:java.lang.ClassCastException
    By jacky521 in forum [Archived] Other Programming Discussion 关于其他编程技术的讨论
    Replies: 3
    Last Post: 2007-10-12, 07:43
  3. Streams in/out on PC!!!
    By rubicita in forum Bluetooth Technology
    Replies: 0
    Last Post: 2005-10-18, 20:37
  4. PC Connectity with VB6
    By mkintanar in forum PC Suite API and PC Connectivity SDK
    Replies: 5
    Last Post: 2003-09-24, 04:18
  5. Cannot compile SDK's examples for 7650 platform...
    By midletsoft in forum Symbian Tools & SDKs
    Replies: 2
    Last Post: 2003-08-12, 19:11

Posting Permissions

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