|
|
User login
Feeds |
Nothing shown on screen
|
|||||
| Fri, 2005-04-01 12:12 | |
|
Hi,
I have the following code: Code: _LIT(was,"SynbianTextbox"); CEikEdwin *iEdwin1 = new (ELeave) CEikEdwin(); iEdwin1->ConstructL(EEikEdwinNoWrap,10,16,1); iEdwin1->SetContainerWindowL(*this); iEdwin1->SetExtent(TPoint(10,10), TSize(100,25)); iEdwin1->SetTextL(&was); iEdwin1->SetFocus(ETrue); iEdwin1->SetBackgroundColorL(TRgb(255,0,0)); CEikLabel *iLabel = new( ELeave )CEikLabel(); iLabel->SetContainerWindowL( * this ); iLabel->SetTextL(_L("tectfeidlcpp")); iLabel->SetRect( Rect() ); iLabel->SetExtent(TPoint(20,40),TSize(100,120)); iLabel->DrawNow(); iLabel->ActivateL(); But besides a blinking cursor, nothing is shown on the screen, the this-pointer is the container of my application. Whats's wrong? After this view, I would like to display a list, which is already working. Should I just delete the old controls, draw the list over the other controls, clear the screen? What is the correct method for this? Thanks a lot for your help lkz633 |
|
Forum posts: 33
Forum posts: 34
stefano
Forum posts: 173
http://sandy.t35.com
Forum posts: 34
stefano
Forum posts: 173
iEdwin->ActivateL()
or
remove iLabel->ActivateL()
and add
just
ActivateL()
http://sandy.t35.com
Forum posts: 34
SetContainerWindowL(*aParent);
// iAppTitle
iAppTitle=CCknAppTitle::NewL(CCknAppTitle::EWindow);
iAppTitle->SetContainerWindowL(*this);
iAppTitle->SetTextL(_L("titolo"),CCknAppTitle::EMainTitle);
// editor
iEditor=new(ELeave)CEikEdwin(TGulBorder::ESingleBlack);
iEditor->ConstructL(0,0,0,0);
iEditor->SetContainerWindowL(*this);
iEditor->SetRect(TRect(30,30,100,100));
TBuf<100> text;
text.Format(_L("Line 1"));
text.Append(CEditableText::ELineBreak);
text.Append(_L("Line 2"));
iEditor->SetTextL(&text);
iEditor->SetFocus(ETrue,EDrawNow);
if i add iEditor->ActivateL(); or iAppTitle->ActivateL(); nothing changes... note that i recall this function form the appView:
CreateWindowL();
// CTestoDizionario
iTestoDizionario=new(ELeave)CTestoDizionario();
iTestoDizionario->ConstructL(this);
iTestoDizionario->SetBorder(TGulBorder::EWindow);
SetRect(aRect);
ActivateL();
Forum posts: 173
text.Format(_L("Line 1"));
text.Append(CEditableText::ELineBreak);
many ppl are complaining there is prob with CEditableText::ELineBreak
so i think it would be the reason
http://sandy.t35.com
Forum posts: 34
Forum posts: 173
write CreateWindowL(); as the first line of ConstructL()
instead in between
http://sandy.t35.com
Forum posts: 34
Forum posts: 173
remove it
TGulBorder::ESingleBlack
When i was working on series80, setting border to listbox resulted in not displaying text in listbox. So it may be the case with u.
http://sandy.t35.com
Forum posts: 34
how can i display this stupid CEikEdwin??? aaahhhhhhhhhhhh
Forum posts: 122