All About Symbian - Nokia (S60) and Sony Ericsson (UIQ) smartphones unwrapped

  #1  
Old 30-09-2004, 09:13 AM
Beast Beast is offline
Registered User
 
Join Date: Aug 2004
Posts: 15
Beast is on a distinguished road
I知 losing my scroll bars.

I知 trying to work with the DynamicList example from EMCC.

CDynamicListContainer contains CAknColumnListBox populated with 10 elements, and has the vertical scroll bars visible.

If this container is used in the AppUi::ConstructL everything is fine.

iAppContainer = CDynamicListContainer::NewL(ClientRect());
iAppContainer->SetMopParent(this);
AddToStackL(iAppContainer);

If instead I use my own container in AppUi::ConstructL, and when a menu option is taken, remove my container and use the code below to construct and enable CDynamicListContainer it works except the scroll bars are invisible.

if (iDialGenie)
{
RemoveFromStack(iDialGenie);
delete iDialGenie;
iDialGenie = NULL;
}

iAppContainer = CDynamicListContainer::NewL(ClientRect());
iAppContainer->SetMopParent(this);
AddToStackL(iAppContainer);

CDynamicListContainer::NewL calls SetupScrollBarsL

void CDynamicListContainer::SetupScrollBarsL()
{
iSavedGamesListBox->CreateScrollBarFrameL();
iSavedGamesListBox->ScrollBarFrame()->SetScrollBarVisibilityL(
CEikScrollBarFrame::EOff, CEikScrollBarFrame::EAuto);
}

My container only contains two CeikLabel to paint two phrases on the screen.

So how does using my control first, destroy the scroll bars for CDynamicListContainer?

Actually how are you supposed to stop the current control and enable a new one, say in response to a menu option in AppUi::HandleCommandL?
Ads

  #2  
Old 30-09-2004, 02:36 PM
GhostDog's Avatar
GhostDog GhostDog is offline
Super Moderator
 
Join Date: Aug 2002
Location: Skopje,Macedonia
Posts: 6,503
GhostDog will become famous soon enough
Thread moved to the developer section
__________________
www.symbiandiaries.com/ghostdog



Please don't PM me with something that belongs in the forums.Search first,then ask.
 

Bookmarks

Tags
bars, i知, losing, scroll

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
scroll key problem arvin1x Nokia 3650, 3660, and 3620 8 31-07-2006 08:41 PM
Series 60 scroll around? (1st to last) beerad S60 (Series 60) 3 05-08-2004 06:37 AM
How To Charge The Battery Efficiently shaffei Nokia 6600 and 6620 3 25-04-2004 08:21 AM
any full screen image viewer application w/ scroll & zoo marcnyc Sony Ericsson P800, P900 and P910 18 02-06-2003 08:12 PM
can i movethe signal bars to this position?? The Party Boy Nokia 7650 9 11-01-2003 07:49 AM



All times are GMT. The time now is 08:21 AM.


vBulletin skins developed by: eXtremepixels
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright Notes || Contact Us || Privacy Policy