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
|
5KB
|
200 lines
Save Format v2.0(1)
@begin Form "Form1"
Exported 0;
Abstract 0;
Interface 0;
PackageName "";
@begin Object "powersoft.jcm.ui.Form"
Font "Dialog-Plain-8";
ControlScope "Private";
BackColor "Color.lightGray";
ForeColor "Color.black";
Text "Cursors Sample";
Visible "1";
DataSource "NULL";
DataColumns "";
BoundControl "0";
@begin Event "powersoft.jcm.event.Create"
GencodeSrcLine 72;
FunctionName "Form1_Create";
@end;
@begin UserFunction "Form1()"
Compiler 1;
GencodeSrcLine 67;
FunctionName "Form1::Form1()";
@end;
ResID 101;
DesignName Form1;
TabIndex 0;
DesignRect 47,112,141,176;
@end;
@begin Object "powersoft.jcm.ui.ListBox"
Font "<Inherited>";
Sort "0";
DataTrackRow "0";
DataBindAsLookup "0";
DataLookupSource "NULL";
DataLookupColumns "";
BackColor "Color.lightGray";
ForeColor "Color.black";
Text "";
Visible "1";
DataSource "NULL";
DataColumns "";
BoundControl "0";
@begin Event "powersoft.jcm.event.Select"
GencodeSrcLine 92;
FunctionName "lb_1_Select";
@end;
ResID 100;
DesignName lb_1;
TabIndex 0;
DesignRect 10,20,115,130;
@begin ComponentData "lb_1"
@end;
@end;
@begin Object "powersoft.jcm.ui.Label"
Font "<Inherited>";
BackColor "Color.lightGray";
ForeColor "Color.black";
Text "Select a Cursor:";
Visible "1";
DataSource "NULL";
DataColumns "";
BoundControl "0";
ResID 102;
DesignName label_1;
TabIndex 1;
DesignRect 10,5,70,10;
@end;
@begin HPPPrefixBlock
@begin-code HPPPrefix
// add your custom import statements here
import java.awt.*;
@end-code;
GencodeSrcLine 13;
@end;
@begin CPPPrefixBlock
@begin-code CPPPrefix
@end-code;
GencodeSrcLine 13;
@end;
@begin ClassContentsBlock
@begin-code ClassContents
// add your data members here
Frame f = null;
@end-code;
GencodeSrcLine 149;
@end;
@begin-code BaseClassList
extends powersoft.jcm.ui.Form
@end-code;
@begin-code GeneratedClassContents
@end-code;
@begin-code Code "Form1::Form1()"
public @CLASSNAME@()
{
super();
}
@end-code;
@begin-code Code "Form1_Create"
public boolean Form1_Create(powersoft.jcm.event.CreateEvent event)
{
lb_1.add( "DEFAULT_CURSOR" );
lb_1.add( "CROSSHAIR_CURSOR" );
lb_1.add( "E_RESIZE_CURSOR" );
lb_1.add( "HAND_CURSOR" );
lb_1.add( "MOVE_CURSOR" );
lb_1.add( "N_RESIZE_CURSOR" );
lb_1.add( "NE_RESIZE_CURSOR" );
lb_1.add( "NW_RESIZE_CURSOR" );
lb_1.add( "S_RESIZE_CURSOR" );
lb_1.add( "SE_RESIZE_CURSOR" );
lb_1.add( "SW_RESIZE_CURSOR" );
lb_1.add( "TEXT_CURSOR" );
lb_1.add( "W_RESIZE_CURSOR" );
lb_1.add( "WAIT_CURSOR" );
return false;
}
@end-code;
@begin-code Code "lb_1_Select"
public boolean lb_1_Select(powersoft.jcm.event.SelectEvent event)
{
f = (Frame)this.getAWTComponent();
if( lb_1.getText( lb_1.getSelected( ) ) == "DEFAULT_CURSOR" )
f.setCursor( Frame.DEFAULT_CURSOR );
if( lb_1.getText( lb_1.getSelected( ) ) == "CROSSHAIR_CURSOR" )
f.setCursor( Frame.CROSSHAIR_CURSOR );
if( lb_1.getText( lb_1.getSelected( ) ) == "E_RESIZE_CURSOR" )
f.setCursor( Frame.E_RESIZE_CURSOR );
if( lb_1.getText( lb_1.getSelected( ) ) == "HAND_CURSOR" )
f.setCursor( Frame.HAND_CURSOR );
if( lb_1.getText( lb_1.getSelected( ) ) == "MOVE_CURSOR" )
f.setCursor( Frame.MOVE_CURSOR );
if( lb_1.getText( lb_1.getSelected( ) ) == "N_RESIZE_CURSOR" )
f.setCursor( Frame.N_RESIZE_CURSOR );
if( lb_1.getText( lb_1.getSelected( ) ) == "NE_RESIZE_CURSOR" )
f.setCursor( Frame.NE_RESIZE_CURSOR );
if( lb_1.getText( lb_1.getSelected( ) ) == "NW_RESIZE_CURSOR" )
f.setCursor( Frame.NW_RESIZE_CURSOR );
if( lb_1.getText( lb_1.getSelected( ) ) == "S_RESIZE_CURSOR" )
f.setCursor( Frame.S_RESIZE_CURSOR );
if( lb_1.getText( lb_1.getSelected( )) == "SE_RESIZE_CURSOR" )
f.setCursor( Frame.SE_RESIZE_CURSOR );
if( lb_1.getText( lb_1.getSelected( ) ) == "SW_RESIZE_CURSOR" )
f.setCursor( Frame.SW_RESIZE_CURSOR );
if( lb_1.getText( lb_1.getSelected( ) ) == "TEXT_CURSOR" )
f.setCursor( Frame.TEXT_CURSOR );
if( lb_1.getText( lb_1.getSelected( ) ) == "W_RESIZE_CURSOR" )
f.setCursor( Frame.W_RESIZE_CURSOR );
if( lb_1.getText( lb_1.getSelected( ) ) == "WAIT_CURSOR" )
f.setCursor( Frame.WAIT_CURSOR );
return false;
}
@end-code;
@end;