Does anyone know if there's a way to intercept the file open functions? We're in a situation where we'd like to be able to determine if a user is about to try to edit an older version openflight file with a new version of Creator. So for example if we see a v15.7 file being opened, we'd like to pop up a warning, or perform some other function.
It seems this might be possible by registering a different filetype or extension, but we want to do it on opening the regular .FLT files.
There is a "notification" mechanism available to Creator plugins that could help in this situation. See the API function mgRegisterNotifier and the specific Notifier Events called MNOTIFY_DATABASEOPENED and MNOTIFY_DATABASESAVED. After registering for these notifications - whenever a database is subsequently opened or saved, respectively, your plugin would get "notified" at which time you could take some appropriate action (pop up a warning, etc).
Good tip - thanks - we'll try that.