Nothing shown on screen

Login to reply to this topic.
Fri, 2005-04-01 12:12
Joined: 2004-06-17
Forum posts: 47
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

Fri, 2005-04-01 12:45
Joined: 2005-03-04
Forum posts: 33
Nothing shown on screen
activate, then draw!
Tue, 2005-04-05 15:35
Joined: 2005-02-18
Forum posts: 34
Nothing shown on screen
i've got the same problem... everything i see is the blinkin' cursor... i tried to activate but nothing changes. what's the problem?

stefano
Tue, 2005-04-05 15:41
Joined: 2005-03-31
Forum posts: 173
Nothing shown on screen
how many controls u have added in componentcontrol() method and countcomponent() method?

Tue, 2005-04-05 15:44
Joined: 2005-02-18
Forum posts: 34
Nothing shown on screen
i've added the correct number of controls (2 controls). the strange thing is that if i try to add different text to the editor control, the blinkin' cursor blinks at different position, so it seems that it writes the output on the editor control but it doesn't display it

stefano
Tue, 2005-04-05 15:46
Joined: 2005-03-31
Forum posts: 173
Nothing shown on screen
if u see label then just add any one of the  following line

iEdwin->ActivateL()

or
remove iLabel->ActivateL()
and add
just
ActivateL()

Tue, 2005-04-05 15:54
Joined: 2005-02-18
Forum posts: 34
Nothing shown on screen
this is my code in the ConstructL of my control (CTestoDizionario):

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();
Tue, 2005-04-05 16:13
Joined: 2005-03-31
Forum posts: 173
Nothing shown on screen
remove  following lines and check out:
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

Tue, 2005-04-05 16:17
Joined: 2005-02-18
Forum posts: 34
Nothing shown on screen
unfortunately i0ve already did it and nothing changes....i can see the label and the blinkin cursor at the end of the (supposed) text of the editor Sad
Tue, 2005-04-05 16:27
Joined: 2005-03-31
Forum posts: 173
Nothing shown on screen
Last suggestion:
write CreateWindowL();  as the first line of ConstructL()
instead in between

Tue, 2005-04-05 16:33
Joined: 2005-02-18
Forum posts: 34
Nothing shown on screen
the CreateWindowL is already the first line of the ConstructL of the appView Sad there will be a solution to this?
Tue, 2005-04-05 17:06
Joined: 2005-03-31
Forum posts: 173
Nothing shown on screen
One more suggestoin  Tongue

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.

Tue, 2005-04-05 20:04
Joined: 2005-02-18
Forum posts: 34
Nothing shown on screen
nothing Sad

how can i display this stupid CEikEdwin??? aaahhhhhhhhhhhh
Wed, 2005-04-06 06:08
Joined: 2005-01-31
Forum posts: 122
Nothing shown on screen
Why don't u check out the editor example?Huh??
  • Login to reply to this topic.