I'm not familiar with this GUI system, but does the subroutine in the -command argument get passed anything in @_? Maybe that can be passed into setbits() where the function can manipulate the menu's text directly, instead of through these global references.
Just some idle thoughts... I also don't care for the intermediate variables $bit_9 and $bit_10. He should probably just be using @bit[9,10] directly.
In reply to Re: (ichimunki) Re: Updating concatenated text on a Menubutton
by Fastolfe
in thread Updating concatenated text on a Menubutton
by Kahlua_II
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |