Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function openFileIll (oFile)
- {
- // Prepare a "Loading..." windowless palette
- var waitWin = new Window("palette", "Loading...", undefined, {borderless: true});
- waitWin.onShow = function()
- {
- waitWin.location.x = ($.screens[0].right / 2) - (waitWin.size[0] / 2);
- waitWin.location.y = ($.screens[0].bottom / 2) - (waitWin.size[1] / 2) - 400;
- }
- var waitPanel = waitWin.add("group");
- var waitText = waitPanel.add("statictext", undefined, "Loading...");
- waitWin.show();
- app.open(oFile);
- waitWin.hide();
- waitWin.close();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement