×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Regular Contributor
    Join Date
    Jul 2007
    Posts
    161

    MessageBox with scrollbar

    I need to display messagebox with long text message. What is the simplest way to do this? Thanks.

  2. #2
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: MessageBox with scrollbar

    Try searching for list box in Wiki.
    Or try list box example that comes with SDK.

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

    Re: MessageBox with scrollbar

    Search for CAknMessageQueryDialog in the wiki
    Download Symbian OS now! [url]http://developer.symbian.org[/url]

  4. #4
    Regular Contributor
    Join Date
    Jul 2007
    Posts
    161

    Re: MessageBox with scrollbar

    This is a wiki example from http://wiki.forum.nokia.com/index.ph...nformation_Box
    :
    Code:
    // S60 1-3rd ed
    #include <avkon.rsg>
    #include <aknmessagequerydialog.h>
    // Link against: avkon.lib
     
    // Returns SoftKey ID or zero if canceled
    // EAknSoftkeyCancel, EAknSoftkeyBack and EAknSoftkeyNo return Zero   
    TInt CMyApp::MyQueryDlg(const TDesC& aHeader, const TDesC& aText)
    {
       CAknMessageQueryDialog* dlg=
          CAknMessageQueryDialog::NewL(const_cast<TDesC&>(aText));
       CleanupStack::PushL(dlg);
       dlg->SetHeaderTextL(aHeader);
       CleanupStack::Pop(dlg); 
       // ExecuteLD loads, displays, and deletes the dialog.
       // it returns the id of the selected softkey or zero for cancel
       return dlg->ExecuteLD(R_AVKON_MESSAGE_QUERY_DIALOG);
    }
    But there are two buttons: ok and cancel.
    How can I remove cancel?

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

    Re: MessageBox with scrollbar

    Actually http://wiki.forum.nokia.com/index.ph...e_About_dialog is a much better example as the link you posted is missing the resource definition

    In the button section
    "buttons = R_AVKON_SOFTKEYS_BACK;"

    This one has a back button but you could just as easily change it to cancel
    buttons = R_AVKON_SOFTKEYS_CANCEL;
    though back is the preferred styleguid option
    Download Symbian OS now! [url]http://developer.symbian.org[/url]

  6. #6
    Regular Contributor
    Join Date
    Jul 2007
    Posts
    161

    Re: MessageBox with scrollbar

    Thanks! There is another thread on this subject http://discussion.forum.nokia.com/fo...ad.php?t=20534
    Last edited by StasV; 2008-07-04 at 12:18.

Similar Threads

  1. Grid and scrollbar layout
    By dathom in forum Symbian User Interface
    Replies: 6
    Last Post: 2009-01-06, 14:09
  2. CEikRichTextEditor ScrollBar S60 3rd
    By Altexia in forum Symbian User Interface
    Replies: 0
    Last Post: 2008-01-02, 15:32
  3. ListBox Hide ScrollBar
    By muntain in forum Symbian User Interface
    Replies: 7
    Last Post: 2007-08-09, 09:17
  4. Scrollbar in 3rd edition?
    By kiranpuranik in forum Symbian C++
    Replies: 9
    Last Post: 2007-04-30, 11:31
  5. ScrollBar not visible after visit to menu
    By pheno in forum Symbian User Interface
    Replies: 1
    Last Post: 2005-04-04, 12:14

Posting Permissions

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