View Architecture issues

Login to reply to this topic.
Tue, 2006-01-31 08:01
Joined: 2005-02-22
Forum posts: 39
Hi All,

Can I add a container to view  Architecture which is actually not a view based container .

  I wan to make a container display with out  any view support  and display that container with controls from my
submenu area .

Any pointer will be of great help

Regards
Veeraj Thaploo

Tue, 2006-01-31 11:40
Joined: 2005-10-10
Forum posts: 16
Re: View Architecture issues
Yes you can do it.
You can create the container class by inheriting it from the CCoeControl and can invoke it from any where on the active view...

But few lines of code required...
Before activating the new container on the active view you  first remove the present container from the Control stack  and add new to the stack so that new added container will get the key events

//on submenu click
AppUi()->RemoveFromStack( ioldContainer );
ioldContainer ->MakeVisible(EFalse);
AppUi()->AddToStackL( *this, inewContainer );

In this way you can manage numbers of containers on the same view


Core
  • Login to reply to this topic.