On Thu, 27 Mar 1997, Rick Macdonald wrote:
>
> It seems that if you ever click the "update" button on a cascade menu
> in the Editing Menu, you can never double-click it to edit the cascaded
> menu again. Not even if you save the application and quit and restart vTcl
> and reload the app.
>
> For example, this fails:
>
> o set Entry Type = cascade
> o leave Entry Label blank
> o click add
> o at this point, dbbl-click to edit cascade is OK
> o fill in the Entry Label and/or Accelerator and click Update
> o now dbbl-click to edit no longer works
I found the guilty code and have fixed it for 1.09.
For the intrepid, change the following in lib/lib_core.tcl in the
proc vTcl:menu_item_update
set cur_menu [$target entrycget $num -menu]
$target delete $num
switch $type {
separator {
$target insert $num $type
}
default {
$target insert $num $type -label $label \
-accel $accel -command $cmd -menu $cur_menu
}
}
-stewart-