×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Dec 2006
    Posts
    28

    How to change the text color of the controls in a dialog?

    Hi ,

    I am not able to change the text color in my dialog.

    Could anybody help me please?

    TBuf<255> header;
    TBuf<2555> msg;
    //TBuf<255> cba2Text;

    header.Copy(_L("Header"));

    msg.Copy(_L("Test Message."));
    //cba2Text.Copy(_L("Details"));
    //cba2Text.Copy(_L("Details"));

    /* CAknMessageQueryDialog* dialog=CAknMessageQueryDialog::NewL(msg);
    dialog->PrepareLC(R_AVKON_MESSAGE_QUERY_DIALOG);

    //TInt cbaPos=dialog->ButtonGroupContainer().PositionById(EAknSoftkeyCancel);
    //dialog->ButtonGroupContainer().RemoveCommandFromStack(cbaPos,EAknSoftkeyCancel);
    //dialog->ButtonGroupContainer().AddCommandToStackL(cbaPos,EAknSoftkeyCancel,cba2Text);

    dialog->SetHeaderTextL(header);
    if(dialog->RunLD())
    {
    //OK button is pressed
    }*/


    CAknMessageQueryDialog *qdlg=CAknMessageQueryDialog::NewL(msg);
    qdlg->PrepareLC(R_AVKON_MESSAGE_QUERY_DIALOG);

    qdlg->OverrideColorL(EColorControlBackground,TRgb(10,210,10));
    qdlg->OverrideColorL(EColorControlText,TRgb(176,23,31));//For Red color


    qdlg->SetHeaderTextL(header);
    if(qdlg->RunLD())
    {
    //OK button is pressed
    }

  2. #2
    Registered User
    Join Date
    Dec 2006
    Posts
    28

    Re: How to change the text color of the controls in a dialog?

    Please anyone help me??

    Whats wrong with the code.

    I want to change the text/Background color of dialog in my code.

    Anyone reply soon.

    Thanks alot.

Similar Threads

  1. Change label of dialog lines
    By A.Vogel in forum Symbian User Interface
    Replies: 2
    Last Post: 2007-09-04, 11:06
  2. Replies: 0
    Last Post: 2007-04-17, 15:53
  3. Text distortion on series 60 dialog box
    By ronoc in forum Symbian Media (Closed)
    Replies: 0
    Last Post: 2005-02-04, 16:09
  4. Form and Text Editor in Dialog
    By nutter420 in forum Symbian User Interface
    Replies: 5
    Last Post: 2004-08-27, 21:13
  5. Getting the text of a dialog text field.
    By mayur_24 in forum Symbian
    Replies: 1
    Last Post: 2004-08-20, 04: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
  •  
×