×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    May 2007
    Posts
    48

    Question RNotifier Notify(..) only one button

    is it possible to show only one button, according to:
    Notify()
    IMPORT_C void Notify(const TDesC &aLine1, const TDesC &aLine2, const TDesC &aBut1, const TDesC &aBut2, TInt &aButtonVal, TRequestStatus &aStatus);
    Description
    Launches a simple two line dialog that displays two lines of text.

    This is an asynchronous request that completes when the dialog exits.

    Parameters
    const TDesC &aLine1 A descriptor containing the first line of text to be displayed.

    const TDesC &aLine2 A descriptor containing the second line of text to be displayed.

    const TDesC &aBut1 A descriptor containing text to be displayed in the first button.

    const TDesC &aBut2 A descriptor containing text to be displayed in the (optional) second button.

    TInt &aButtonVal An integer value which is set when the dialog exits. It is set to: 0, if the first button is selected; 1, if the second button is selected.

    TRequestStatus &aStatus The request status object. If the request completes normally, this is set to KErrNone.
    was is optional here? displayed text or the button?

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,740

    Re: RNotifier Notify(..) only one button

    Quote Originally Posted by marcinkrol84
    what is optional here? displayed text or the button?
    The displayed text is mandatory, however passing an empty string (KNullDesC) displays nothing, and it can also happen that it also disables the button. Feel free to try.
    Anyway, note that RNotifier::Notify displays an empty box without labels on several 3rd edition devices (this might also depend on the firmware, I have not checked), you might rather want to use CAknInformationNote:
    Code:
    (new(ELeave)CAknInformationNote)->ExecuteLD(_L("Hello World")); // do not forget the header and the libraries

Similar Threads

  1. Dialog button vs softkey button
    By apitoman in forum Symbian User Interface
    Replies: 2
    Last Post: 2011-07-19, 12:28
  2. Nokia E62/E61 kill button
    By regis.melo in forum Mobile Java General
    Replies: 1
    Last Post: 2007-05-14, 17:55
  3. command button problem with s60 phones
    By jonneymendoza in forum Mobile Java Games
    Replies: 1
    Last Post: 2007-03-24, 05:33
  4. RNotifier partially disabled on Series60?
    By mapeters in forum Symbian
    Replies: 0
    Last Post: 2004-10-07, 23:30

Posting Permissions

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