×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Regular Contributor
    Join Date
    Sep 2008
    Posts
    155

    CAknMultiLineDataQueryDialog white text color

    Hi All,

    First of all, sorry for my poor English.

    My app use CAknMultiLineDataQueryDialog for authentication form. It's OK on all 3rd devices
    The problem is on that dialog, it show white text color on white background color so user can not see what they type in.

    I did ask user to try another theme but I think may be someone here had the same problem and know the way to solve it.
    Please advice if you have any solution/idea.

    Many thanks for your help

    RESOURCE DIALOG r_webclient_dialog_user_password_query
    {
    flags = EGeneralQueryFlags;
    buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
    items =
    {
    DLG_LINE
    {
    type = EAknCtMultilineQuery;
    id = EMultilineFirstLine;
    control = AVKON_DATA_QUERY
    {
    layout = EMultiDataFirstEdwin;
    label = gtn_webclient_psw_dialog_username;
    control = EDWIN
    {
    flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable;
    width = 25;
    lines = 1;
    maxlength = 64;
    };
    };
    },
    DLG_LINE
    {
    type = EAknCtMultilineQuery;
    id = EMultilineSecondLine;
    control = AVKON_DATA_QUERY
    {
    layout = EMultiDataSecondSecEd;
    label = gtn_webclient_psw_dialog_password;
    control = SECRETED
    {
    num_letters = 64;
    };
    };
    }
    };
    }


    class CCMyMultiLineDataQueryDialog : public CAknMultiLineDataQueryDialog
    {
    public:
    static CCMyMultiLineDataQueryDialog* NewL(TDes& aText1, TDes& aText2, TTone aTone = ENoTone);

    // virtual ~CMyMultiLineDataQueryDialog();

    protected:
    CCMyMultiLineDataQueryDialog(const TTone& aTone);


    protected: // from CAknMultiLineDataQueryDialog and CAknQueryDialog
    /**
    * If the query text is ok (retrieved form query control) then display the
    * left soft key, otherwise hide it.
    */
    virtual void UpdateLeftSoftKeyL();

    };

    TBuf <64> iUserName;
    TBuf <64> iPassword;

    CCMyMultiLineDataQueryDialog* dlg =
    CCMyMultiLineDataQueryDialog::NewL( iUserName, iPassword );
    dlg->PrepareLC( R_WEBCLIENT_DIALOG_USER_PASSWORD_QUERY );

    TInt ret = dlg->RunLD();

  2. #2
    Nokia Developer Expert
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,143

    Re: CAknMultiLineDataQueryDialog white text color

    it is most likely caused by the theme having white font color on white background.

  3. #3
    Regular Contributor
    Join Date
    Sep 2008
    Posts
    155

    Re: CAknMultiLineDataQueryDialog white text color

    i want to change color to black,how to do.

  4. #4
    Regular Contributor
    Join Date
    Sep 2008
    Posts
    155

    Re: CAknMultiLineDataQueryDialog white text color

    how to get CEikEdwin controls from CAknMultiLineDataQueryDialog?

  5. #5
    Registered User
    Join Date
    Sep 2004
    Posts
    65

    Re: CAknMultiLineDataQueryDialog white text color

    since your edwin control is in the first line, than use this function

    {{{
    IMPORT_C CAknMultilineQueryControl* FirstControl () const
    }}}

    regards,
    - susido cheung

  6. #6
    Regular Contributor
    Join Date
    Sep 2008
    Posts
    155

    Re: CAknMultiLineDataQueryDialog white text color

    when i use edwin->SetCharFormatLayer(FormatLayer);

    the program is exit and prompt Panic KERN-EXEC 3


    TBuf <64> iUserName;
    TBuf <64> iPassword;

    CCMyMultiLineDataQueryDialog* dlg =
    CCMyMultiLineDataQueryDialog::NewL( iUserName, iPassword );
    dlg->PrepareLC( R_WEBCLIENT_DIALOG_USER_PASSWORD_QUERY );

    CEikEdwin *edwin = static_cast <CEikEdwin*>(dlg->ControlOrNull(EMultilineFirstLine));
    if(edwin)
    {
    CCharFormatLayer* FormatLayer=CEikonEnv::NewDefaultCharFormatLayerL();
    TCharFormat charFormat;
    TCharFormatMask charFormatMask;
    FormatLayer->Sense(charFormat, charFormatMask);
    charFormat.iFontPresentation.iTextColor=KRgbDarkRed;
    FormatLayer->SetL(charFormat, charFormatMask);

    edwin->SetCharFormatLayer(FormatLayer);

    }

    TInt ret = dlg->RunLD();

  7. #7
    Registered User
    Join Date
    Jan 2010
    Posts
    1

    Re: CAknMultiLineDataQueryDialog white text color

    I encounter the same problem, but I have solved by this url:
    http://wiki.forum.nokia.com/index.ph...g_Skins_in_S60
    Hope this can help you.

Similar Threads

  1. CEikRichtextEditor Background color for text
    By gmsk19 in forum Symbian User Interface
    Replies: 1
    Last Post: 2008-07-18, 09:39
  2. change background color of rich text editor under UIQ
    By xiaomingzhou in forum Symbian User Interface
    Replies: 1
    Last Post: 2008-05-28, 13:52
  3. Drawing text in white color (Nokia 3650)
    By alexgodin in forum Mobile Java Media (Graphics & Sounds)
    Replies: 17
    Last Post: 2005-02-24, 15:17

Posting Permissions

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