×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    61

    appuifw forms alternative?

    Hi!

    Is there an appuifw forms alternative?
    I woild like to override the default Form vehavior (the save and them back).
    If not, is there a way to close the form form the script (IE: when I press Save)?

    Regards.

  2. #2
    Registered User
    Join Date
    Feb 2009
    Posts
    3

    Re: appuifw forms alternative?

    I do not know whether there is alternative or not but the following code might help

    Code:
    import e32,appuifw
    def quit():
        app_lock.signal()
    appuifw.app.exit_key_handler=quit
    def opt1():
        appuifw.note(u'Saved','info')
        app_lock.signal()
    appuifw.app.menu=[(u'Save and quit',opt1)]
    app_lock=e32.Ao_lock()
    app_lock.wait()

  3. #3
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    61

    Re: appuifw forms alternative?

    Thanks for the reply smms, but this is not exactly what I'm looking for. The problem is in the Form behavior. When you call the execute() method in the Form, the user needs to press the Options->Save option of the left menu, and then press Back command. As far as I know, this behavior can't be changed. What I really need is to define the left and right command and use a custom callback to handle it. To close the Form from the script will be useful too.

    Regards.


    Quote Originally Posted by smms View Post
    I do not know whether there is alternative or not but the following code might help

    Code:
    import e32,appuifw
    def quit():
        app_lock.signal()
    appuifw.app.exit_key_handler=quit
    def opt1():
        appuifw.note(u'Saved','info')
        app_lock.signal()
    appuifw.app.menu=[(u'Save and quit',opt1)]
    app_lock=e32.Ao_lock()
    app_lock.wait()

  4. #4
    Registered User
    Join Date
    Feb 2009
    Posts
    3

    Re: appuifw forms alternative?

    I am sorry for being late
    try this:

    import appuifw
    listy=appuifw.available_fonts()
    data=[(u'Phone','text',u'Nokia'),(u'Font','combo',(listy,0))]
    flags=appuifw.FFormEditModeOnly
    f=appuifw.Form(data,flags)
    f.execute()

Similar Threads

  1. appuifw Tabs and forms
    By stobbsc in forum Symbian
    Replies: 3
    Last Post: 2008-10-08, 10:54
  2. how to replace forms Form's default options
    By JYF in forum Symbian Tools & SDKs
    Replies: 3
    Last Post: 2008-10-02, 14:10
  3. FindControl Inside FORMS in Resource.
    By cleanupstack in forum Symbian User Interface
    Replies: 1
    Last Post: 2008-02-17, 14:47
  4. problem with Views and Forms.
    By abhicreation in forum Symbian User Interface
    Replies: 3
    Last Post: 2007-05-24, 11:48
  5. Problem with Forms. Please help me!!
    By aangel1965 in forum Mobile Java General
    Replies: 3
    Last Post: 2006-05-03, 12:38

Posting Permissions

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