/* ARexx AppMenu test */
ADDRESS WORKBENCH
MENU ADD NAME menu1 TITLE "thisisquitealongappmenutitle" CMD "C:RequestChoice TITLE Test BODY Test GADGETS OK"
SAY "Press Return to remove the AppMenu item"
PARSE PULL
MENU REMOVE NAME menu1
Also, unless I'm doing something wrong, the command isn't running when the menu item is selected either.
Also, unless I'm doing something wrong, the command isn't running when the menu item is selected either.
Your command is not enclosed in quotes. The quotes you entered surround the Rexx string but are not sent to Workbench.
Ah, yes, of course, thanks! Anyway, the only reason I wrote that was to demonstrate the Tools menu bug...
I can't reprocuce the problem. I add HyperClock to my Tools menu as part of my AddTools script that adds a lot of WorkBench menus from WBStartup. I just removed the HyperClock menu item and the menu adjusted back to the correct size. Also, TurboText always adds a Tools menu when I open it and removes it when I quit TurboText. The Tools menu always adjusts to the correct size for the remaining items (3). How many items are normally in your Tools menu?
xenic wrote: The Tools menu always adjusts to the correct size for the remaining items (3). How many items are normally in your Tools menu?
Normally only ResetWB. I've just tried my script with something else already present in the menu, and you're right - it adjusts back to the correct size. So it looks like it is only when the last item is removed that the size doesn't change.
I can confirm this anomoly. Unfortunately, the workbench.library code is so convoluted, I just can't follow it enough to track what it's doing and where this fault may lie. I'll put it on the bugtracker, and just hope that someone with a decent amount of knowledge in this source can find and fix it.