home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1997 May / Pcwk0597.iso / sybase / starbuck / samples.z / FORM2.WXF < prev    next >
Text File  |  1996-12-05  |  4KB  |  172 lines

  1. Save Format v1.3
  2. @begin Form "Form2"
  3.  Exported 0;
  4.  Abstract 0;
  5.  Interface 0;
  6.  PackageName "";
  7.  
  8.  @begin Object "WJava_powersoft__dot__jcm__dot__ui__dot__Applet"
  9.   Font "Dialog-Plain-8";
  10.   ControlScope "Private";
  11.   BackColor "Color.lightGray";
  12.   ForeColor "Color.black";
  13.   Text "";
  14.   Visible "1";
  15.   DataSource "NULL";
  16.   DataColumns "";
  17.   BoundControl "0";
  18.   @begin UserFunction "Form2(powersoft.jcm.ui.AWTAppletEx applet)"
  19.    Compiler 1;
  20.    GencodeSrcLine 70;
  21.    FunctionName "Form2::Form2(powersoft.jcm.ui.AWTAppletEx applet)";
  22.   @end;
  23.   ResID 102;
  24.   DesignName Form2;
  25.   TabIndex 0;
  26.   DesignRect 13,119,509,163;
  27.  @end;
  28.  
  29.  @begin Object "Class2"
  30.   HtmlID "HTMLClass2_1";
  31.   ResID 100;
  32.   DesignName Class2_1;
  33.   TabIndex 0;
  34.   DesignRect 5,10,19,17;
  35.  @end;
  36.  
  37.  @begin Object "WJava_powersoft__dot__jcm__dot__ui__dot__CommandButton"
  38.   Font "<Inherited>";
  39.   BackColor "Color.lightGray";
  40.   ForeColor "Color.black";
  41.   Text "&Multiply using ActiveX control";
  42.   Visible "1";
  43.   DataSource "NULL";
  44.   DataColumns "";
  45.   BoundControl "0";
  46.   @begin Event "Click"
  47.    GencodeSrcLine 78;
  48.    FunctionName "cb_1_Click";
  49.   @end;
  50.   ResID 101;
  51.   DesignName cb_1;
  52.   TabIndex 1;
  53.   DesignRect 185,5,120,45;
  54.  @end;
  55.  
  56.  @begin Object "WJava_powersoft__dot__jcm__dot__ui__dot__ListBox"
  57.   Font "<Inherited>";
  58.   DataTrackRow "0";
  59.   DataBindAsLookup "0";
  60.   DataLookupSource "NULL";
  61.   DataLookupColumns "";
  62.   BackColor "Color.white";
  63.   ForeColor "Color.black";
  64.   Text "";
  65.   Visible "1";
  66.   DataSource "NULL";
  67.   DataColumns "";
  68.   BoundControl "0";
  69.   ResID 102;
  70.   DesignName lb_1;
  71.   TabIndex 2;
  72.   DesignRect 0,55,495,90;
  73.  @end;
  74.  
  75.  @begin Object "WJava_powersoft__dot__jcm__dot__ui__dot__TextBox"
  76.   Font "<Inherited>";
  77.   PasswordCharacter "0";
  78.   BackColor "Color.white";
  79.   ForeColor "Color.black";
  80.   Text "5";
  81.   Visible "1";
  82.   DataSource "NULL";
  83.   DataColumns "";
  84.   BoundControl "0";
  85.   ResID 103;
  86.   DesignName textb_1;
  87.   TabIndex 3;
  88.   DesignRect 35,20,135,15;
  89.  @end;
  90.  
  91.  @begin Object "WJava_powersoft__dot__jcm__dot__ui__dot__TextBox"
  92.   Font "<Inherited>";
  93.   PasswordCharacter "0";
  94.   BackColor "Color.white";
  95.   ForeColor "Color.black";
  96.   Text "7";
  97.   Visible "1";
  98.   DataSource "NULL";
  99.   DataColumns "";
  100.   BoundControl "0";
  101.   ResID 104;
  102.   DesignName textb_2;
  103.   TabIndex 4;
  104.   DesignRect 329,20,134,15;
  105.  @end;
  106.  
  107.  @begin HPPPrefixBlock
  108. @begin-code HPPPrefix
  109.  
  110. // add your custom import statements here
  111.  
  112. @end-code;
  113.   GencodeSrcLine 15;
  114.  @end;
  115.  
  116.  @begin CPPPrefixBlock
  117. @begin-code CPPPrefix
  118.  
  119.  
  120. @end-code;
  121.   GencodeSrcLine 15;
  122.  @end;
  123.  
  124.  @begin ClassContentsBlock
  125. @begin-code ClassContents
  126.  
  127.     // add your data members here
  128.  
  129. @end-code;
  130.   GencodeSrcLine 106;
  131.  @end;
  132.  
  133. @begin-code BaseClassList
  134.  
  135. extends powersoft.jcm.ui.Applet
  136.  
  137. @end-code;
  138.  
  139. @begin-code GeneratedClassContents
  140.  
  141.  
  142. @end-code;
  143.  
  144. @begin-code Code "Form2::Form2(powersoft.jcm.ui.AWTAppletEx applet)"
  145.  
  146.     public @CLASSNAME@(powersoft.jcm.ui.AWTAppletEx applet)
  147.     {
  148.         super(applet);
  149.     }
  150.  
  151. @end-code;
  152.  
  153. @begin-code Code "cb_1_Click"
  154.  
  155.     public boolean cb_1_Click(powersoft.jcm.event.ClickEvent event)
  156.     {
  157.         int             result;
  158.         String          resultStr;
  159.         int             int1;
  160.         int             int2;
  161.         
  162.         int1 = Integer.parseInt( textb_1.getText() );
  163.         int2 = Integer.parseInt( textb_2.getText() );
  164.         result = Class2_1.Multiply( int1, int2 );    
  165.         resultStr = "" + result;
  166.         lb_1.add( resultStr );
  167.         return false;
  168.     }
  169.  
  170. @end-code;
  171. @end;
  172.