×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    108

    how to use CEikGlobalTextEditor

    hi,
    how to create a CEikGlobalTextEditor object without the resource file, ie. using ContructL() instead of ConstructFromResourceL()

    void ConstructL(const CCoeControl* aParent, TInt aNumberOfLines, TInt aTextLimit, TInt aEdwinFlags, TInt aFontControlFalgs,TInt aFontNameFlags)

    i seem to be able to create the same using ConstructL() , but the object doesnt show on screen. what are the values for the attributes in ConstructL()?

    iGTextEd = new (ELeave) CEikGlobalTextEditor;
    iGTextEd->ConstructL(this,2,10,1,1,1); // the last 3 values r dummies.. i dont know what should really go in there
    iGTextEd->SetExtent(GTEXTED_POS, iGTextEd->MinimumSize());
    iGTextEd->SetFocus(ETrue);

    thanks,
    ash

  2. #2
    Nokia Developer Expert
    Join Date
    Mar 2003
    Posts
    271

    RE: how to use CEikGlobalTextEditor

    Hi,

    Try to create it with one of the following edwin flags,

    iGlobalTE=new(ELeave) CEikGlobalTextEditor();
    iGlobalTE->ConstructL(NULL,0,0,EEikEdwinOwnsWindow|
    EEikEdwinInclusiveSizeFixed|
    EEikEdwinKeepDocument|
    EEikEdwinUserSuppliedText|
    EEikEdwinLineCursor|
    EEikEdwinAlwaysShowSelection,0,0);
    iGlobalTE->SetObserver(this);
    iGlobalTE->SetEdwinObserver(this);
    iGlobalTE->CreateScrollBarFrameL();
    iGlobalTE->ScrollBarFrame()->SetScrollBarVisibilityL(CEikScrollBarFrame::EOff, CEikScrollBarFrame::EOn);
    iGlobalTE->SetRectL(ClientRect());
    iGlobalTE->ActivateL();
    iGlobalTE->SetFocus(ETrue);

    Regards,
    FN Developer Support

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×