beetlebug▾
/

wm overrideredirect

Gives or sets whether a toplevel has no title bar and no frame of the window manager.

wm overrideredirect WINDOW ?BOOLEAN?

Description

A window with the value 1, such as a menu or a tooltip, has no frame and no title bar that ztk draws. With no BOOLEAN, gives the current value.

Returns

0 or 1, or an empty string.

Examples

% toplevel .t
> wm overrideredirect .t 1
> wm overrideredirect .t
1

Errors

% wm overrideredirect .t x
expected boolean value but got "x"
-errorcode NONE

Facts

Capability
None.
Tcl release
Tcl 9.1 and 8.6.
Since
ztk 1.0.0-beta.1