home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Sams Cobol 24 Hours
/
Sams_Cobol_24_Hours.iso
/
Cobol32
/
PowerCBL
/
powercbl.Z
/
scroll.prc
< prev
next >
Wrap
Text File
|
1997-04-20
|
1KB
|
42 lines
@POWER POWSHEET SHEET1 OPENED
ENVIRONMENT DIVISION.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 VAL PIC ZZZ9.
PROCEDURE DIVISION.
* display current scroll position.
MOVE POW-SCRPOSITION OF HSCROLL1 TO VAL.
MOVE VAL TO POW-TEXT OF LABEL1.
MOVE POW-SCRPOSITION OF VSCROLL1 TO VAL.
MOVE VAL TO POW-TEXT OF LABEL2.
@POWER POWHSCRL HSCROLL1 CHANGE
ENVIRONMENT DIVISION.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 H-VAL PIC ZZZ9.
PROCEDURE DIVISION.
* The horizontal text field will be updated dynamically
* as the scroll bar changes position.
* Set current position.
MOVE POW-SCRPOSITION OF HSCROLL1 TO H-VAL.
* Display current position.
MOVE H-VAL TO POW-TEXT OF LABEL1.
@POWER POWVSCRL VSCROLL1 ENDSCROLL
ENVIRONMENT DIVISION.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 V-VAL PIC ZZZ9.
PROCEDURE DIVISION.
* The vertical text field will be updated when the
* scroll bar is stopped in its new position.
* Set current position.
MOVE POW-SCRPOSITION OF VSCROLL1 TO V-VAL.
* Display current position.
MOVE V-VAL TO POW-TEXT OF LABEL2.
@POWER POWPSBTN PUSH10 CLICK
ENVIRONMENT DIVISION.
DATA DIVISION.
PROCEDURE DIVISION.
* Close the sample application.
CALL CLOSESHEET OF SHEET1.