Saturday, November 03, 2007

Change softkeys dynamically (either right or left or both)
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();

Note
•Header File - #include
•Link against - eikcoctl.lib

No comments:

stats counter