×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    May 2014
    Posts
    9

    How to perform some action on dialog.setDisposeWhenPointerOutOfBounds(true) ?

    I am working on sdk 1.1 and using lwuit 1.5.

    I am displaying a dialog on a form and using the following function on dialog
    Code:
    dialog.setDisposeWhenPointerOutOfBounds(true);
    I want to perform some action when dialog goes out of bounds.

    How to do this?

  2. #2
    Nokia Developer Champion
    Join Date
    Mar 2013
    Posts
    683

    Re: How to perform some action on dialog.setDisposeWhenPointerOutOfBounds(true) ?

    You have several options.
    1. if the dialog your showing is Modal dialog then you can simply place your code after the dialog.show() call which will be blocked since its modal dialog.
    2. add a custom transition out effect to the dialog and which wont actually do any transition but would just run your action.
    3. add a ShowListener to the form that calls this dialog just before you show the dialog and when the dialog is disposed the listener will be called (don't forget to remove that listener after you run your action from the ShowListener.
    Heard of DVLUP? Join here

Similar Threads

  1. How to handle "Cancel" action in the access point selection dialog
    By elviin in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2010-06-03, 09:53
  2. Tap on dialog should take action of LSK
    By jitesh.s in forum Symbian User Interface
    Replies: 1
    Last Post: 2010-02-16, 12:44
  3. Perform an action upon launch of the application
    By hmleung in forum Symbian User Interface
    Replies: 2
    Last Post: 2006-11-19, 17:45
  4. Replies: 1
    Last Post: 2004-01-27, 03:06

Posting Permissions

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