I'd say to your extremely vague question that if iToLabel is a CEikLabel, try calling it's SetRect method after calculating a new area for it. Alternatively you could use SetPosition or SetExtent.
Nokia has done it's best to hide that CEikLabel inherits CCoeControl in the SDK documentation, which contains these methods. Why, beats me.
no iToLabel is nt CEiklabel.its CEikEdwin* iToLabel=new(ELeave) CEikEdwin; m sending u my code
iToLabel=new(ELeave) CEikEdwin;
//__UHEAP_MARKENDC(1);
Components().AppendLC(iToLabel);
iToLabel->SetContainerWindowL(*this);
CleanupStack::Pop(iToLabel);
TResourceReader reader;
CEikonEnv::Static()->CreateResourceReaderLC(reader,R_WRITEMSG_LABEL);
iToLabel->ConstructFromResourceL(reader);
// Edwin takes the ownership
CleanupStack::PopAndDestroy();
Editor is a label then... OK; and by shifting you mean that you want to move the editor field to the left? Or what (better check out the other meanings too...). Since CEikEdwin is-a CCoeControl too, and you really want to move the control to the left, then the same answer applies.
Forum posts: 683
I'd say to your extremely vague question that if
iToLabelis aCEikLabel, try calling it'sSetRectmethod after calculating a new area for it. Alternatively you could useSetPositionorSetExtent.Nokia has done it's best to hide that
CEikLabelinheritsCCoeControlin the SDK documentation, which contains these methods. Why, beats me.Forum posts: 20
no iToLabel is nt CEiklabel.its CEikEdwin* iToLabel=new(ELeave) CEikEdwin; m sending u my code
iToLabel=new(ELeave) CEikEdwin;
//__UHEAP_MARKENDC(1);
Components().AppendLC(iToLabel);
iToLabel->SetContainerWindowL(*this);
CleanupStack::Pop(iToLabel);
TResourceReader reader;
CEikonEnv::Static()->CreateResourceReaderLC(reader,R_WRITEMSG_LABEL);
iToLabel->ConstructFromResourceL(reader);
// Edwin takes the ownership
CleanupStack::PopAndDestroy();
CEikonEnv::Static()->ReadResource(iBufFromMan, R_FROM_MAN);
CEikonEnv::Static()->ReadResource(iBufSendMan, R_SEND_MAN);
iToLabel->SetTextL(&iBufSendMan);
i want to shift this label toward left in my editor.
Forum posts: 683
Editor is a label then... OK; and by shifting you mean that you want to move the editor field to the left? Or what (better check out the other meanings too...). Since CEikEdwin is-a CCoeControl too, and you really want to move the control to the left, then the same answer applies.