# Define context menu actions (verbs) for your components using component editors

**URL:** <https://forum.castle-engine.io/t/define-context-menu-actions-verbs-for-your-components-using-component-editors/646>\
**Category:** News\
**Created:** [September 22, 2022, 11:55am UTC](https://forum.castle-engine.io/t/define-context-menu-actions-verbs-for-your-components-using-component-editors/646 "2022-09-22T11:55:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![michalis](https://forum.castle-engine.io/user_avatar/forum.castle-engine.io/michalis/32/3_2.png) [@michalis](https://forum.castle-engine.io/u/michalis)\
**Post date:** [September 22, 2022, 11:55am UTC](https://forum.castle-engine.io/t/define-context-menu-actions-verbs-for-your-components-using-component-editors/646/1 "2022-09-22T11:55:50Z")

</div>

| [![Context menu with component actions](https://forum.castle-engine.io/uploads/default/original/1X/3b11506079c5323b6dfd112fdee213c9fcc88dff.png)](https://i0.wp.com/castle-engine.io/wp/wp-content/uploads/2022/09/editor_menu.png?ssl=1 "Context menu with component actions") |

You can now define a _“component editor”_ class to add commands to the context menu when you right-click the component in CGE editor hierarchy. Detailed instructions and example how to do this are in [manual: Add “verbs” to the context menu for given component](https://castle-engine.io/custom_components#_add_verbs_to_the_context_menu_for_given_component).

A full working example application is in [examples/advanced\_editor/custom\_component](https://github.com/castle-engine/castle-engine/tree/master/examples/advanced_editor/custom_component), it defines a verb _“Reload URL”_ over sample `TImageGrid` defined in that project.

This feature is already used by some built-in components:

1. _“Reset Transformation”_ is now available for `TCastleTransform` and all descendants.
2. _“Reload URL”_ is available for various components that load things from files (`TCastleScene`, `TCastleImageTransform`, `TCastleImageControl`).
3. _“Edit”_, _“Revert”_, _“Open”_ are available for `TCastleDesign` and `TCastleTransformDesign`. These new commands will be described in a separate upcoming post — they greatly enhance how you can reuse the designs.
