| Ticket UUID: | 1529659 | |||
| Title: | Embedded toplevel makes the outer toplevel menu inaccessible | |||
| Type: | Bug | Version: | obsolete: 8.4.13 | |
| Submitter: | sbron | Created on: | 2006-07-27 13:02:15 | |
| Subsystem: | 11. Aqua Menus | Assigned To: | marc_culler | |
| Priority: | 4 | Severity: | Minor | |
| Status: | Closed | Last Modified: | 2019-02-08 17:09:16 | |
| Resolution: | Fixed | Closed By: | marc_culler | |
| Closed on: | 2019-02-08 17:09:16 | |||
| Description: |
Situation: The main window of an application has a menubar attached to it and it also contains a frame with the -container option set to true. When a toplevel window is embedded into this frame the menu of the main window gets replaced by the default menu (presumably the menu of the embedded toplevel). As far as I could tell there is no way to access the menubar of the main window of the application anymore, short of destroying the embedded toplevel. | |||
| User Comments: |
marc_culler (claiming to be Marc Culler) added on 2019-02-08 17:09:16:
This is fixed by checkin 01441d8d00, so I am closing the ticket. kjnash added on 2007-07-15 03:43:25: Logged In: YES user_id=991282 Originator: NO Bug 1144186 has a different problem related to menus and embedded toplevels. sbron added on 2006-07-28 20:10:20: File Added - 186586: script.tcl Logged In: YES user_id=37987 I apologize for not providing a script in the first place. As it turns out, the problem isn't as straightforward as I initially thought. A few additional conditions must be met for the problem to show up: - The embedded toplevel must not be part of the same wish process. - The main window with the menubar must have lost (and regained) focus. The attached script will show the situation. On startup the script.tcl window will not have an embedded toplevel. The Tools menu can be accessed without problems. Now if you click the "Embed toplevel" button in the second window, the script.tcl window will show the toplevel from the second wish process, which can be recognized by its red color. From this point on it is no longer possible to get access to the Tools menu. Second scenario: After restarting the script, hide the container frame by selecting the "Hide embedded window" command from the tools menu. Then click the "Embed toplevel" button. Now the Tools menu of the script.tcl window can still be used and the red frame can be shown or hidden without any problems. However, once the script.tcl window loses focus while the red frame is visible, the menu becomes unreachable. das added on 2006-07-28 16:49:00: Logged In: YES user_id=90580 it would save me a lot of time if you could supply a small test script that shows the issue, so that I don't have to try to reproduce this myself. | |||
Attachments:
- script.tcl [download] added by sbron on 2006-07-28 20:10:20. [details]
