home *** CD-ROM | disk | FTP | other *** search
- '***********************************************************************
- ' FormDev: MenuForm.RLZ
- '
- ' Copyright ⌐ 1991-1992 Computer Associates International, Inc.
- ' All rights reserved.
- '
- '***********************************************************************
-
- PROC menuprocForm(params)
- SELECT CASE params[_ItemNum]
- CASE 260, 270, 275 ' Modify/Size/Rescale Form
- FormSelect(fdMain)
- MainFormLocate
- ItemsLocateAll
- SELECT CASE params[_ItemNum]
- CASE 260 ' "Modify Form"
- IF MainFormModify(1, theform.left pxl, theform.top pxl, theform.width pxl, theform.height pxl) THEN
- fdChanged = 1
- END IF
- CASE 270 ' "Size Form"
- IF MainFormModify(0, theform.left pxl, theform.top pxl, theform.width pxl, theform.height pxl) THEN
- fdChanged = 1
- END IF
- CASE 275 ' "Rescale Form"
- LOCAL tempItemUnits
-
- tempItemUnits = theform.itemunits
- theform.itemunits = 2 'percent
- ItemsIntoRaw
- IF MainFormModify(0, theform.left pxl, theform.top pxl, theform.width pxl, theform.height pxl) THEN
- fdChanged = 1
- END IF
- MainClientLocate
- ItemsIntoPixels
- theform.itemunits = tempItemUnits
- END SELECT
- FormSelect(fdMain)
- ItemsShowAll
- FormControl(_Show)
-
- CASE 280, 281 ' View Form
- FormSelect(fdMain)
- ItemsLocateAll
- MenuSelect(fdFormMenu)
- viewForm = params[_ItemNum] = 280
- IF viewForm THEN
- MenuSetCmd(280; _Check)
- MenuSetCmd(281; _Uncheck)
- ItemsShowAll
- ELSE
- MenuSetCmd(280; _Uncheck)
- MenuSetCmd(281; _Check)
- ItemsFrameAll
- END IF
- FormControl(_Show)
- END SELECT
- END PROC
-