Tuesday, July 13, 2010

Dynamic change CBA button



Code:
RESOURCE CBA r_yourapp_softkeys_options_open
(
buttons =
(
CBA_BUTTON (id = EAknSoftkeyOptions; txt = "Options";),
CBA_BUTTON (id = EYourAppCmdOpenApp; txt = "Open";)
);
)

RESOURCE CBA r_yourapp_softkeys_options_stop
(
buttons =
(
CBA_BUTTON (id = EAknSoftkeyOptions; txt = "Options";),
CBA_BUTTON (id = EYourAppCmdStopApp; txt = "Stop";)
);
)

In the HRH file

Code:
enum TYourAppCommandIds
(
/ / ...
id = EYourAppCmdOpenApp,
id = EYourAppCmdStopApp,
/ / ...
);

In your application''s AppUi class:

Code:
void CYourAppUi:: SetCommandSetL (TInt aResourceId)
(
CEikButtonGroupContainer * cba = CEikButtonGroupContainer:: Current ();
cba-> SetCommandSetL (aResourceId);
)

Now you can call:

SetCommandSetL (R_YOURAPP_SOFTKEYS_OPTIONS_OPEN);
OR
SetCommandSetL (R_YOURAPP_SOFTKEYS_OPTIONS_STOP);

where ever you want.







Recommand Link:



Hope iPhone Wii Converter



Lohan DVD To SWF



Catalogs Trace And Ping Tools



Youtube Movie to Mobile Phone Utility



Digital RA AMR to AAC Player



DEBUGGING Expert



sound file converter



Bluesea CD-R M3U Sound TO Midi Convert



how TO convert flac to mp3



Happiness MP3 MPC WMA to VQF Backup



Mxf converter



Christmasgift DVD to iPod



EZuse MPEG Converter



Total Video Converter



Avex-Zune Video Converter



No comments:

Post a Comment