home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Sams Cobol 24 Hours
/
Sams_Cobol_24_Hours.iso
/
Cobol32
/
PowerCBL
/
powercbl.Z
/
powwnd.ocb
< prev
next >
Wrap
Text File
|
1996-01-31
|
7KB
|
127 lines
000010 IDENTIFICATION DIVISION.
000020 CLASS-ID. POWWND.
000030 ENVIRONMENT DIVISION.
000040 CONFIGURATION SECTION.
000050 SPECIAL-NAMES.
000060 SYMBOLIC CONSTANT IS EXTERNAL
000070**
000080** POW-XXXXXXX DEFINE OF COLOR
000090**
000100 POW-BLACK IS X"00000000" *> ìòÉF
000110 POW-DARKRED IS X"80000000" *> ê├éóÉ╘ÉF
000120 POW-DARKGREEN IS X"00800000" *> ê├éóù╬ÉF
000130 POW-DARKYELLOW IS X"80800000" *> ê├éóë⌐ÉF
000140 POW-DARKBLUE IS X"00008000" *> ê├éóÉ┬ÉF
000150 POW-DARKMAGENDA IS X"80008000" *> ê├éóâ}âZâôâ_
000160 POW-DARKCYAN IS X"00808000" *> ê├éóâVâAâô
000170 POW-DARKGRAY IS X"80808000" *> ê├éóèDÉF
000180 POW-GRAY IS X"C0C0C000" *> èDÉF
000190 POW-RED IS X"FF000000" *> É╘
000200 POW-GREEN IS X"00FF0000" *> ù╬ÉF
000210 POW-YELLOW IS X"FFFF0000" *> ë⌐ÉF
000220 POW-BLUE IS X"0000FF00" *> É┬ÉF
000230 POW-MAGENDA IS X"FF00FF00" *> â}â[âôâ_
000240 POW-CYAN IS X"00FFFF00" *> âVâAâô
000250 POW-WHITE IS X"FFFFFF00" *> öÆÉF
000255 POW-SYSCOL3D IS X"00000081" *> 3D╡╠▐╝▐¬╕─╢╫░
000256 POW-SYSCOLWIN IS X"00000082" *> âEâBâôâhâEâJâëü[
000260**
000270** POW-FWXXXXXXX DEFINE FONT WEIGHT ID
000280**
000290 POW-FWNORMAL IS 400
000300 POW-FWBOLD IS 700
000310 .
000320 CLASS SECTION.
000330 INHERIT POWITEM EXTERNAL. *> âNâëâXîpÅ│é╠ïLÅq
000340 DATA DIVISION.
000350 CLASS SECTION.
000360 01 POW-TEXT PIC X(256).
000370 01 POW-TEXTN PIC N(128).
000380 01 POW-POSITION
000390 02 X PIC S9(4) COMP-5.
000400 02 Y PIC S9(4) COMP-5.
000410 02 WIDTH PIC S9(4) COMP-5.
000420 02 HEIGHT PIC S9(4) COMP-5.
000430 01 POW-TEXTCOLOR PIC X(4).
000440 01 POW-TEXTBKCOLOR PIC X(4).
000450 01 POW-BACKCOLOR PIC X(4).
000460 01 POW-WEIGHT PIC S9(4) COMP-5.
000470 01 POW-ITALIC PIC S9(4) COMP-5.
000480 01 POW-UNDERLINE PIC S9(4) COMP-5.
000490 01 POW-STRIKE PIC S9(4) COMP-5.
000500 01 POW-TABSTOP PIC S9(4) COMP-5.
000510 01 POW-ENABLE PIC S9(4) COMP-5.
000520 01 POW-VISIBLE PIC S9(4) COMP-5.
000530 PROCEDURE DIVISION.
000540 FUNCTION MOVE OF POW-TEXT (BY CONTENT TYPE IS ALPHANUMERIC PIC X(256)) IS EXTERNAL
000550 REPLACING NAME BY "XPOWCWSETTEXT" .
000560 FUNCTION REFERENCE OF POW-TEXT () IS EXTERNAL BY VALUE PIC X(256)
000570 REPLACING NAME BY "XPOWCWGETTEXT" .
000580 FUNCTION MOVE OF POW-TEXTN (BY CONTENT TYPE IS NATIONAL PIC N(128)) IS EXTERNAL
000590 REPLACING NAME BY "XPOWCWSETTEXT" .
000600 FUNCTION REFERENCE OF POW-TEXTN () IS EXTERNAL BY VALUE PIC N(128)
000610 REPLACING NAME BY "XPOWCWGETTEXTN" .
000620 FUNCTION MOVE OF POW-POSITION (BY CONTENT TYPE IS ALPHANUMERIC PIC X(8)) IS EXTERNAL
000630 REPLACING NAME BY "XPOWCWSETPOSITION" .
000640 FUNCTION REFERENCE OF POW-POSITION () IS EXTERNAL BY VALUE PIC X(8)
000650 REPLACING NAME BY "XPOWCWGETPOSITION" .
000660 FUNCTION MOVE OF POW-TEXTCOLOR (BY CONTENT TYPE IS ALPHANUMERIC PIC X(4)) IS EXTERNAL
000670 REPLACING NAME BY "XPOWCWSETTEXTCOLOR" .
000680 FUNCTION REFERENCE OF POW-TEXTCOLOR () IS EXTERNAL BY VALUE PIC X(4)
000690 REPLACING NAME BY "XPOWCWGETTEXTCOLOR" .
000700 FUNCTION MOVE OF POW-TEXTBKCOLOR (BY CONTENT TYPE IS ALPHANUMERIC PIC X(4)) IS EXTERNAL
000710 REPLACING NAME BY "XPOWCWSETFORECOLOR" .
000720 FUNCTION REFERENCE OF POW-TEXTBKCOLOR () IS EXTERNAL BY VALUE PIC X(4)
000730 REPLACING NAME BY "XPOWCWGETFORECOLOR" .
000740 FUNCTION MOVE OF POW-BACKCOLOR (BY CONTENT TYPE IS ALPHANUMERIC PIC X(4)) IS EXTERNAL
000750 REPLACING NAME BY "XPOWCWSETBACKCOLOR" .
000760 FUNCTION REFERENCE OF POW-BACKCOLOR () IS EXTERNAL BY VALUE PIC X(4)
000770 REPLACING NAME BY "XPOWCWGETBACKCOLOR" .
000780 FUNCTION MOVE OF POW-WEIGHT (BY VALUE TYPE IS NUMERIC PIC S9(4) COMP-5) IS EXTERNAL
000790 REPLACING NAME BY "XPOWCWSETWEIGHT" .
000800 FUNCTION REFERENCE OF POW-WEIGHT () IS EXTERNAL BY VALUE PIC S9(4) COMP-5
000810 REPLACING NAME BY "XPOWCWGETWEIGHT" .
000820 FUNCTION MOVE OF POW-ITALIC (BY VALUE TYPE IS NUMERIC PIC S9(4) COMP-5) IS EXTERNAL
000830 REPLACING NAME BY "XPOWCWSETITALIC" .
000840 FUNCTION REFERENCE OF POW-ITALIC () IS EXTERNAL BY VALUE PIC S9(4) COMP-5
000850 REPLACING NAME BY "XPOWCWGETITALIC" .
000860 FUNCTION MOVE OF POW-UNDERLINE (BY VALUE TYPE IS NUMERIC PIC S9(4) COMP-5) IS EXTERNAL
000870 REPLACING NAME BY "XPOWCWSETUNDERLINE" .
000880 FUNCTION REFERENCE OF POW-UNDERLINE () IS EXTERNAL BY VALUE PIC S9(4) COMP-5
000890 REPLACING NAME BY "XPOWCWGETUNDERLINE" .
000900 FUNCTION MOVE OF POW-STRIKE (BY VALUE TYPE IS NUMERIC PIC S9(4) COMP-5) IS EXTERNAL
000910 REPLACING NAME BY "XPOWCWSETSTRIKE" .
000920 FUNCTION REFERENCE OF POW-STRIKE () IS EXTERNAL BY VALUE PIC S9(4) COMP-5
000930 REPLACING NAME BY "XPOWCWGETSTRIKE" .
000940* FUNCTION MOVE OF POW-TABSTOP (BY VALUE TYPE IS NUMERIC PIC S9(4) COMP-5) IS EXTERNAL
000950* REPLACING NAME BY "XPOWCWSETTABSTOP" .
000960* FUNCTION REFERENCE OF POW-TABSTOP () IS EXTERNAL BY VALUE PIC S9(4) COMP-5
000970* REPLACING NAME BY "XPOWCWGETTABSTOP" .
000980 FUNCTION MOVE OF POW-ENABLE (BY VALUE TYPE IS NUMERIC PIC S9(4) COMP-5) IS EXTERNAL
000990 REPLACING NAME BY "XPOWCWSETENABLE" .
001000 FUNCTION REFERENCE OF POW-ENABLE () IS EXTERNAL BY VALUE PIC S9(4) COMP-5
001010 REPLACING NAME BY "XPOWCWGETENABLE" .
001020 FUNCTION MOVE OF POW-VISIBLE (BY VALUE TYPE IS NUMERIC PIC S9(4) COMP-5) IS EXTERNAL
001030 REPLACING NAME BY "XPOWCWSETVISIBLE" .
001040 FUNCTION REFERENCE OF POW-VISIBLE () IS EXTERNAL BY VALUE PIC S9(4) COMP-5
001050 REPLACING NAME BY "XPOWCWGETVISIBLE" .
001060 FUNCTION MOVE OF POW-FONTSIZE (BY VALUE TYPE IS NUMERIC PIC S9(4) COMP-5) IS EXTERNAL
001070 REPLACING NAME BY "XPOWCWSETFONTSIZE".
001080 FUNCTION REFERENCE OF POW-FONTSIZE () IS EXTERNAL BY VALUE PIC S9(4) COMP-5
001090 REPLACING NAME BY "XPOWCWGETFONTSIZE".
001100 FUNCTION ADD OF POW-FONTSIZE (BY VALUE TYPE IS NUMERIC PIC S9(4) COMP-5) IS EXTERNAL
001110 REPLACING NAME BY "XPOWCWADDFONTSIZE".
001120 FUNCTION SUBTRACT OF POW-FONTSIZE (BY VALUE TYPE IS NUMERIC PIC S9(4) COMP-5) IS EXTERNAL
001130 REPLACING NAME BY "XPOWCWSUBTRACTFONTSIZE".
001140 FUNCTION SETFOCUS () IS EXTERNAL
001150 REPLACING NAME BY "XPOWCWSETFOCUS" .
001160* FUNCTION MOVE OF POW-FONTPOINT (BY VALUE TYPE IS NUMERIC PIC S9(4) COMP-5) IS EXTERNAL
001170* REPLACING NAME BY "XPOWCWSETFONTPOINTSIZE".
001180* FUNCTION REFERENCE OF POW-FONTPOINT () IS EXTERNAL BY VALUE PIC S9(4) COMP-5
001190* REPLACING NAME BY "XPOWCWGETFONTPOINTSIZE".
001200* FUNCTION ADD OF POW-FONTPOINT (BY VALUE TYPE IS NUMERIC PIC S9(4) COMP-5) IS EXTERNAL
001210* REPLACING NAME BY "XPOWCWADDFONTPOINTSIZE".
001220* FUNCTION SUBTRACT OF POW-FONTPOINT (BY VALUE TYPE IS NUMERIC PIC S9(4) COMP-5) IS EXTERNAL
001230* REPLACING NAME BY "XPOWCWSUBTRACTFONTPOINTSIZE".
001500 END CLASS POWWND.