×

Discussion Board

Results 1 to 1 of 1
  1. #1
    Registered User
    Join Date
    Apr 2003
    Posts
    10

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

    Hello

    I want to customize the appearance of the dialgo boxes in my application.

    I can change the control background with
    OverrideColorL(EColorControlBackground,TRgb(r,g,b));
    but it does not work with EColorControlText.

    Can anybody help me? Thanks in advance


    This is the code I'm using for the dialog:

    CAknQueryDialog *qdlg=CAknQueryDialog::NewL(CAknQueryDialog::ENoTone);
    qdlg->PrepareLC(R_OK_QUERY);

    qdlg->OverrideColorL(EColorControlBackground,TRgb(10,210,10));
    qdlg->OverrideColorL(EColorControlText,TRgb(64,0,0));

    qdlg->SetPromptL(aLabel);
    qdlg->RunLD();
    Last edited by Aarkham; 2003-07-11 at 16:44.

Posting Permissions

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