Menu

#882 Error with torn off menus

obsolete: 8.2.1
open
5
2014-08-17
2000-11-01
No

OriginalBugID: 3408 Bug
Version: 8.2.1
SubmitDate: '1999-11-05'
LastModified: '1999-11-12'
Severity: LOW
Status: UnAssn
Submitter: techsupp
ChangedBy: hobbs
OS: Windows NT

Name:
Peter Spjuth

ReproducibleScript:
catch {console show}

menubutton .mb -text Menu -menu .mb.m
menu .mb.m
.mb.m add command -label Apa
.mb.m add cascade -label Bepa -menu .mb.m.m
menu .mb.m.m
.mb.m.m add command -label Cepa

pack .mb

proc apa {name1 name2 op} {
set caller [lindex [info level -1] 0]
puts "tkPriv(menuBar) is now \"$::tkPriv(menuBar)\" set in $caller"
}
trace variable tkPriv(menuBar) w apa

----------------
Press the menu button and tear off the menu.
In the torn off menu, click Bepa to open the cascade
Click Cepa.
The trace output should now show that tkPriv(menuBar) is ".tearoff1"
Close the window with the torn off menu.
Click the menu button.
This gives an error since tkPriv(menuBar) references a window that does
not exist.

I have also seen another effect with torn off menus which might be
related.
Tear of the menu.
Click Bepa to open the cascade.
Click Cepa. The cascade disappears (as it should).
Click Bepa. Nothing happens!
Click Apa.
Click Bepa. Now it works ok.

Discussion

  • Nobody/Anonymous

    Logged In: NO

    What I have found, is that the only consistent way to get
    the menu to appear, I have to click and hold (over Bepa),
    move off and back onto the menu (still holding left down)
    so that the word Bepa becomes unhilighted and rehighlighted
    and then the menu item popup will appear again (along with
    the re-highlight of Bepa). One suggestion was that this
    might be a focus problem.

     
  • Don Porter

    Don Porter - 2003-11-12
    • assigned_to: nobody --> pspjuth
     
MongoDB Logo MongoDB