home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1997 October
/
Chip_1997-10_cd.bin
/
tema
/
sybase
/
powerj
/
samples.z
/
Form1.wxf
< prev
next >
Wrap
Text File
|
1997-01-28
|
7KB
|
358 lines
Save Format v2.0(1)
@begin Form "Form1"
Exported 0;
Abstract 0;
Interface 0;
PackageName "";
@begin Object "powersoft.jcm.ui.Applet"
Font "Helvetica-Plain-10";
ControlScope "Private";
BackColor "Color.lightGray";
ForeColor "Color.black";
Text "Check Box Sample";
Visible "1";
DataSource "NULL";
DataColumns "";
BoundControl "0";
@begin Event "powersoft.jcm.event.Create"
GencodeSrcLine 139;
FunctionName "Form1_Create";
@end;
@begin UserFunction "Form2(powersoft.jcm.ui.AWTAppletEx applet)"
Compiler 1;
GencodeSrcLine 109;
FunctionName "Form1::Form2(powersoft.jcm.ui.AWTAppletEx applet)";
@end;
@begin UserFunction "Init()"
Compiler 1;
GencodeSrcLine 114;
FunctionName "Form1::Init()";
@end;
@begin UserFunction "Start()"
Compiler 1;
GencodeSrcLine 119;
FunctionName "Form1::Start()";
@end;
@begin UserFunction "Stop()"
Compiler 1;
GencodeSrcLine 124;
FunctionName "Form1::Stop()";
@end;
@begin UserFunction "Destroy()"
Compiler 1;
GencodeSrcLine 104;
FunctionName "Form1::Destroy()";
@end;
@begin UserFunction "updateCheckBoxState( )"
Private 1;
GencodeSrcLine 129;
FunctionName "Form1::updateCheckBoxState( )";
@end;
@begin UserFunction "Prototype for updateCheckBoxState( )"
Private 1;
GencodeSrcLine -1;
FunctionName "Form1::Prototype for updateCheckBoxState( )";
@end;
ResID 102;
DesignName Form1;
TabIndex 0;
DesignRect 67,125,186,113;
@end;
@begin Object "powersoft.jcm.ui.CheckBox"
Font "<Inherited>";
Checked "0";
DataValueChecked "";
DataValueUnchecked "";
BackColor "Color.lightGray";
ForeColor "Color.black";
Text "C++";
Visible "1";
DataSource "NULL";
DataColumns "";
BoundControl "0";
ResID 101;
DesignName checkbox_cplusplus;
TabIndex 0;
DesignRect 15,20,34,8;
@end;
@begin Object "powersoft.jcm.ui.CheckBox"
Font "<Inherited>";
Checked "0";
DataValueChecked "";
DataValueUnchecked "";
BackColor "Color.lightGray";
ForeColor "Color.black";
Text "PowerBuilder";
Visible "1";
DataSource "NULL";
DataColumns "";
BoundControl "0";
ResID 102;
DesignName checkbox_powerbuilder;
TabIndex 1;
DesignRect 15,35,70,10;
@end;
@begin Object "powersoft.jcm.ui.CheckBox"
Font "<Inherited>";
Checked "0";
DataValueChecked "";
DataValueUnchecked "";
BackColor "Color.lightGray";
ForeColor "Color.black";
Text "Java";
Visible "1";
DataSource "NULL";
DataColumns "";
BoundControl "0";
ResID 103;
DesignName checkbox_java;
TabIndex 2;
DesignRect 15,50,34,8;
@end;
@begin Object "powersoft.jcm.ui.CommandButton"
Font "<Inherited>";
BackColor "[ 216 208 184 ]";
ForeColor "Color.black";
Text "Get Skills";
Visible "1";
DataSource "NULL";
DataColumns "";
BoundControl "0";
@begin Event "powersoft.jcm.event.Click"
GencodeSrcLine 146;
FunctionName "cb_getSkills_Click";
@end;
ResID 104;
DesignName cb_getSkills;
TabIndex 3;
DesignRect 100,15,65,12;
@end;
@begin Object "powersoft.jcm.ui.ListBox"
Font "<Inherited>";
Sort "0";
DataTrackRow "0";
DataBindAsLookup "0";
DataLookupSource "NULL";
DataLookupColumns "";
BackColor "Color.white";
ForeColor "Color.black";
Text "";
Visible "1";
DataSource "NULL";
DataColumns "";
BoundControl "0";
ResID 105;
DesignName lb_skills;
TabIndex 4;
DesignRect 100,30,65,35;
@begin ComponentData "lb_skills"
@end;
@end;
@begin Object "powersoft.jcm.ui.GroupBox"
Font "<Inherited>";
ControlScope "Private";
BackColor "Color.lightGray";
ForeColor "Color.black";
Text "Programmers Skills";
Visible "1";
DataSource "NULL";
DataColumns "";
BoundControl "0";
ResID 100;
DesignName groupb_skills;
TabIndex 5;
DesignRect 5,5,170,65;
@end;
@begin Object "powersoft.jcm.ui.TextBox"
Font "<Inherited>";
PasswordCharacter "0";
BackColor "Color.lightGray";
ForeColor "Color.black";
Text "";
Visible "1";
DataSource "NULL";
DataColumns "";
BoundControl "0";
ResID 100;
DesignName textb_checkBoxState;
TabIndex 6;
DesignRect 100,80,65,12;
@end;
@begin Object "powersoft.jcm.ui.CheckBox"
Font "<Inherited>";
Checked "0";
DataValueChecked "";
DataValueUnchecked "";
BackColor "Color.lightGray";
ForeColor "Color.black";
Text "Check Box";
Visible "1";
DataSource "NULL";
DataColumns "";
BoundControl "0";
@begin Event "powersoft.jcm.event.Click"
GencodeSrcLine 163;
FunctionName "checkbox_state_Click";
@end;
ResID 100;
DesignName checkbox_state;
TabIndex 7;
DesignRect 15,80,55,10;
@end;
@begin HPPPrefixBlock
@begin-code HPPPrefix
// add your custom import statements here
@end-code;
GencodeSrcLine 16;
@end;
@begin CPPPrefixBlock
@begin-code CPPPrefix
@end-code;
GencodeSrcLine 16;
@end;
@begin ClassContentsBlock
@begin-code ClassContents
// add your data members here
@end-code;
GencodeSrcLine 184;
@end;
@begin-code BaseClassList
extends powersoft.jcm.ui.Applet
@end-code;
@begin-code GeneratedClassContents
@end-code;
@begin-code Code "Form1::Form2(powersoft.jcm.ui.AWTAppletEx applet)"
public @CLASSNAME@(powersoft.jcm.ui.AWTAppletEx applet)
{
super(applet);
}
@end-code;
@begin-code Code "Form1::Init()"
public void Init()
{
}
@end-code;
@begin-code Code "Form1::Start()"
public void Start()
{
}
@end-code;
@begin-code Code "Form1::Stop()"
public void Stop()
{
}
@end-code;
@begin-code Code "Form1::Destroy()"
public void Destroy()
{
}
@end-code;
@begin-code Code "Form1::updateCheckBoxState( )"
private void updateCheckBoxState( )
{
if ( checkbox_state.getChecked( ) )
textb_checkBoxState.setText( "Checked" );
else
textb_checkBoxState.setText( "Not Checked" );
}
@end-code;
@begin-code Code "Form1::Prototype for updateCheckBoxState( )"
private:
void updateCheckBoxState( );
@end-code;
@begin-code Code "Form1_Create"
public boolean Form1_Create(powersoft.jcm.event.CreateEvent event)
{
updateCheckBoxState( );
return false;
}
@end-code;
@begin-code Code "cb_getSkills_Click"
public boolean cb_getSkills_Click(powersoft.jcm.event.ClickEvent event)
{
// clear list box
lb_skills.deleteAll( );
// check which checkboxes are checked
if ( checkbox_cplusplus.getChecked( ) )
lb_skills.add( "C++" );
if ( checkbox_powerbuilder.getChecked( ) )
lb_skills.add( "PowerBuilder" );
if ( checkbox_java.getChecked( ) )
lb_skills.add( "Java" );
return false;
}
@end-code;
@begin-code Code "checkbox_state_Click"
public boolean checkbox_state_Click(powersoft.jcm.event.ClickEvent event)
{
updateCheckBoxState( );
return false;
}
@end-code;
@end;