[squeak-dev] How do I use MenuItemMorph>>#debugAction?
Vanessa Freudenberg
vanessa at codefrau.net
Sat Mar 4 02:51:40 UTC 2023
On Fri, Mar 3, 2023 at 6:19 PM Eduardo Ochs <eduardoochs at gmail.com> wrote:
> Hi all,
>
> short version of my question:
>
> How do I use MenuItemMorph>>#debugAction?
>
If you browse the senders of this, you will see that certain morphs add
this to their debug menu. One of them is MenuItemMorph.
*buildDebugMenu:* aHandMorph
| aMenu |
aMenu *:=* super buildDebugMenu: aHandMorph.
aMenu addLine.
aMenu add: 'browse action code' translated target: self action:
#browseImplementationOfActionSelector.
aMenu add: 'debug action invocation' translated target: self action:
#debugAction.
^ aMenu
So basically you bring up the halo for a menu item (bring up halo for menu,
then click again for halo of item), click the red halo handle to get the
morph's menu:
[image: image.png]
At the bottom of its the debug submenu you will fine the debug action
entry:
[image: image.png]
Vanessa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20230303/6b5869cd/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 71166 bytes
Desc: not available
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20230303/6b5869cd/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 139284 bytes
Desc: not available
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20230303/6b5869cd/attachment-0003.png>
More information about the Squeak-dev
mailing list
|