home *** CD-ROM | disk | FTP | other *** search
/ Internet Magazine 2002 June / INTERNET92.ISO / pc / software / windows / building / visual_dhtml / visualdhtmlwin9x_nt.exe / ocHelpW1.___ (.txt) < prev    next >
Encoding:
Java Class File  |  2001-10-19  |  2.1 KB  |  51 lines

  1. import com.ms.wfc.app.Application;
  2. import com.ms.wfc.core.Container;
  3. import com.ms.wfc.core.ResourceManager;
  4. import com.ms.wfc.ui.AxHost;
  5. import com.ms.wfc.ui.Control;
  6. import com.ms.wfc.ui.Form;
  7. import com.ms.wfc.ui.HTMLControl;
  8. import com.ms.wfc.ui.Point;
  9.  
  10. public class ocHelpWin extends Form {
  11.    String helpDoc = null;
  12.    int winWidth = 300;
  13.    int winHeight = 300;
  14.    Container components = new Container();
  15.    HTMLControl docArea = new HTMLControl();
  16.  
  17.    public ocHelpWin(String var1, int var2, int var3) {
  18.       this.helpDoc = var1;
  19.       this.winWidth = var2;
  20.       this.winHeight = var3;
  21.       this.initForm();
  22.       ((Control)this).setClientSize(new Point(var2, var3));
  23.       this.docArea.setURL(ACutil.getHelpDirectoryPath() + "\\" + var1);
  24.    }
  25.  
  26.    private void initForm() {
  27.       ResourceManager var1 = new ResourceManager(this, "ocHelpWin");
  28.       ((Control)this).setText("Visual DHTML - Help");
  29.       ((Form)this).setAutoScaleBaseSize(new Point(5, 13));
  30.       ((Control)this).setClientSize(new Point(305, 300));
  31.       ((Form)this).setStartPosition(1);
  32.       this.components.add(this.docArea, "docArea");
  33.       this.docArea.setDock(5);
  34.       this.docArea.setSize(new Point(305, 300));
  35.       this.docArea.setTabIndex(0);
  36.       this.docArea.setTabStop(false);
  37.       this.docArea.setOcxState((AxHost.State)var1.getObject("docArea_ocxState"));
  38.       ((Form)this).setNewControls(new Control[]{this.docArea});
  39.       this.docArea.begin();
  40.    }
  41.  
  42.    public static void launchWindow(String var0, int var1, int var2) {
  43.       Application.run(new ocHelpWin(var0, var1, var2));
  44.    }
  45.  
  46.    public void dispose() {
  47.       super.dispose();
  48.       this.components.dispose();
  49.    }
  50. }
  51.