'''wm attributes''' ''window'' '''wm attributes''' ''window'' ?'''option'''? '''wm attributes''' ''window'' ?'''option value option value...'''? This subcommand returns or sets platform specific attributes associated with a window. The first form returns a list of the platform specific flags and their values. The second form returns the value for the specific option. The third form sets one or more of the values. The values are as follows: On Windows, '''-disabled''' gets or sets whether the window is in a disabled state. '''-toolwindow''' gets or sets the style of the window to toolwindow (as defined in the MSDN). '''-topmost''' gets or sets whether this is a topmost window (displays above all other windows). On Macintosh, On Unix, there are currently no special attribute values. ---- This command exists since Tk 8.4 and sets or retrieves window-specific attributes. The command is different for each platform. I know the possible options for Windows98 and it seems there are no options to this command with Linux. '''Windows (98) options''': All options take a true/false value ''-toolwindow'' makes a window with a single close-button (which is smaller than usual) on the right of the title bar ''-topmost'' makes sure the window always stays on top of all other windows ''-disabled'' makes it impossible to interact with the window and redraws the focus Example retrieving the default values: % wm attributes . -disabled 0 -toolwindow 0 -topmost 0 [RS] confirms that this applies to Windows 2000 too. [Peter Lewerin] WinXP too. ---- [Category GUI] | [Category Porting]