home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1997 May / Pcwk0597.iso / sybase / starbuck / samples.z / Form1.wxf < prev    next >
Text File  |  1996-12-08  |  7KB  |  348 lines

  1. Save Format v1.3
  2. @begin Form "Form1"
  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 "Helvetica-Plain-10";
  10.   ControlScope "Private";
  11.   BackColor "Color.lightGray";
  12.   ForeColor "Color.black";
  13.   Text "Check Box Sample";
  14.   Visible "1";
  15.   DataSource "NULL";
  16.   DataColumns "";
  17.   BoundControl "0";
  18.   @begin Event "Create"
  19.    GencodeSrcLine 138;
  20.    FunctionName "Form1_Create";
  21.   @end;
  22.   @begin UserFunction "Form2(powersoft.jcm.ui.AWTAppletEx applet)"
  23.    Compiler 1;
  24.    GencodeSrcLine 108;
  25.    FunctionName "Form1::Form2(powersoft.jcm.ui.AWTAppletEx applet)";
  26.   @end;
  27.   @begin UserFunction "Init()"
  28.    Compiler 1;
  29.    GencodeSrcLine 113;
  30.    FunctionName "Form1::Init()";
  31.   @end;
  32.   @begin UserFunction "Start()"
  33.    Compiler 1;
  34.    GencodeSrcLine 118;
  35.    FunctionName "Form1::Start()";
  36.   @end;
  37.   @begin UserFunction "Stop()"
  38.    Compiler 1;
  39.    GencodeSrcLine 123;
  40.    FunctionName "Form1::Stop()";
  41.   @end;
  42.   @begin UserFunction "Destroy()"
  43.    Compiler 1;
  44.    GencodeSrcLine 103;
  45.    FunctionName "Form1::Destroy()";
  46.   @end;
  47.   @begin UserFunction "updateCheckBoxState( )"
  48.    Private 1;
  49.    GencodeSrcLine 128;
  50.    FunctionName "Form1::updateCheckBoxState( )";
  51.   @end;
  52.   @begin UserFunction "Prototype for updateCheckBoxState( )"
  53.    Private 1;
  54.    GencodeSrcLine -1;
  55.    FunctionName "Form1::Prototype for updateCheckBoxState( )";
  56.   @end;
  57.   ResID 102;
  58.   DesignName Form1;
  59.   TabIndex 0;
  60.   DesignRect 67,125,186,113;
  61.  @end;
  62.  
  63.  @begin Object "WJava_powersoft__dot__jcm__dot__ui__dot__CheckBox"
  64.   Font "<Inherited>";
  65.   Checked "0";
  66.   DataValueChecked "";
  67.   DataValueUnchecked "";
  68.   BackColor "Color.lightGray";
  69.   ForeColor "Color.black";
  70.   Text "C++";
  71.   Visible "1";
  72.   DataSource "NULL";
  73.   DataColumns "";
  74.   BoundControl "0";
  75.   ResID 101;
  76.   DesignName checkbox_cplusplus;
  77.   TabIndex 0;
  78.   DesignRect 15,20,34,8;
  79.  @end;
  80.  
  81.  @begin Object "WJava_powersoft__dot__jcm__dot__ui__dot__CheckBox"
  82.   Font "<Inherited>";
  83.   Checked "0";
  84.   DataValueChecked "";
  85.   DataValueUnchecked "";
  86.   BackColor "Color.lightGray";
  87.   ForeColor "Color.black";
  88.   Text "PowerBuilder";
  89.   Visible "1";
  90.   DataSource "NULL";
  91.   DataColumns "";
  92.   BoundControl "0";
  93.   ResID 102;
  94.   DesignName checkbox_powerbuilder;
  95.   TabIndex 1;
  96.   DesignRect 15,35,70,10;
  97.  @end;
  98.  
  99.  @begin Object "WJava_powersoft__dot__jcm__dot__ui__dot__CheckBox"
  100.   Font "<Inherited>";
  101.   Checked "0";
  102.   DataValueChecked "";
  103.   DataValueUnchecked "";
  104.   BackColor "Color.lightGray";
  105.   ForeColor "Color.black";
  106.   Text "Java";
  107.   Visible "1";
  108.   DataSource "NULL";
  109.   DataColumns "";
  110.   BoundControl "0";
  111.   ResID 103;
  112.   DesignName checkbox_java;
  113.   TabIndex 2;
  114.   DesignRect 15,50,34,8;
  115.  @end;
  116.  
  117.  @begin Object "WJava_powersoft__dot__jcm__dot__ui__dot__CommandButton"
  118.   Font "<Inherited>";
  119.   BackColor "[ 216 208 184 ]";
  120.   ForeColor "Color.black";
  121.   Text "Get Skills";
  122.   Visible "1";
  123.   DataSource "NULL";
  124.   DataColumns "";
  125.   BoundControl "0";
  126.   @begin Event "Click"
  127.    GencodeSrcLine 145;
  128.    FunctionName "cb_getSkills_Click";
  129.   @end;
  130.   ResID 104;
  131.   DesignName cb_getSkills;
  132.   TabIndex 3;
  133.   DesignRect 100,15,65,12;
  134.  @end;
  135.  
  136.  @begin Object "WJava_powersoft__dot__jcm__dot__ui__dot__ListBox"
  137.   Font "<Inherited>";
  138.   Sort "0";
  139.   DataTrackRow "0";
  140.   DataBindAsLookup "0";
  141.   DataLookupSource "NULL";
  142.   DataLookupColumns "";
  143.   BackColor "Color.white";
  144.   ForeColor "Color.black";
  145.   Text "";
  146.   Visible "1";
  147.   DataSource "NULL";
  148.   DataColumns "";
  149.   BoundControl "0";
  150.   ResID 105;
  151.   DesignName lb_skills;
  152.   TabIndex 4;
  153.   DesignRect 100,30,65,35;
  154.  @end;
  155.  
  156.  @begin Object "WJava_powersoft__dot__jcm__dot__ui__dot__GroupBox"
  157.   Font "<Inherited>";
  158.   ControlScope "Private";
  159.   BackColor "Color.lightGray";
  160.   ForeColor "Color.black";
  161.   Text "Programmers Skills";
  162.   Visible "1";
  163.   DataSource "NULL";
  164.   DataColumns "";
  165.   BoundControl "0";
  166.   ResID 100;
  167.   DesignName groupb_skills;
  168.   TabIndex 5;
  169.   DesignRect 5,5,170,65;
  170.  @end;
  171.  
  172.  @begin Object "WJava_powersoft__dot__jcm__dot__ui__dot__TextBox"
  173.   Font "<Inherited>";
  174.   PasswordCharacter "0";
  175.   BackColor "Color.lightGray";
  176.   ForeColor "Color.black";
  177.   Text "";
  178.   Visible "1";
  179.   DataSource "NULL";
  180.   DataColumns "";
  181.   BoundControl "0";
  182.   ResID 100;
  183.   DesignName textb_checkBoxState;
  184.   TabIndex 6;
  185.   DesignRect 100,80,65,12;
  186.  @end;
  187.  
  188.  @begin Object "WJava_powersoft__dot__jcm__dot__ui__dot__CheckBox"
  189.   Font "<Inherited>";
  190.   Checked "0";
  191.   DataValueChecked "";
  192.   DataValueUnchecked "";
  193.   BackColor "Color.lightGray";
  194.   ForeColor "Color.black";
  195.   Text "Check Box";
  196.   Visible "1";
  197.   DataSource "NULL";
  198.   DataColumns "";
  199.   BoundControl "0";
  200.   @begin Event "Click"
  201.    GencodeSrcLine 162;
  202.    FunctionName "checkbox_state_Click";
  203.   @end;
  204.   ResID 100;
  205.   DesignName checkbox_state;
  206.   TabIndex 7;
  207.   DesignRect 15,80,55,10;
  208.  @end;
  209.  
  210.  @begin HPPPrefixBlock
  211. @begin-code HPPPrefix
  212.  
  213. // add your custom import statements here
  214.  
  215. @end-code;
  216.   GencodeSrcLine 16;
  217.  @end;
  218.  
  219.  @begin ClassContentsBlock
  220. @begin-code ClassContents
  221.  
  222.     // add your data members here
  223.  
  224. @end-code;
  225.   GencodeSrcLine 183;
  226.  @end;
  227.  
  228. @begin-code BaseClassList
  229.  
  230. extends powersoft.jcm.ui.Applet
  231.  
  232. @end-code;
  233.  
  234. @begin-code GeneratedClassContents
  235.  
  236.  
  237. @end-code;
  238.  
  239. @begin-code Code "Form1::Form2(powersoft.jcm.ui.AWTAppletEx applet)"
  240.  
  241.     public @CLASSNAME@(powersoft.jcm.ui.AWTAppletEx applet)
  242.     {
  243.         super(applet);
  244.     }
  245.  
  246. @end-code;
  247.  
  248. @begin-code Code "Form1::Init()"
  249.  
  250.     public void Init()
  251.     {
  252.         
  253.     }
  254.  
  255. @end-code;
  256.  
  257. @begin-code Code "Form1::Start()"
  258.  
  259.     public void Start()
  260.     {
  261.         
  262.     }
  263.  
  264. @end-code;
  265.  
  266. @begin-code Code "Form1::Stop()"
  267.  
  268.     public void Stop()
  269.     {
  270.         
  271.     }
  272.  
  273. @end-code;
  274.  
  275. @begin-code Code "Form1::Destroy()"
  276.  
  277.     public void Destroy()
  278.     {
  279.         
  280.     }
  281.  
  282. @end-code;
  283.  
  284. @begin-code Code "Form1::updateCheckBoxState( )"
  285.  
  286.     private void updateCheckBoxState( )
  287.     {
  288.         
  289.         if ( checkbox_state.getChecked( ) )
  290.             textb_checkBoxState.setText( "Checked" );
  291.         else
  292.             textb_checkBoxState.setText( "Not Checked" );    
  293.             
  294.     }
  295.  
  296. @end-code;
  297.  
  298. @begin-code Code "Form1::Prototype for updateCheckBoxState( )"
  299.  
  300.     private:
  301.         void updateCheckBoxState( );
  302.  
  303. @end-code;
  304.  
  305. @begin-code Code "Form1_Create"
  306.  
  307.     public boolean Form1_Create(powersoft.jcm.event.CreateEvent event)
  308.     {
  309.         updateCheckBoxState( );    
  310.         
  311.         return false;
  312.     }
  313.  
  314. @end-code;
  315.  
  316. @begin-code Code "cb_getSkills_Click"
  317.  
  318.     public boolean cb_getSkills_Click(powersoft.jcm.event.ClickEvent event)
  319.     {
  320.     
  321.        // clear list box
  322.        lb_skills.deleteAll( );
  323.        
  324.        // check which checkboxes are checked
  325.        if ( checkbox_cplusplus.getChecked( ) )
  326.             lb_skills.add( "C++" );
  327.        if ( checkbox_powerbuilder.getChecked( ) )
  328.             lb_skills.add( "PowerBuilder" );
  329.        if ( checkbox_java.getChecked( ) )
  330.             lb_skills.add( "Java" );
  331.         
  332.         return false;
  333.     }
  334.  
  335. @end-code;
  336.  
  337. @begin-code Code "checkbox_state_Click"
  338.  
  339.     public boolean checkbox_state_Click(powersoft.jcm.event.ClickEvent event)
  340.     {
  341.         updateCheckBoxState( );
  342.         
  343.         return false;
  344.     }
  345.  
  346. @end-code;
  347. @end;
  348.