×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Apr 2008
    Posts
    27

    Question Problem in Increasing height of edwin control

    Hello Friends,

    I had designed a dialog and i want to increase the height of edwin control used in dialog. My rss code is as under
    <code>

    RESOURCE DIALOG r_im_dialog
    {
    flags = EEikDialogFlagNoDrag | EEikDialogFlagFillAppClientRect | EEikDialogFlagNoTitleBar | EEikDialogFlagWait | EEikDialogFlagCbaButtons;
    buttons = r_im_cba;
    form = r_im_form;
    }

    RESOURCE FORM r_im_form
    {
    flags = EEikFormEditModeOnly | EEikFormUseDoubleSpacedFormat;
    items =
    {

    DLG_LINE
    {
    type = EEikCtEdwin;
    prompt = qtnBuddy;
    id = EIMBuddyName;
    control = EDWIN
    {
    width = 10;
    maxlength = 511;
    lines = KLines;
    default_case = EAknEditorTextCase;
    allowed_case_modes = EAknEditorAllCaseModes;
    numeric_keymap = EAknEditorStandardNumberModeKeymap;
    default_input_mode = EAknEditorTextInputMode;
    allowed_input_modes = EAknEditorAllInputModes;
    special_character_table = R_AVKON_SPECIAL_CHARACTER_TABLE_DIALOG;
    };
    },
    DLG_LINE

    {

    type = EEikCtEdwin;

    prompt = qtn_Message;

    id = EMessage;


    control = EDWIN

    {
    //height=10;
    maxlength = 511;
    lines = KLines;

    default_case = EAknEditorTextCase;
    allowed_case_modes = EAknEditorAllCaseModes;
    numeric_keymap = EAknEditorStandardNumberModeKeymap;
    default_input_mode = EAknEditorTextInputMode;
    allowed_input_modes = EAknEditorAllInputModes;
    special_character_table = R_AVKON_SPECIAL_CHARACTER_TABLE_DIALOG;

    };

    }



    };


    }
    </code>

    I am using following code to set the height
    <code>
    void CIMForm ::PreLayoutDynInitL()
    {
    CAknForm::PreLayoutDynInitL();

    CEikEdwin* nEditor = static_cast <CEikEdwin*> (ControlOrNull(EIMBuddyName));


    if(nEditor)
    { nEditor->SetFocus(EFalse);
    nEditor->SetReadOnly(ETrue);
    nEditor->SetFocusing(EFalse);
    nEditor->SetMaximumHeight(10);
    nEditor->SetMinimumHeight(10);
    }

    nEditor = static_cast <CEikEdwin*> (ControlOrNull(EMessage));

    if(nEditor)
    {
    nEditor->SetFocus(ETrue);
    nEditor->SetMaximumHeight(100);
    nEditor->SetMinimumHeight(100);
    }


    }
    </code>

    Is there any other way . to increase the height
    Thanks,

    Praveen.

  2. #2
    Super Contributor
    Join Date
    Jul 2007
    Posts
    596

    Smile Re: Problem in Increasing height of edwin control

    Hello,

    praveenp, you have already two ways to solve the problem.

    I can't understand why u are looking for others .

    Ok whatever may be the reason .

    Have you tried SetMaximumHeightInLines() of same class.

    If u share ur exact problem it is easier for us to find a solution.

    Thanks

Similar Threads

  1. Replies: 1
    Last Post: 2009-09-16, 02:31
  2. custom control - clipping problem
    By boumitran in forum Symbian User Interface
    Replies: 0
    Last Post: 2006-05-17, 06:23
  3. Edwin problem
    By arunpirku in forum Symbian User Interface
    Replies: 0
    Last Post: 2005-09-02, 07:46
  4. Format text read from a file in Edwin Control
    By Vani in forum Symbian User Interface
    Replies: 1
    Last Post: 2003-07-02, 06:36
  5. Replies: 1
    Last Post: 2002-10-24, 11:25

Posting Permissions

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