| Description: |
Apparently, there is not way, to query the state of a
menu tag.
The state of menu tags could be set with:
$mainframe setmenustate tag state
I would be very handy, to be able to query the state of
a tag. Something like a getmenustate method with syntax
like
$mainframe getmenustate tag
returning the state. Or enhanced setmenustate syntax
$mainframe setmenustate tag ?state?
If the optional new state is omitted, then the current
state of the tag is returned. (And emtpy string for not
knows tags? Or error? Curently, setmenustate simply
ignores unknown tags - which shuld be mentioned in the
documentation.)
The current setmenustate implementation in
mainframe.tcl still includes the old tag state
mechanism commented out. I agree, that the current
state system is better. Shouldn't this code be removed?
The documentation should mention at one place, that
only state "disabled" disables the tag and that every
other state enables it.
|