home *** CD-ROM | disk | FTP | other *** search
/ PC User 2001 August / APC_Aug2001_CD2.iso / features / web_dev / files / mwjpp516.exe / %MAINDIR% / Tools / Experimental / showSampleModelessDialog.script < prev   
Encoding:
Text File  |  2001-06-19  |  948 b   |  50 lines

  1. !!Script
  2.  
  3. // Turn on conditional compiliation support
  4. @cc_on;
  5.     
  6. @set @fullscreen = true; 
  7.  
  8. var gOutput = getOutput();
  9.  
  10. function DoCommand()
  11. {
  12.     var path = File.getToolsPath;
  13.     path += "\\Experimental\\SampleModelessDialog.html";
  14.     
  15.     var size = Application.getScreenSize();
  16.     var windowRect = Application.getWindowRect();
  17.     var windowRectRestored = Application.getWindowRect();
  18.     Host.setGlobal("oldRect",windowRectRestored);
  19.  
  20.     @if (@fullscreen)
  21.     
  22.     var rect = newRect();
  23.     rect.top = 0;
  24.     rect.bottom = size.y;
  25.     rect.left = 0;
  26.     rect.right = size.x/3;
  27.     
  28.     windowRect.left = rect.right;
  29.     windowRect.right = size.x;
  30.     windowRect.top = 0;
  31.     windowRect.bottom = size.y;
  32.     
  33.     Application.setWindowRect(windowRect);
  34.     
  35.     @else
  36.     
  37.     var rect = newRect();
  38.     rect.top = windowRect.top;
  39.     rect.bottom = windowRect.bottom;
  40.     rect.left = 0;
  41.     rect.right = windowRect.left;
  42.     
  43.     @end
  44.     
  45.     showHtmlPopup(path, "Title", rect);
  46. }
  47.  
  48. !!/Script
  49.  
  50.