You Are Here:

Community: Developer Discussion Boards

#1 Old Thumbs up How to force window server to send events? - 2007-11-27, 12:08

Join Date: Feb 2006
Posts: 73
Location: Slovakia
Send a message via ICQ to frizi
frizi
Offline
Regular Contributor
i have following code
Code:
void CSymbianAppUi::ConstructL(void) 
{
    BaseConstructL( ENoAppResourceFile | KLayoutAware );
    SetKeyBlockMode( ENoKeyBlock );
	
    iAppContainer = new (ELeave) CSymbianContainer;
    iAppContainer->SetMopParent( this );
    iAppContainer->ConstructL( ClientRect() );
    AddToStackL( iAppContainer );

    iAppContainer->Run();
}
iAppContainer->Run() contains code of our application. it runs in loop, gets events from window server and passes it to our application core. thus the code gets over iAppContainer->Run(); only after exiting our app. now i need to add FEP functionality, but events never get to app because of the loop... so fep isn't working. is it somehow possible to force window server to send events to application? cause the loop blocks any other execution of main program.
Reply With Quote

#2 Old Re: How to force window server to send events? - 2007-11-27, 12:14

Join Date: Feb 2006
Posts: 73
Location: Slovakia
Send a message via ICQ to frizi
frizi
Offline
Regular Contributor
or i can create another Container with FEP functionality, but how to send key events directly to this Container so that FEP can process them? everythings seems to go through window server...
Reply With Quote

#3 Old Re: How to force window server to send events? - 2007-11-27, 13:02

Join Date: Feb 2007
Posts: 82
rpunskyy
Offline
Regular Contributor
what is your Container derived from ? and have you implemented OfferKeyEventL ?
Reply With Quote

#4 Old Re: How to force window server to send events? - 2007-11-27, 14:00

Join Date: Feb 2006
Posts: 73
Location: Slovakia
Send a message via ICQ to frizi
frizi
Offline
Regular Contributor
class CSymbianContainer : public CCoeControl, MCoeFepAwareTextEditor

yes it has OfferKeyEvent implemented, problem is that the loop blocks message sending...
Reply With Quote

#5 Old Re: How to force window server to send events? - 2007-11-27, 14:10

Join Date: Feb 2006
Posts: 16,442
Location: Zürich, Switzerland
wizard_hu_'s Avatar
wizard_hu_
Offline
Forum Nokia Champion
What loop? Why does it exist?
Reply With Quote

#6 Old Re: How to force window server to send events? - 2007-11-27, 14:13

Join Date: Feb 2006
Posts: 73
Location: Slovakia
Send a message via ICQ to frizi
frizi
Offline
Regular Contributor
we use our own multiplatform code, mfc like. we get system messages (events) in that loop and process them in our own app core.
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

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

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
How to send Content type to send data to server Basu Mobile Java Networking & Messaging & Security 2 2006-10-23 03:19
HELP..How to send Calendar Events using SDK 2.1? aloymendoza PC Suite API and PC Connectivity SDK 1 2006-05-08 13:17
Window Server Logging on Symbian spaceart General Symbian C++ 1 2004-04-05 11:37
Capture Key events away from the editor window amirelattar Symbian User Interface 1 2002-12-17 09:29
Can i send sms through my company's web server??? zeeshansana General Messaging 2 2002-11-01 09:55

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2010 Nokia