FME_CANCEL

Description

FME_CANCEL event is triggered when the user exits the plugin without applying the effect.
It also works for the ESC key and the x button in the titlebar.
To activate this event you need to use "Dialog: cancelevent" or setDialogEvent(2).

Example

%ffp
Dialog: cancelevent

OnCtl(n): {
    if (e==FME_CANCEL) {        
         Info("You just have exited from plugin");
    }
    return false;
}

Also see

FME_INIT, (setDialogEvent)?

Comments

Since Beta 8.7 the event n== CTL_CANCEL && e==FME_CLICKED is almost equivalent to the event e==FME_CANCEL

Everyone can add his comments about his experiences with this event here. Tips for using it are welcome, too.