home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 18 REXX
/
18-REXX.zip
/
extspsht.zip
/
EXTSPSHT
/
Main
/
Form.1
< prev
next >
Wrap
Text File
|
1997-07-17
|
1KB
|
52 lines
/* Event Form events, Opened */
Arg window
CALL VpWindow window,'EXTENDEDHELP'
CALL VpWindow window,'HELPINDEX'
SPRM.SET_EDTSTYLE = '0x101b'
SPRM.GET_EDTSTYLE = '0x101c'
SPRS.ENTER_EDITS = 256
SPRS.CHAR_EDITS = 512
SPRS.EDITFULLSEL = 1024
SPRS.EDITFIXLEN = 2048
SPRS.ALLOWDELETE = 4096
SPRS.GO_LEFT = 8192
SPRS.GO_DOWN = 16384
SPRS.VIRTUALKEY = 65536
SPRS.KEY_SHIFT = 16777216
SPRS.KEY_CTRL = 33554432
SPRS.KEY_ALT = 67108864
/* for the shift Flag */
SPRM.OPTIMZE = '0x101a'
SPRS.OPTIMZE_ALLCOLS =-1
SPRS.OPTIMZE_COLS =1
SPRS.OPTIMZE_HEADER =2
SPRS.OPTIMZE_ROW_HEIGHT =4
SPRM.SET_READONLY = '0x101e'
SPRM.SET_EF_COLORS = '0x101f'
SPRM.EDIT_CELL = '0x1020'
/* Register the exstension and subclass the spreadsheet */
call RxFuncAdd 'SbcSpsht', 'SBCSPSHT', 'SbcSpsht'
SbcSpshtRV = SbcSpsht(VpItem(window, 'SPREADSHEET', 'GETHANDLE'));
/* Set item value 1002 Text */
CALL VpSetItemValue window,1002,SbcSpshtRV
/* Set cells 1000 Spreadsheet */
DO col = 1 to 3 by 1
DO row = 1 to 10 by 1
CELLS.col.row = "Col"||col||"-Row"||row
END
END
CELLS.0 = 3
CELLS.1 = 10
/* Set maximum number of cells 1000 Spreadsheet */
call VpSprSht window, 1000, 'SETNUMCELLS', CELLS.0, CELLS.1
CALL VpSprSht window, 1000, 'SETCELLS', 'CELLS.'