Share via


SIZE POPUP Command

Changes the size of a menu created with DEFINE POPUP.

SIZE POPUP MenuName TO nRow1, nColumn1 | BY nRow2, nColumn2

Parameters

  • MenuName
    Specifies the name of the menu whose size you want to change.
  • TO nRow1, nColumn1
    Changes the size of a menu to a specific size. nRow1 and nColumn1 specify the new row and column coordinates, respectively, of the lower-right corner of the menu.
  • BY nRow2, nColumn2
    Changes the size of a menu relative to its current size. nRow2 and nColumn2 specify the change in size of the menu in rows and columns, relative to the current row and column coordinates of the lower-right corner of the menu.

Remarks

If a user-defined menu has been created, its size can be changed; it doesn't have to be active or visible.

Example

This example creates a menu containing files with a .PRG extension and moves, enlarges, and shrinks the menu before closing it.

CLEAR
DEFINE POPUP popMovIn FROM 2,2 TO 7, 14 PROMPT FILES LIKE *.PRG ;
   TITLE 'Programs'
ACTIVATE POPUP popMovIn NOWAIT
=CHRSAW(2)
MOVE POPUP popMovIn BY 5,5     && Move popup down
=CHRSAW(2)
SIZE POPUP popMovIn BY 5,5  && Enlarge the popup
=CHRSAW(2)
SIZE POPUP popMovIn BY -5,-5  && Shrink the popup
=CHRSAW(2)
MOVE POPUP popMovIn BY -5,-5  && Move popup up
=CHRSAW(2)
DEACTIVATE POPUP popMovIn 
RELEASE POPUP popMovIn 

See Also

ACTIVATE POPUP | CLEAR Commands | DEFINE POPUP Command