1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-15 07:43:50 +00:00

Added ability to close message-box on windows

This commit is contained in:
Bryan Roe
2020-04-28 14:27:42 -07:00
parent 1e10f90aec
commit c7959a8332
3 changed files with 29 additions and 6 deletions

View File

@@ -120,6 +120,7 @@ function messageBox()
ret._container.promise = ret;
ret._container.on('data', function (j)
{
this.promise._container = null;
if(j == IDYES || j == IDOK)
{
this.promise._res();
@@ -131,10 +132,15 @@ function messageBox()
});
ret._container.on('exit', function ()
{
this.promise._container = null;
this.promise._rej('Timeout');
});
ret._container.ExecuteString(childScript);
ret._container.send({ command: 'messageBox', caption: caption, title: title, layout: layout });
ret.close = function ()
{
this._container.exit2();
};
return (ret);
};
}