Tk Source Code

View Ticket
Login
Ticket UUID: 1144186
Title: -use -container embedded windows menu problems
Type: Bug Version: obsolete: 8.5a2
Submitter: kjnash Created on: 2005-02-19 02:09:00
Subsystem: 65. Generic Window Operations Assigned To: hobbs
Priority: 5 Medium Severity:
Status: Pending Last Modified: 2026-09-22 20:54:45
Resolution: Wont Fix Closed By:
    Closed on:
Description:
# When a wish toplevel is embedded in a frame or
toplevel of another wish app that has been identified
as a container, there are problems with menus.

# same whether the container is a frame or a toplevel

# X11:
# the menu bar is there, but the menus pop up in the
wrong place (a bit too low on the screen)
# Tested in Fedora Core 3
# Same with 3 different window managers: KDE
3.3.1-2.4.FC3, Gnome (metacity 2.8.6-2), or XFCE
(xfwm4-4.0.6-1)
# Same with both current versions of ActiveTcl:
8.4.9.0, 8.5.0 beta3 (8.5a2)

# Windows - a different problem
# Windows XP Home (SP2): the menu bar does not appear
at all.

# test script is attached
User Comments: serhiy.storchaka added on 2026-09-22 20:54:45:

On X11 I cannot reproduce the misplaced menus: with 8.4.2 and 9.1 the pulldown of an embedded toplevel is posted at the same place as in a toplevel which is not embedded, with a window manager and without one.

On Windows the menubar is missing because an embedded toplevel is a WS_CHILD window, and Windows displays a menu bar only for overlapped and popup windows. To show it, Tk would have to draw the menubar itself, as it does on X11.


kjnash added on 2007-07-15 03:43:59:
Logged In: YES 
user_id=991282
Originator: YES

Bug 1529659 has a different problem related to menus and embedded toplevels.

kjnash added on 2005-02-19 09:09:01:

File Added - 121856: container.tcl

Attachments: