[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Display another View when a user select an item from CAknSingleStyleListBox

Posted on 2005-04-17
5
Medium Priority
?
665 Views
Last Modified: 2013-12-27

I need a help urgently. I am using Borland BuilderX for C++ Symbian programming. The program is for  a Chat Application and i want to read the inbox so not using Java. Let me explain what i need. The first View is with a CAknSingleStyleListBox and when ever an SMS comes it will be added to the list as an Item. When the user select the listbox item another View should open with the message in it and menu for reply, delete and all.

I am using Container class... so i feel difficulty to Change to View. I need help in such a way that i can change view and later return to this main view when a back button is pressed...

So my final question is Just "How can i display another View when an item in list is clicked.". I am using View->Container architecture....

Any reply which leads to a solution will get Max points and grade A.

Please make it fast... Thanks in Advance
0
Comment
Question by:jijojac
  • 2
3 Comments
 
LVL 5

Expert Comment

by:dennis_george
ID: 13820933
Hi,

I assume that you already created views in your appui class.... So to activate another view you have to use       

TVwsViewId id(KUidApp, KUidView);
iAppUi->ActivateViewL(id);

where
KUidApp  --> Application UID
KUidView --> View UID
iAppUi     --> Instance of AppUI class

Call this sequence in HandleListBoxEventL routine of your list view.....

Hope this might help you
Dennis
0
 

Author Comment

by:jijojac
ID: 13821765
Yes i have created views in appui class. I know how to change view from another view,,, but the problem here is that the view i created has created a container and the display of list box is done in that container and i am not getting iAppUi instance in this container. The problem is that how can i get this appui instance from a container class
0
 
LVL 5

Accepted Solution

by:
dennis_george earned 2000 total points
ID: 13855817
Hi,

You can get the instance of appui from the following statement

iAppUi  = STATIC_CAST(CMyAppUi*, iEikonEnv->EikAppUi());

Dennis
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows how to setup the internet connectivity on Windows Mobile Emulator.   I assume that you already have Microsoft Visual Studio, Microsoft Windows Mobile SDK's and the emulator installed. The emulator is available with Visual Studi…
If you are anything like me, you install many apps on your phone and have your life on it, sometimes literally.  When I bought my current phone, a Samsung Galaxy S5 from Verizon, they were only selling the versions with 16 GB internal.  I didn't rea…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses
Course of the Month20 days, 9 hours left to enroll

868 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question