×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Regular Contributor
    Join Date
    Apr 2008
    Posts
    112

    how we can add custom buttons to global note

    i created a custom softkey R_SOFTKEYS_OPTIONS_HI
    i want to set this softkey to Globalnote

    i tried this:
    CAknGlobalNote* globalNote = CAknGlobalNote::NewLC();
    globalNote->ShowNoteL( EAknGlobalTextNote, _L("InitiaLizing") );
    globalNote->SetSoftkeys(R_SOFTKEYS_OPTIONS_HI);
    CleanupStack::PopAndDestroy( globalNote );

    but it's not working and how can i handle this events
    thank u

  2. #2
    Registered User
    Join Date
    May 2008
    Posts
    5

    Re: how we can add custom buttons to global note

    SetSoftkeys must come before ShowNote

  3. #3
    Regular Contributor
    Join Date
    Apr 2008
    Posts
    112

    Re: how we can add custom buttons to global note

    ya i tired that one also
    but no use
    thank u
    sree
    Last edited by arumilli; 2008-05-07 at 13:00.

  4. #4
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,359

    Re: how we can add custom buttons to global note

    Quote Originally Posted by arumilli View Post
    ya i tired that one also
    but no use
    Which means all is ok since according to the SDK docs the SetSoftkeys method is "not used". See CAknGlobalNote

    The ShowNoteL specifies the type of the note and the internal layout will be overridden to match the predefined layout for the given note type.
    -- Lucian

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

  5. #5
    Regular Contributor
    Join Date
    Apr 2008
    Posts
    112

    Re: how we can add custom buttons to global note

    thank u
    so how can i add customized softkeys to globalnote

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

    Re: how we can add custom buttons to global note

    I believe you can only add softkeys that are currently present in the avkon resource file AND to notes that support soft keys, in this case EAknGlobalTextNote does not.

    Global notes are not really suitable for most things as they sit on top of all other applications, rather you should be considfering something local in your UI.
    Download Symbian OS now! [url]http://developer.symbian.org[/url]

  7. #7
    Regular Contributor
    Join Date
    Apr 2008
    Posts
    112

    Re: how we can add custom buttons to global note

    thank u
    can u suggest me which dialog is best suit for me
    my requirement is if i select memnu item
    then we have to show one dailog with customkeys like hi,bye
    and i have to handle the events

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

    Re: how we can add custom buttons to global note

    Read the S60 UI Components document and select the appropriate controls from there

    http://www.forum.nokia.com/info/sw.n..._0_en.pdf.html

    http://www.forum.nokia.com/info/sw.n..._1_en.zip.html
    Download Symbian OS now! [url]http://developer.symbian.org[/url]

Similar Threads

  1. Global Wait Note dialog
    By mikkyt in forum Symbian User Interface
    Replies: 1
    Last Post: 2003-04-23, 04:30
  2. app view remains dimmed after global note is shown
    By liammurray in forum Symbian User Interface
    Replies: 4
    Last Post: 2003-03-22, 17:22
  3. About the Global Wait Note...
    By sbleriot in forum Symbian
    Replies: 0
    Last Post: 2003-02-26, 12:32
  4. How to set the size of the Global Wait Note ?
    By sbleriot in forum Symbian
    Replies: 1
    Last Post: 2003-02-21, 10:39
  5. Stop Global Wait Note...
    By sbleriot in forum Symbian
    Replies: 1
    Last Post: 2003-02-20, 09:48

Posting Permissions

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