-- Command: window ID/K, COMMAND/K, PORT/K, TITLE/K, CLOSE/S, ATTRS/K/M This command begins the definition of a window. All group and initial object definitions must be placed between a `window' and `endwindow' pair. The arguments are optional. * ID [I..] - an id can be assigned to a window for later reference. The id can be any combination of up to 5 characters. * COMMAND [I..] - if given, a close gadget will be attached to the window. If the null string is specified then the window will simply be disposed when the close gadget is selected, otherwise, the command string given will be executed. For a complete description of this option see Command-Port Options. Note that the window title will be used to replace a `%s' contained in the command string. Also, note that it is up to the programmer to insure that the window is in fact closed, presumably by the macro that is specified in this argument. * PORT [I..] - a specific host port may be specified by this argument. For a complete description of this option see Command-Port Options. * TITLE [I..] - the window may be given a title which will be displayed in the windows title bar. * CLOSE [.S.] - if this switch is given and an id specified (see ID argument) for an existing window then the window will be closed. * ATTRS [ISG] - with this option any MUIA attribute TAGs may be set or retrieved (see Attribute TAGs). Some useful TAGs for use with the window command are: TAG_Name = TAG_id Flags Type Window_Activate = 0x80428d2f /* V4 isg BOOL */ Window_AltHeight = 0x8042cce3 /* V4 i.g LONG */ Window_AltLeftEdge = 0x80422d65 /* V4 i.g LONG */ Window_AltTopEdge = 0x8042e99b /* V4 i.g LONG */ Window_AltWidth = 0x804260f4 /* V4 i.g LONG */ Window_AppWindow = 0x804280cf /* V5 i.. BOOL */ Window_Backdrop = 0x8042c0bb /* V4 i.. BOOL */ Window_Borderless = 0x80429b79 /* V4 i.. BOOL */ Window_DepthGadget = 0x80421923 /* V4 i.. BOOL */ Window_DragBar = 0x8042045d /* V4 i.. BOOL */ Window_Height = 0x80425846 /* V4 i.g LONG */ Window_IsSubWindow = 0x8042b5aa /* V4 isg BOOL */ Window_LeftEdge = 0x80426c65 /* V4 i.g LONG */ Window_NoMenus = 0x80429df5 /* V4 is. BOOL */ Window_Open = 0x80428aa0 /* V4 .sg BOOL */ Window_PublicScreen = 0x804278e4 /* V6 isg STRPTR */ Window_ScreenTitle = 0x804234b0 /* V5 isg STRPTR */ Window_SizeGadget = 0x8042e33d /* V4 i.. BOOL */ Window_SizeRight = 0x80424780 /* V4 i.. BOOL */ Window_Sleep = 0x8042e7db /* V4 .sg BOOL */ Window_TopEdge = 0x80427c66 /* V4 i.g LONG */ Window_UseBottomBorderScroller = 0x80424e79 /* V13 is. BOOL */ Window_UseLeftBorderScroller = 0x8042433e /* V13 is. BOOL */ Window_UseRightBorderScroller = 0x8042c05e /* V13 is. BOOL */ Window_Width = 0x8042dcae /* V4 i.g LONG */ InnerBottom = 0x8042f2c0 /* V4 i.g LONG */ InnerLeft = 0x804228f8 /* V4 i.g LONG */ InnerRight = 0x804297ff /* V4 i.g LONG */ InnerTop = 0x80421eb6 /* V4 i.g LONG */ Note: Consult MUI:Developer/Autodocs/MUI_Window.doc and MUI:Developer/C/Include/libraries/mui.h Example use of this command: window ID DOCK ATTRS InnerBottom 0 InnerLeft 0 InnerRight 0 InnerTop 0 . . . endwindow window ID DOCK ATTRS Window_Open say result