I am very new to Symbian C++ programming in Carbide.C++ and I am trying to get the principles and concepts.
I have a project with uiDesigner. I have inserted a globalnote and an optionsmenu. And I have dragged a Text Editor into my designform.
In a file called FirstContainer.cpp (my app its name is "First") I have seen that the control is initialized with this code:
When I select the event of an option menu the code for to handle the selection is added to FirstContainerView.cpp (see code below):
iEdit1 = new ( ELeave ) CEikEdwin;
iEdit1->SetContainerWindowL( *this );
iEikonEnv->CreateResourceReaderLC( reader, R_FIRST_CONTAINER_EDIT1 );
iEdit1->ConstructFromResourceL( reader );
CleanupStack::PopAndDestroy(); // reader internal state
HBufC* text = StringLoader::LoadLC( R_FIRST_CONTAINER_EDIT1_2 );
iEdit1->SetTextL( text );
CleanupStack::PopAndDestroy( text );
iEdit1->SetObserver( this );
iEdit1->SetFocus( ETrue );
iFocusControl = iEdit1;
I have seen in FirstContainer.cpp that I can use iEdit1->GetText(); but I can not use this in FirstContainerView.cpp
TBool CFirstContainerView::HandleDoNowMenuItemSelectedL( TInt aCommand )
// TODO: implement selected event handler
Anyway... What I am trying to do is getting the text from the Text Edit control and displaying it with a global note. So I need to obtain the pointer of the text in the Edit Control.
I have no idea actually where to continue from this.
Could some please give me some hints/help/code ?
Thanks for reading, and thanks in advance for replying!