Please enable JavaScript to view this site.

A-Shell Consolidated Reference

This option (ctype MBF_DLGNOCREEP) applies only to dialogs, causing them to be positioned relative to the main window rather than relative to the parent dialog. Such nested dialogs with the same starting coordinates will have the same upper left corner position. Otherwise, dialogs are positioned relative to the parent, and are offset down and to the right by 2 times the thickness of the border, so that a series of nested dialogs will "creep" (or cascade) down to the right.

Note that MBF_ALTPOS causes the same effect (among others), as does selecting the "Windows desktop font size" option in the Dialog Sizing dialog.

Dialogs with the MBF_SYSMENU flag offer additional choices for how it responds to the user clicking on the "X" to close it. By default, that sends an Escape and leaves it to the application to close the dialog (using AUI_CONTROL opcode 3). This requires setting the MBF_KBD flag. If you set that flag and put something in the command parameter, then that string will be sent instead of the standard Escape. If you set the MBF_KBD flag but leave the command parameter empty, then dialog will close itself without sending anything to the application. This might actually be very convenient for status/info/debug dialogs that are just outputting auxiliary messages, perhaps via SCRSTS.SBX; in which case further output would just be thrown away.

SCRSTS.SBX 1.0(105) supports this capability; see the updated TSTSCR sample program (edit 104+) in [907,20] to experiment with it.)