How to change cba buttons dynamically
I have to do an application which needs to change cba buttons dynamically.
That is, at the beginning the app starts with only one button available in the cba ('Start' for instance); when this button is pressed, some things are showed in the view and some more buttons have to be showed in the cba implementing the operation to be performed on that view.
In general what I would like to know is how it is possible to update dynamically the cba buttons from a CCoeControl according to what is showed in the application area.
Do you have any idea of how to do it?
Any suggestion would be really appreciated. Thanks in advance.
Posted by Michele Boccaccio, firstname.lastname@example.org
on January 29, 2002 at 11:51
RE: How to change cba buttons dynamically
Posted by Andy Taylor, email@example.com
on January 29, 2002 at 12:01
Get a pointer to the Cba container then use SetCommandL() as follows:-
CEikButtonGroupContainer * pCbaGroup = CEikButtonGroupContainer::Current();
If you use this in Your HandleComandL() then you can change the Label when
the button is pressed.
Hope this helps