.. _Override using the Dialog:

Override using the Dialog
=========================

.. rst-class:: lead

You can use the Override Methods Dialog to quickly extend (or implement) one or more like-inherited methods.

Place the Editor cursor inside a unit or struct body, then :menuselection:`right click --> Source --> Override Methods` to open the dialog. Alternatively, you can hit :kbd:`Ctrl+Space` and select :guilabel:`Override Methods`.

Select the methods you want to extend and their extend type: :guilabel:`is also`, :guilabel:`is first`, :guilabel:`is only` or :guilabel:`is` (**2**) 
and press :guilabel:`OK`.

Use the checkbox (**1**)
to see only **empty** or **undefined** methods.

.. figure:: ../../images/edt-override-window.png
	:align: center




The empty body of the extended methods will be placed inside the struct/unit body at the cursor position:

.. figure:: ../../images/edt-override-added-code.png
	:align: center




.. note::

	A **TODO** reminder is automatically inserted in each generated method stub, and shows up in the :ref:`Tasks View`.
