I'm a Delhpi and VB.net developer, who is new to programming in Symbian C++.
I've come to do something simple, but failed to do so succesfully: I want to change the text of a button, when clicked, on a toolbar in a listboxview in Carbide C++.
In Carbide I've made a toolbar with a button and set the Toolbar event Selected.
In my listboxview (cpp) I get the follwing function:
TBool CTest26ListBoxView::HandleBtnShopSelectedL( TInt aCommand )
To get to the button on the toolbar I've coded:
CAknToolbar* toolbar = Toolbar();
if ( toolbar )
CAknButton* button = static_cast<CAknButton*>(toolbar->ControlOrNull(ETest26ListBoxViewBtnShopCommand2));
if ( button )
My question: is this the right way to get to the button on the toolbar and how do I change the text on the button???
Hopefully somebody knows. I've searched and tried to do this for several hours and almost giving up.
Tnx in advance for any help.