yeah its me again, i know this sucks but please help
i want to add a button programmatically to my view. i do this for example in the HandleCommandL() method is with this code:
The problem is that the button is not displayed after this code is executed (note theres not panic code so the code should be ok from my perspective). Can anyone please tell me why the button is not displayed? I'm pretty sure i forgot something.
//ETestButtonCtrl is a button that is defined in the resource file
CEikTextButton* button = LocateControlByUniqueHandle<CEikTextButton>(ETestButtonCtrl);
//now i want to add a button to the parent of ETestButtonCtrl
MCoeLayoutManager* l = button->LayoutManager();
//i create my button and add it to container control
CEikTextButton* b = new CEikTextButton();
//set needed stuff and format
_LIT(buttonText,"Click My Button");
//now draw it
Thx in advance for helping.