Please enable JavaScript to view this site.

A-Shell Reference

? tab(-10, AG_SHOWWINDOW); str(flags); ","; lft; ","; top; ","; rgt; ","; btm; ","; rows; ","; cols; ","; tsts; ","; bsts; ","; cid; chr(127);

AG_SHOWWINDOW (27) performs the same function as the subroutine AUI_WINDOW, except that it works in any environment where the client supports the AUI framework—i.e. A-Shell/Windows or ATE.

Comments

All of the arguments after flags are optional.

The flags argument, when numeric, needs the str(flags) function in order to eliminate the leading space which otherwise may result in misinterpretation by the client. Alternately, flags can be one of the following character, in which case omit the str() function:

Char

Description

M

SW_MINIMIZE

X

SW_SHOWMAXIMIZED

R

SW_RESTORE

N

SW_SHOWNORMAL

 

For flags >= 0 or one of the character options above, the operation does not send back any response.  

For flags < 0 (query operations), the response will be in the form of a comma delimited list of output values corresponding to the output parameters of the of the MX_SHOWWINDOW function.

Examples

! minimize 

? tab(-10,AG_SHOWWINDOW); "M"; chr(127);

 

! maximize 

? tab(-10,AG_SHOWWINDOW); str(SW_SHOWMAXIMIZED); chr(127);

 

! modify display attributes of dialog "dlgSample"

? tab(-10,SW_SHOWWINDOW);str(SW_SHOWNORMAL); lft; ","; top; ","; rgt; ","; btm; ","; &

    rows; ","; cols; ","; tsts; ","; bsts; ",dlgSample"; chr(127);

 

! query window information

? tab(-10,SW_SHOWWINDOW);str(AG_QRYCTLPIX); chr(127);

input "", lft, top, rgt, btm, rows, cols, tsts, bsts, hg, vg

 

! query monitor information

? tab(-10,SW_SHOWWINDOW);str(AG_QRYMON); chr(127);

input "", lft, top, rgt, btm, dummy, dummy, dummy, dummy, xres, yres

 

See Also