You Are Here:

Community: Developer Discussion Boards

#1 Old Form defaults - 2008-10-31, 05:13

Join Date: Oct 2008
Posts: 29
mango7
Offline
Registered User
Hi,

Does anyone know how to disable to form's default "save" menu option and save prompt under the back key? I need to post the contents of the form to a server, and have no need for saving the form. Additionally, I do not want the back key to prompt the user to save the form.

These defaults are very confusing, and I would appreciate any guidance on disabling them!

Thanks in advance.
Reply With Quote

#2 Old Re: Form defaults - 2008-11-01, 20:32

Join Date: Feb 2008
Posts: 743
Location: Belo Horizonte, Brazil
Send a message via Skype™ to Rafael T.
Rafael T.'s Avatar
Rafael T.
Offline
Forum Nokia Champion
Quote:
Originally Posted by mango7 View Post
Hi,

Does anyone know how to disable to form's default "save" menu option and save prompt under the back key? I need to post the contents of the form to a server, and have no need for saving the form. Additionally, I do not want the back key to prompt the user to save the form.

These defaults are very confusing, and I would appreciate any guidance on disabling them!

Thanks in advance.
Hi mango7,

Yes, you could personalize the menu:

Code:
import appuifw

def handle_forms():
    form = appuifw.Form(fields, flags)
    form.menu = [(u"Exit", quit)]
    form.execute()
Also, see what is written on the Library Reference:

Quote:
menu

A list of (title, callback) pairs, where each pair describes an item in the form’s menu bar that is active while the dialog is being executed. title (Unicode) is the name of the item and callback the associated callable object.
Hope it helps,

Rafael.
Last edited by Rafael T. : 2008-11-01 at 20:37.
Reply With Quote

#3 Old Re: Form defaults - 2008-11-01, 20:38

Join Date: Oct 2008
Posts: 29
mango7
Offline
Registered User
Hi Rafael,

Unfortunately, I still get a "save" menu option even after adding my own menu options. Does "save" show up in your menu, or is it completely absent after creating your customized menu?

Thanks
Reply With Quote

#4 Old Re: Form defaults - 2008-11-01, 21:07

Join Date: Feb 2008
Posts: 743
Location: Belo Horizonte, Brazil
Send a message via Skype™ to Rafael T.
Rafael T.'s Avatar
Rafael T.
Offline
Forum Nokia Champion
Quote:
Originally Posted by mango7 View Post
Hi Rafael,

Unfortunately, I still get a "save" menu option even after adding my own menu options. Does "save" show up in your menu, or is it completely absent after creating your customized menu?

Thanks
Actually, I did this example without testing, just for showing you it is possible. Although, I'm not sure if you can take out the "Save" option, cause it's a default action of a form

I'll search a bit more and if I find something I'll post it here for you.


BR,

Rafael.
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
second form not getting key events krsunil Symbian User Interface 3 2008-12-10 11:29
Form troubles matdodgson Symbian User Interface 2 2008-12-06 11:49
Weird Form behaviour on N73 Damo2k Mobile Java Tools & SDKs 2 2008-02-21 16:43
Hide Defaults Form - Menus Kavit Patel General Symbian C++ 1 2008-02-09 17:49
problems in creating multipage form A.Vogel Symbian User Interface 0 2007-10-02 09:16

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia