×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Feb 2005
    Posts
    85

    Custom dialog- a dialog similar to a popup dialog

    Hi,

    I want to implement a popup dialog which has a title, and its content text can have different color, size and maybe link or the phone number which can be directly dialed, just like the phone number in sms content.

    So I decided to follow the example:

    http://wiki.forum.nokia.com/index.ph...yDialog_dialog

    and chagend the .rss file to this:
    ---------------------------------------------------
    flags = EGeneralQueryFlags | EEikDialogFlagNoBorder | EEikDialogFlagNoShadow;
    buttons = R_AVKON_SOFTKEYS_OK_EMPTY;

    items=
    {
    DLG_LINE
    {
    type = EAknCtPopupHeadingPane;
    id = EAknMessageQueryHeaderId;
    control = AVKON_HEADING
    {
    };
    },
    DLG_LINE
    {
    type = EAknCtMessageQuery;
    id = EAknMessageQueryContentId;
    control = AVKON_MESSAGE_QUERY
    {
    };
    }
    ----------------------------------------------------------------------------
    Then:
    ---------------------------------------------------------------------------
    iDialog->PrepareLC(R_MODAL_DIALOG);
    iDialog->QueryHeading()->SetTextL(_L("test"));

    iDialog->RunLD();
    ---------------------------------------------------------------------------

    And change the CSplashScreenDialog::SetSizeAndPosition, so it covers the half of screen

    But after I run it, there are two problems:
    1. I didn't see the title
    2. A simple rectangle covers the half of the screen and that is very ugly

    Sorry for not being so familiar with the UI programming, can someone help me? Thanks in advance!

    PS, it doesn't need to be a dialog, but the appearance matters
    Last edited by zhengyu97; 2010-11-24 at 05:10.

  2. #2
    Regular Contributor
    Join Date
    Feb 2005
    Posts
    85

    Re: Custom dialog- a dialog similar to a popup dialog

    I have tried the CAknMessageQueryDialog and its appearence suits my need, but somehow I am not able to change the message text color and size. Any idea?

Similar Threads

  1. How to get a popup dialog
    By vipoyan@yahoo.com.cn in forum Symbian User Interface
    Replies: 6
    Last Post: 2010-01-22, 18:23
  2. missed call dialog/new sms dialog
    By kkrish in forum Symbian
    Replies: 9
    Last Post: 2008-11-12, 04:53
  3. Is Custom Dialog same as adding custom contol to a dialog?
    By ameybarve in forum Symbian User Interface
    Replies: 24
    Last Post: 2008-10-31, 07:55
  4. problem with popup from dialog
    By soumyso in forum Symbian
    Replies: 0
    Last Post: 2007-10-06, 06:27
  5. Modal Dialog key events causing dialog to exit
    By roland.berry in forum Symbian
    Replies: 0
    Last Post: 2007-07-19, 10:29

Posting Permissions

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