home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1997 October
/
Chip_1997-10_cd.bin
/
tema
/
sybase
/
powerj
/
samples.z
/
FORM2.WXF
< prev
next >
Wrap
Text File
|
1996-12-05
|
4KB
|
172 lines
Save Format v1.3
@begin Form "Form2"
Exported 0;
Abstract 0;
Interface 0;
PackageName "";
@begin Object "WJava_powersoft__dot__jcm__dot__ui__dot__Applet"
Font "Dialog-Plain-8";
ControlScope "Private";
BackColor "Color.lightGray";
ForeColor "Color.black";
Text "";
Visible "1";
DataSource "NULL";
DataColumns "";
BoundControl "0";
@begin UserFunction "Form2(powersoft.jcm.ui.AWTAppletEx applet)"
Compiler 1;
GencodeSrcLine 70;
FunctionName "Form2::Form2(powersoft.jcm.ui.AWTAppletEx applet)";
@end;
ResID 102;
DesignName Form2;
TabIndex 0;
DesignRect 13,119,509,163;
@end;
@begin Object "Class2"
HtmlID "HTMLClass2_1";
ResID 100;
DesignName Class2_1;
TabIndex 0;
DesignRect 5,10,19,17;
@end;
@begin Object "WJava_powersoft__dot__jcm__dot__ui__dot__CommandButton"
Font "<Inherited>";
BackColor "Color.lightGray";
ForeColor "Color.black";
Text "&Multiply using ActiveX control";
Visible "1";
DataSource "NULL";
DataColumns "";
BoundControl "0";
@begin Event "Click"
GencodeSrcLine 78;
FunctionName "cb_1_Click";
@end;
ResID 101;
DesignName cb_1;
TabIndex 1;
DesignRect 185,5,120,45;
@end;
@begin Object "WJava_powersoft__dot__jcm__dot__ui__dot__ListBox"
Font "<Inherited>";
DataTrackRow "0";
DataBindAsLookup "0";
DataLookupSource "NULL";
DataLookupColumns "";
BackColor "Color.white";
ForeColor "Color.black";
Text "";
Visible "1";
DataSource "NULL";
DataColumns "";
BoundControl "0";
ResID 102;
DesignName lb_1;
TabIndex 2;
DesignRect 0,55,495,90;
@end;
@begin Object "WJava_powersoft__dot__jcm__dot__ui__dot__TextBox"
Font "<Inherited>";
PasswordCharacter "0";
BackColor "Color.white";
ForeColor "Color.black";
Text "5";
Visible "1";
DataSource "NULL";
DataColumns "";
BoundControl "0";
ResID 103;
DesignName textb_1;
TabIndex 3;
DesignRect 35,20,135,15;
@end;
@begin Object "WJava_powersoft__dot__jcm__dot__ui__dot__TextBox"
Font "<Inherited>";
PasswordCharacter "0";
BackColor "Color.white";
ForeColor "Color.black";
Text "7";
Visible "1";
DataSource "NULL";
DataColumns "";
BoundControl "0";
ResID 104;
DesignName textb_2;
TabIndex 4;
DesignRect 329,20,134,15;
@end;
@begin HPPPrefixBlock
@begin-code HPPPrefix
// add your custom import statements here
@end-code;
GencodeSrcLine 15;
@end;
@begin CPPPrefixBlock
@begin-code CPPPrefix
@end-code;
GencodeSrcLine 15;
@end;
@begin ClassContentsBlock
@begin-code ClassContents
// add your data members here
@end-code;
GencodeSrcLine 106;
@end;
@begin-code BaseClassList
extends powersoft.jcm.ui.Applet
@end-code;
@begin-code GeneratedClassContents
@end-code;
@begin-code Code "Form2::Form2(powersoft.jcm.ui.AWTAppletEx applet)"
public @CLASSNAME@(powersoft.jcm.ui.AWTAppletEx applet)
{
super(applet);
}
@end-code;
@begin-code Code "cb_1_Click"
public boolean cb_1_Click(powersoft.jcm.event.ClickEvent event)
{
int result;
String resultStr;
int int1;
int int2;
int1 = Integer.parseInt( textb_1.getText() );
int2 = Integer.parseInt( textb_2.getText() );
result = Class2_1.Multiply( int1, int2 );
resultStr = "" + result;
lb_1.add( resultStr );
return false;
}
@end-code;
@end;