Problem while setting a LABEL text.

Login to reply to this topic.
Thu, 2008-04-24 07:26
Joined: 2008-02-12
Forum posts: 33

Hi to all,
I am using a label resource in EQikCtManylinesBuildingBlock and setting it with some text of number of lines.When I am using SetTextL() in ViewConstructL() with more than 3/4 lines of text, the label is showing it perfectly.while doing that if dynamically i am setting the label text,it just displays a single line with cropped text pls suggest me some solution

here is code i am using,

HBufC16* aMeaningPtr = HBufC16::NewL(iItemStruct->meaning->Length());
CleanupStack::PushL(aMeaningPtr);
aMeaningPtr->Des().Copy((const TDesC8 &)iItemStruct->meaning->Des());

// iLabelMeaning->SetAutoWrapping(ETrue);
iLabelMeaning->SetNumberOfVisibleLines(0);
TInt numline=iLabelMeaning->NumberOfLines();
iLabelMeaning->SetTextL(aMeaningPtr->Des());

iLabelMeaning->DrawNow();
CleanupStack::PopAndDestroy(aMeaningPtr);


  • Login to reply to this topic.