home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 18 REXX
/
18-REXX.zip
/
vxdemo.zip
/
MACROS.$$$
/
RESIZE.VRM
< prev
next >
Wrap
Text File
|
1993-09-04
|
1KB
|
45 lines
/* Custom mainline for macro */
call RXFuncAdd "VRLoadFuncs", "VROBJ", "VRLoadFuncs"
call VRLoadFuncs
_VREVersion = SubWord( VRVersion( "VRObj" ), 1, 1 )
if( _VREVersion < 1.01 )then do
call VRMessage "", "This program requires VX-REXX version 1.01 to run", "Error!"
_VREReturnValue = 32000
signal _VRELeaveMain
end
signal on SYNTAX name _VRESyntax
signal _VREMain
_VRESyntax:
parse source . . _VRESourceSpec
call VRMessage "", "Syntax error in" _VRESourceSpec "line" SIGL, "Error!"
exit 32000
_VREMain:
/*:VRX Main
*/
/* Main
*/
Main:
/* Assume called as a pop-up menu macro
*/
parent = arg( 1 )
object = arg( 2 )
editWindow = arg( 3 )
height = VRGet( object, "Height" )
width = VRGet( object, "Width" )
call VRMethod editWindow, "GetSelectedRoots", "selectedList."
do i = 1 to selectedList.0
call VRSet selectedList.i, "Height", height,,
"Width", width
end
return