home *** CD-ROM | disk | FTP | other *** search
- !!Script
- // Copyright ⌐ 2000 - Modelworks Software
- // @Created: build 349 cm20000510
-
- /*
- To have the html access the IDE objects, add the following to your html
- page before any other scripts:
-
- <script language="jscript">
-
- var gHost = window.external.Host;
- var gApplication = window.external.Application;
- var
- if (gHost)
- {
- gOutput = gHost.getOutput();
- }
-
- </script>
- */
-
- var gOutput = getOutput();
-
- function DoCommand()
- {
- var file = chooseFile("Choose HTML file to open", "HTML file", "*.htm*");
-
- if (file)
- {
- var size = Application.getScreenSize();
- var windowRect = Application.getWindowRect();
- var windowRectRestored = Application.getWindowRect();
- Host.setGlobal("oldRect",windowRectRestored);
-
- var rect = newRect();
- rect.top = 0;
- rect.bottom = size.y;
- rect.left = 0;
- rect.right = size.x/3;
-
- windowRect.left = rect.right;
- windowRect.right = size.x;
- windowRect.top = 0;
- windowRect.bottom = size.y;
-
- Application.setWindowRect(windowRect);
-
- var callbackPath = File.getToolsPath;
- callbackPath += "\\Misc\\showHtml.script";
-
- showHtmlPopup(file.path, "Title", rect, callbackPath);
- }
- }
-
- function OnNotify(document)
- {
- var oldRect = Host.getGlobal("oldRect");
- if (oldRect)
- {
- Application.setWindowRect(oldRect);
- }
- }
-
- !!/Script
-
-