×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 25
  1. #1
    Regular Contributor
    Join Date
    Aug 2005
    Posts
    79

    Dialog like as "Message Information" in SMS

    Hi,

    I think that's very newbie question, but i don't know the answer.

    How can I create dialog like as "Message Information", when you are open sms' properties? I need a dialog with normal headings and bold text on every string.

    Thanks,
    yavolinsky

  2. #2
    Regular Contributor
    Join Date
    Oct 2004
    Location
    india
    Posts
    306

    Re: Dialog like as "Message Information" in SMS

    hi,

    jusz chk caknmessagequerydialogs/controls


    bye
    N

  3. #3
    Regular Contributor
    Join Date
    Aug 2005
    Posts
    79

    Re: Dialog like as "Message Information" in SMS

    Thanks for reply,

    I've exeprimented a lot with CAknMessageQueryDialog class inside rss file many time before. But i'm stuck for now. Can you provide a small example?

    yavolinsky

  4. #4
    Regular Contributor
    Join Date
    Aug 2005
    Posts
    79

    Re: Dialog like as "Message Information" in SMS

    Hey guys,

    I really think that it's posible. Just didn't find a way. Plase give an advise how to create dialog like this

    http://www.ljplus.ru/img/y/a/yavol/messdialog.gif

    Thanks

  5. #5
    Registered User
    Join Date
    Sep 2006
    Posts
    39

    Re: Dialog like as "Message Information" in SMS

    Hi,

    Any news about that? Can somebody provide usefull information? I'd like to create such dialog and still don't know how to perform this.

    Thanks

  6. #6
    Super Contributor
    Join Date
    Nov 2004
    Location
    Wiltshire, UK
    Posts
    3,644

    Re: Dialog like as "Message Information" in SMS

    See CAknListQueryDialog

    Look in the Dialogs document in the Avkon Resources training notes
    http://www.forum.nokia.com/info/sw.n..._1_en.zip.html

  7. #7
    Registered User
    Join Date
    Sep 2006
    Posts
    39

    Re: Dialog like as "Message Information" in SMS

    Hi Paul!

    Thanks for reply, i've seen this document, and many others resource guides, nothing about this kind of dialogs Can you provide small example of rss and cpp code fragments?

    Thanks

  8. #8
    Super Contributor
    Join Date
    Nov 2004
    Location
    Wiltshire, UK
    Posts
    3,644

    Re: Dialog like as "Message Information" in SMS

    Sorry I provided this to a 3rd party under contract.

    4.1.3 of "S60 Platform: Avkon UI Resources - Dialogs v1.1" in the zip file mentioned as sufficient source to do this

  9. #9
    Registered User
    Join Date
    Sep 2006
    Posts
    39

    Re: Dialog like as "Message Information" in SMS

    Hi Paul!

    Hm, Can you just provide a name of a class? List dialogs are not exactly that I neeed. I need a dialog with several lines, which have title and bold body. In that kind of dialogs it's very handy to show some properties.

    http://www.ljplus.ru/img/y/a/yavol/messdialog.gif

    Thanks,
    Sergey

  10. #10
    Super Contributor
    Join Date
    Nov 2004
    Location
    Wiltshire, UK
    Posts
    3,644

    Re: Dialog like as "Message Information" in SMS

    I used a CAknSelectionListDialog with a EAknCtSingleHeadingListBox ( CAknSingleHeadingStyleListBox)

    Here is the RSS - the CPP code is too complex and specialized to show

    RESOURCE DIALOG r_res_id_for_a_dialog
    {
    flags = EAknDialogSelectionList;
    buttons = R_AVKON_SOFTKEYS_OK_CANCEL;

    items =
    {
    DLG_LINE
    {
    type = EAknCtSingleHeadingListBox;
    id = ESelectionListControl;
    control = LISTBOX
    {
    flags = EAknListBoxDisableHighlight;
    };
    }
    };
    }

  11. #11
    Registered User
    Join Date
    Sep 2006
    Posts
    39

    Re: Dialog like as "Message Information" in SMS

    Hi Paul!

    Thanks again for your time. I've tried provided by you rss example. I created CAknSelectionListDialog object and call ExecuteLD() function. This dialog covers all screen, while I need not so huge dialog. Also if data has length more then screen width, then the end replaced on "...", while I need it to be moved on next line. I'm still stuck with this dialog. Are you sure, that I can create described dialog with this rss and this class - CAknSelectionListDialog?

    Sergey

  12. #12
    Super Contributor
    Join Date
    Nov 2004
    Location
    Wiltshire, UK
    Posts
    3,644

    Re: Dialog like as "Message Information" in SMS

    Sorry I seem to have copied the wrong resource

    Here is the corrected one

    RESOURCE DIALOG r_readonly_query
    {
    flags = EGeneralQueryFlags;
    buttons = R_AVKON_SOFTKEYS_OK_EMPTY;
    items =
    {
    DLG_LINE
    {
    type = EAknCtListQueryControl;
    id = EListQueryControl;
    control = AVKON_LIST_QUERY_CONTROL
    {
    listtype = EAknCtSingleHeadingPopupMenuListBox;
    listbox = LISTBOX
    {
    flags = EAknListBoxMenuList | AknListBoxViewerFlags;
    height = 10;
    width = 100;
    array_id = r_readonly_query_list_item;
    };
    heading = "Message Details:";
    };
    }
    };
    }

    cpp
    :TInt index = 0;
    CAknListQueryDialog* dlg = new ( ELeave ) CAknListQueryDialog( &index );
    dlg->ExecuteLD(R_READONLY_QUERY);

    Each row has at column 0 either the heading or blank. At column 1 it has the actual text.

    For example a line would be "heading | some text*more text*even more text"
    and that would be represented as three lines
    Lines: heading\t*sometext
    Line2: \t*more text
    Line3: \t*even more text

    heading | *some text
    *more text
    *even more text

    The complex bit is actually working out how to split up the text so it is correctly displayed without wrapping - that I am afraid is for you to develop

  13. #13
    Registered User
    Join Date
    Sep 2006
    Posts
    39

    Re: Dialog like as "Message Information" in SMS

    Hi Paul!

    It's funny, because I've already tried this class too yesterday. And i wanted to write you that CAknListQueryDialog is closer to what i want However, as you can see it still far from dialog that i pictured before (red one). Long lines still truncated with "...". I need to do it manually if i want text to be auto formatted.

    The following dialog i have with your rss file and my rss array
    Code:
      LBUF { txt = "heading\tsometext sometext sometext"; },
      LBUF { txt = "h2\tCompany"; },
      LBUF { txt = "h3\tSite"; }
    http://www.ljplus.ru/img/y/a/yavol/dialog2.PNG

    Also, there is gray line between header and text. Why i'm so sure that this king of dialog can be done? I saw exactly the same dialog in FExplorer network properties window

  14. #14
    Regular Contributor
    Join Date
    May 2005
    Location
    Brasov, Romania
    Posts
    431

    Re: Dialog like as "Message Information" in SMS

    This one?

    http://discussion.forum.nokia.com/fo...ad.php?t=89685

    RSS code:

    Code:
    RESOURCE DIALOG r_disclaimer_dialog
    {
    	flags = EGeneralQueryFlags;
    	buttons = R_AVKON_SOFTKEYS_YES_NO;
    	items =
    	{
    		DLG_LINE
    		{
    			type = EAknCtPopupHeadingPane;
    			id = EAknMessageQueryHeaderId;
    			control = AVKON_HEADING
    			{
    			headinglayout = 0;			
    			};
    		}
    		,
    		DLG_LINE
    		{
    			type = EAknCtMessageQuery;
    			id = EAknMessageQueryContentId;
    			control = AVKON_MESSAGE_QUERY
    			{
    				message = "Test";
    			};
    		}
    	};
    }
    Instantiate it with:

    Code:
    	CAknMessageQueryDialog* dlg = CAknMessageQueryDialog::NewL(_L("sample content, change me"));
    	dlg->SetHeaderTextL(_L("sample title, change me")); 
    	dlg->PrepareLC(R_DISCLAIMER_DIALOG);
    	dlg->RunLD();

  15. #15
    Registered User
    Join Date
    Sep 2006
    Posts
    39

    Re: Dialog like as "Message Information" in SMS

    Hi Iulian! Thanks for reply!

    No, this is just message dialog with head and text section. I need this one:

    http://www.ljplus.ru/img/y/a/yavol/messdialog.gif

    I've tried a lot of ways, but still without any luck. Maybe you with your experience will advise something.

    Thanks,
    Sergey

Page 1 of 2 12 LastLast

Similar Threads

  1. Read SMS/ SMS Alert.
    By nirenj in forum General Messaging
    Replies: 3
    Last Post: 2009-01-14, 12:39
  2. Replies: 2
    Last Post: 2007-11-10, 13:19
  3. S60: Display dialog in front of the sms note
    By doctordwarf in forum Symbian User Interface
    Replies: 3
    Last Post: 2006-03-21, 08:43
  4. Sms resend ui dialog
    By hjrajala in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2003-05-19, 13:47
  5. SMS - "Message sending failed"
    By TheCyclops in forum Symbian C++
    Replies: 1
    Last Post: 2003-05-13, 06:24

Posting Permissions

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