Results 1 to 2 of 2

Thread: Settings "Ok" pressed

  1. #1
    Newbie
    Join Date
    Jul 2006
    Posts
    3

    Settings "Ok" pressed

    I'm working on a plugin. Is there an event for the "Ok" button being pressed?

    I am currently saving the settings using the onChanged event handler. This is alright, but I would prefer only to save them when the ok is pressed (leaving "Back" as a cancel).

    My problem is that if I save them after every change, I also have to re-initialize everything on every save. Because I couldn't find a callback for the settings screen dismissed/disposed.

    I am working with Com Ports, and doing it this way causes my code to try and connect to each com port as I scroll through the list. Giving me access denied errors on some of them if they are in use. I would like to be able to scroll through them to the one I want, and then save it. Allowing my plugin to only initialize the correct com port.

  2. #2
    Raw Wave
    Auto Apps:loading...
    justchat_1's Avatar
    Join Date
    Jul 2008
    Location
    Boston, Ma or NY,NY
    Posts
    2,359
    Unfortunately in 0.8, the OK button just executes the GoBack function making it impossible to detect whether ok or back was pressed.

    You could listen for the GoBack event though and only re-initialize everything if the settings have changed and the ok or back button is pushed.

Similar Threads

  1. openMobile 0.8 Released
    By justchat_1 in forum OpenMobile
    Replies: 141
    Last Post: 11-06-2010, 07:11 PM
  2. openMobile 0.7 is now feature complete
    By justchat_1 in forum OpenMobile
    Replies: 218
    Last Post: 09-21-2010, 02:55 PM
  3. Replies: 0
    Last Post: 02-11-2010, 09:33 AM
  4. [Release] SKINbedder BETA 2.99999
    By 0l33l in forum SkinBedder
    Replies: 450
    Last Post: 09-23-2005, 03:38 AM
  5. SETTINGS wrong screen
    By Ascension in forum FP Bug Reports
    Replies: 2
    Last Post: 06-28-2005, 11:13 AM

Bookmarks

Posting Permissions

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