Bug on menu/menubutton widgets

From: Giorgio Cesana <cesana_at_venus.sgs-thomson.it>
Date: Tue, 31 Oct 1995 15:54:02 +0100

Dear all,

I have found a bug in the menu/menubutton management.

If you build a menu with a separator as the first entry of the menu, i.e.

STk> (.m1 'add 'separator)
STk> (.m1 'add 'command :label "entry1")
STk> (menubutton '.m :text "test" :menu .m1)
#[Tk-command .m]
STk> (pack .m)

by clicking on the menu button you will get the error:

*** Tk background error:
unknown option "-state"
**** Tk error ("") "
    (command bound to event)"

If I remember well, I have seen something similar in an old Tcl/Tk news (I tried
with the tcl/tk I have -fully patched- but I was not able to reproduce it).

Any suggestion?




Giorgio Cesana | SGS-THOMSON Microelectronics
phone +39/39/603.6006 | Central R&D - DAIS
fax +39/39/603.5820 | via C. Olivetti, 2
e-mail giorgio_cesana.sgs-thomson.it | 20041 Agrate B.za (MI) - ITALY
Received on Tue Oct 31 1995 - 15:58:39 CET

This archive was generated by hypermail 2.3.0 : Mon Jul 21 2014 - 19:38:59 CEST