Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 10:41, 9 April 2008.

Change softkeys dynamically (either right or left or both)

From Forum Nokia Wiki

The article shows how Softkeys (not CBA) can be changed dynamically. Either left or right or both can be changed.

Changing right softkey

Cba()->RemoveCommandFromStack(2, EBack);
Cba()->AddCommandToStackL(2,ECancel,_L("Cancel"));	
Cba()->DrawDeferred();

So instead of handling EBack in HandleCommandL ECancel will be handled.

Similarly the left softkey can be changed by

Cba()->RemoveCommandFromStack(0, ESave);
Cba()->AddCommandToStackL(0,EOk,_L("Ok"));	
Cba()->DrawDeferred();

Just remember

  • 0 - Left softkey
  • 2 - Right softkey
  • Header File - #include <eikbtgpc.h>
  • Link against - eikcoctl.lib
Related Discussions
Thread Thread Starter Forum Replies Last Post
How to Get Model Name dynamically? abhrodeep.nag General Symbian C++ 2 2008-05-05 09:53
Change Menu Options At Runtime pistha General Symbian C++ 8 2007-08-03 13:34
what' CBA short for? JackSu Symbian User Interface 1 2007-08-21 09:14
series 60 softkeys surfacing Mobile Java General 3 2003-06-12 10:42
n9500 - right to left text messaging syj General Discussion 0 2006-08-30 08:41
 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtopicQUqfnTopicZseriesE5f60Q
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX