home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Sams Cobol 24 Hours
/
Sams_Cobol_24_Hours.iso
/
Cobol32
/
PowerCBL
/
powercbl.Z
/
powsheet.ocb
< prev
next >
Wrap
Text File
|
1996-03-07
|
10KB
|
209 lines
000010 IDENTIFICATION DIVISION.
000020 CLASS-ID. POWSHEET.
000030 ENVIRONMENT DIVISION.
000040 CONFIGURATION SECTION.
000050 SPECIAL-NAMES.
000060 SYMBOLIC CONSTANT IS EXTERNAL
000070**
000080** POWER--XXXXXXX DEFINE MESSAGE FROM POWERRUN.
000090**
000100 POWER--CREATE IS 1024 *> WM-USER
000110 POWER--COMMAND IS 1025 *> WM-USER+1
000120 POWER--OPENED IS 1036 *> WM-USER+12
000130 POWER--CLOSE IS 1037 *> WM-USER+13
000140 POWER--OPENSHEET IS 1026 *> WM-USER+2
000150 POWER--CLOSESHEET IS 1027 *> WM-USER+3
000160 POWER--GETPROP IS 1028 *> WM-USER+4
000170 POWER--SETPROP IS 1029 *> WM-USER+5
000180 POWER--SPFIRST IS 1030 *> WM-USER+6
000190 POWER--GETACCEL IS 1031 *> WM-USER+7
000200 POWER--ENDAPPLICATION IS 1032 *> WM-USER+8
000210 POWER--ACTIVATESHEET IS 1033 *> WM-USER+9
000220 POWER--CREATESHEET IS 1034 *> WM-USER+10
000230 POWER--CLICKED IS 1035 *> WM-USER+11
000240 POWER--START IS 1038 *> WM-USER+14
000250 POWER--CHANGEPARENTSIZE IS 1039 *> WM-USER+15
000260 POWER--GETAPPNAME IS 1040 *> WM-USER+16
000270 POWER--GETAPP IS 1041 *> WM-USER+17
000280 POWER--PURGE IS 1042 *> WM-USER+18
000290 POWER--STOPEVENT IS 1043 *> WM-USER+19
000300 POWER--NOP IS 1044 *> WM-USER+20
000310 POWER--TAB IS 1045 *> WM-USER+21
000320 POWER--UP IS 1046 *> WM-USER+22
000330 POWER--DOWN IS 1047 *> WM-USER+23
000340 POWER--RETURN IS 1048 *> WM-USER+24
000350 POWER--CLOSECHILD IS 1049 *> WM-USER+25
000360**
000370** POW-DMXXXXXXX DEFINE STYLE FOR DISPLAYMESSAGE METHOD
000380**
000390 POW-DMDEFAULT IS 0 *> 0x0000
000400*
000410 POW-DMOK IS 0 *> 0x0000
000420 POW-DMOKCANCEL IS 1 *> 0x0001
000430 POW-DMABORTRETRYIGNORE IS 2 *> 0x0002
000440 POW-DMYESNOCANCEL IS 3 *> 0x0003
000450 POW-DMYESNO IS 4 *> 0x0004
000460 POW-DMRETRYCANCEL IS 5 *> 0x0005
000470*
000480 POW-DMNOICON IS 0 *> 0x0000
000490 POW-DMICONSTOP IS 16 *> 0x0010
000500 POW-DMICONQUESTION IS 32 *> 0x0020
000510 POW-DMICONEXCLAMATION IS 48 *> 0x0030
000520 POW-DMICONINFORMATION IS 64 *> 0x0040
000530*
000540 POW-DMDEFBUTTON1 IS 0 *> 0x0000
000550 POW-DMDEFBUTTON2 IS 256 *> 0x0100
000560 POW-DMDEFBUTTON3 IS 512 *> 0x0200
000570*
000580 POW-DMAPPLMODAL IS 0 *> 0x0000
000590 POW-DMSYSTEMMODAL IS 4096 *> 0x1000
000600 POW-DMTASKMODAL IS 8192 *> 0x2000
000610**
000620** POW-DMRXXXXXX DEFINE RETURN CODE FROM DISPLAY-MSG METHOD
000630**
000640 POW-DMRNOMEMORY IS 0
000650 POW-DMROK IS 1
000660 POW-DMRCANCEL IS 2
000670 POW-DMRABORT IS 3
000680 POW-DMRRETRY IS 4
000690 POW-DMRIGNORE IS 5
000700 POW-DMRYES IS 6
000710 POW-DMRNO IS 7
000720**
000730** POW-SWXXXXXXX DEFINE WINEXEC PARM
000740**
000750* CONSTANT FOR NCMNDSHOW
000760*
000770 POW-SWHIDE IS 0
000780 POW-SWSHOWNORMAL IS 1
000790 POW-SWNORMAL IS 1
000800 POW-SWSHOWMINIMIZED IS 2
000810 POW-SWSHOWMAXIMIZED IS 3
000820 POW-SWMAXIMIZED IS 3
000830 POW-SWSHOWNOACTIVATE IS 4
000840 POW-SWSHOW IS 5
000850 POW-SWMINIMIZED IS 6
000860 POW-SWSHOWMINNOACTIVE IS 7
000870 POW-SWSHOWNA IS 8
000880 POW-SWRESTORE IS 9
000890**
000900** POW-CDXXXXXXX DEFINE STYLE FOR GETFILENAME METHOD
000910**
000920 POW-CDOPEN IS 0 *> 0x0000
000930 POW-CDSAVE IS 1 *> 0x0001
000935 POW-CDLFNAME IS 4 *> 0x0004
000940*
000950 POW-CDCHANGEDIR IS 0 *> 0x0000
000960 POW-CDNOCHANGEDIR IS 2 *> 0x0002
000970**
000980** POW-CDXXXXXX DEFINE RETURN CODE FROM GETFILENAME METHOD
000990**
001000 POW-CDOK IS 1
001010 POW-CDCANCEL IS 2
001020**
001030** POW-MBXXXXXX DEFINE ALARM TYPE FOR ALARM METHOD
001040**
001050 POW-MBOK IS 0
001060 POW-MBHAND IS 16 *>0x0010
001070 POW-MBQUESTION IS 32 *>0x0020
001080 POW-MBEXCLAMATION IS 48 *>0x0030
001090 POW-MBASTERISK IS 64 *>0x0040
001100**
001110** POW-CUXXXXXX DEFINE CURSOR TYPE FOR POW-CURSOR PROP
001120**
001130 POW-CUARROW IS "POW-CUARROW"
001140 POW-CUCROSS IS "POW-CUCROSS"
001150 POW-CUIBEAM IS "POW-CUIBEAM"
001160 POW-CUICON IS "POW-CUICON"
001170 POW-CUSIZE IS "POW-CUSIZE"
001180 POW-CUSIZENESW IS "POW-CUSIZENESW"
001190 POW-CUSIZENS IS "POW-CUSIZENS"
001200 POW-CUSIZENWSE IS "POW-CUSIZENWSE"
001210 POW-CUSIZEWE IS "POW-CUSIZEWE"
001220 POW-CUUPARROW IS "POW-CUUPARROW"
001230 POW-CUWAIT IS "POW-CUWAIT"
001232 POW-CUNO IS "POW-CUNO"
001234 POW-CUAPPSTART IS "POW-CUAPPSTART"
001240**
001250** POW-ICXXXXXX DEFINE ICON TYPE FOR POW-ICON PROP
001260**
001270 POW-ICAPP IS "POW-ICAPP"
001280 POW-ICINFO IS "POW-ICINFO"
001290 POW-ICEXCLM IS "POW-ICEXCLM"
001300 POW-ICSTOP IS "POW-ICSTOP"
001310 POW-ICQUESTION IS "POW-ICQUESTION"
001320 .
001330 CLASS SECTION.
001340 INHERIT POWWND EXTERNAL. *> âNâëâXîpÅ│é╠ïLÅq
001350 DATA DIVISION.
001360 CLASS SECTION.
001370 01 POW-COMMANDLINE PIC X(260).
001380 01 POW-ICON PIC X(14).
001390 01 POW-CURSOR PIC X(14).
001400 PROCEDURE DIVISION.
001410 FUNCTION OPENSHEET (BY CONTENT TYPE IS ALPHANUMERIC PIC X(14)) IS EXTERNAL
001420 REPLACING NAME BY "XPOWCSOPENSHEET" .
001430 FUNCTION OPENSHEET (BY CONTENT TYPE IS ALPHANUMERIC PIC X(260)
001440 BY CONTENT TYPE IS ALPHANUMERIC PIC X(14)) IS EXTERNAL
001450 REPLACING NAME BY "XPOWCSOPENDLLSHEET" .
001460 FUNCTION CLOSESHEET (BY CONTENT TYPE IS ALPHANUMERIC PIC X(260)
001470 BY CONTENT TYPE IS ALPHANUMERIC PIC X(14)) IS EXTERNAL
001480 REPLACING NAME BY "XPOWCSCLOSEDLLSHEET" .
001490 FUNCTION CLOSESHEET (BY CONTENT TYPE IS ALPHANUMERIC PIC X(14)) IS EXTERNAL
001500 REPLACING NAME BY "XPOWCSCLOSESHEET" .
001510 FUNCTION CLOSESHEET () IS EXTERNAL
001520 REPLACING NAME BY "XPOWCSCLOSEMYSELF" .
001530 FUNCTION REFERENCE OF POW-COMMANDLINE () IS EXTERNAL BY VALUE PIC X(260)
001540 REPLACING NAME BY "XPOWCSGETCOMMANDLINE" .
001550 FUNCTION MOVE OF POW-ICON (BY CONTENT TYPE IS ALPHANUMERIC PIC X(14)) IS EXTERNAL
001560 REPLACING NAME BY "XPOWCSSETICON" .
001570 FUNCTION REFERENCE OF POW-ICON () IS EXTERNAL BY VALUE PIC X(14)
001580 REPLACING NAME BY "XPOWCSGETICON" .
001590 FUNCTION MOVE OF POW-CURSOR (BY CONTENT TYPE IS ALPHANUMERIC PIC X(14)) IS EXTERNAL
001600 REPLACING NAME BY "XPOWCSSETCURSOR" .
001610 FUNCTION REFERENCE OF POW-CURSOR () IS EXTERNAL BY VALUE PIC X(14)
001620 REPLACING NAME BY "XPOWCSGETCURSOR" .
001630 FUNCTION ENDAPPLICATION () IS EXTERNAL
001640 REPLACING NAME BY "XPOWCSENDAPPLICATION" .
001650 FUNCTION DISPLAYMESSAGE (BY CONTENT TYPE IS ALPHANUMERIC PIC X(256)
001660 BY CONTENT TYPE IS ALPHANUMERIC PIC X(60)
001670 BY VALUE TYPE IS NUMERIC PIC S9(4) COMP-5) IS EXTERNAL
001680 REPLACING NAME BY "XPOWCSMESSAGEBOX" .
001690 FUNCTION DISPLAYMESSAGE (BY CONTENT TYPE IS ALPHANUMERIC PIC X(256)
001700 ) IS EXTERNAL
001710 REPLACING NAME BY "XPOWCSMSGBOXDEFAULT" .
001720 FUNCTION GETFILENAME (BY CONTENT TYPE IS ALPHANUMERIC PIC X(60)
001730 BY CONTENT TYPE IS ALPHANUMERIC PIC X(128)
001740 BY VALUE TYPE IS NUMERIC PIC S9(4) COMP-5
001750 ) IS EXTERNAL BY VALUE PIC X(260)
001760 REPLACING NAME BY "XPOWGETFILENAME" .
001770 FUNCTION EXECAPL (BY CONTENT TYPE IS ALPHANUMERIC PIC X(256)
001780 BY VALUE TYPE IS NUMERIC PIC S9(4) COMP-5
001790 ) IS EXTERNAL
001800 REPLACING NAME BY "XPOWCSEXEC" .
001810 FUNCTION EXECAPL (BY CONTENT TYPE IS ALPHANUMERIC PIC X(256)
001820 ) IS EXTERNAL
001830 REPLACING NAME BY "XPOWCSEXECDEFAULT" .
001840 FUNCTION ALARM (BY VALUE TYPE IS NUMERIC PIC S9(4) COMP-5
001850 ) IS EXTERNAL
001860 REPLACING NAME BY "XPOWCSALARM" .
001870 FUNCTION MESSAGEBEEP (BY VALUE TYPE IS NUMERIC PIC S9(4) COMP-5
001880 ) IS EXTERNAL
001890 REPLACING NAME BY "XPOWCSALARM" .
001900 FUNCTION ALARM () IS EXTERNAL
001910 REPLACING NAME BY "XPOWCSALARMDEFAULT" .
001920 FUNCTION GETSCREENSIZE () IS EXTERNAL BY VALUE PIC X(4)
001930 REPLACING NAME BY "XPOWCSGETSCREENSIZES" .
001940 FUNCTION SHOWSHEET (BY VALUE TYPE IS NUMERIC PIC S9(4) COMP-5
001950 ) IS EXTERNAL
001960 REPLACING NAME BY "XPOWCSSHOWSHEET" .
001970* FUNCTION CALLSHEET (BY CONTENT TYPE IS ALPHANUMERIC PIC X(14)
001980* ) IS EXTERNAL
001990* REPLACING NAME BY "XPOWCSCALLSHEET" .
002000* FUNCTION CALLSHEET (BY CONTENT TYPE IS ALPHANUMERIC PIC X(128)
002100* BY CONTENT TYPE IS ALPHANUMERIC PIC X(14)) IS EXTERNAL
002110* REPLACING NAME BY "XPOWCSCALLDLLSHEET" .
002120 FUNCTION REDRAWSHEET () IS EXTERNAL
002130 REPLACING NAME BY "XPOWCSREDRAWSHEET" .
002140 END CLASS POWSHEET.