/**
* Callback method for when solution is closed, force boolean argument tells if this is a force (not stoppable) close or not.
*
* @param {Boolean} force if false then solution close can be stopped by returning false
*
* @returns {Boolean}
*/
function onSolutionClose(force) {
var _sAnswer = 'OK';
if(!force) {
_sAnswer = plugins.dialogs.showQuestionDialog('Exit application','Are you sure you want to exit the application?', 'Cancel', 'OK');
}
return (_sAnswer == 'OK')
}
Return to Programming with Servoy
Users browsing this forum: No registered users and 8 guests