Creating the descendant
Next, you use inheritance to build a descendant part that looks just like AddressFormView. The new part inherits all the parts, connections, and scripts from the ancestor, but you will modify it slightly to serve another purpose.
Begin in the Organizer by selecting
New from the Organizer basic
Parts menu. (It's
New > Part in the full
Parts menu.) In the displayed New Part window, specify
ReadOnlyAddressView for the name and keep the default of
Visual part. To make this part a descendent, have the part inherit from
AddressFormView. Finally, select
OK to create the part and open the Composition Editor.
When the Composition Editor opens, it displays a part that looks like the one you just finished.
Change this new part so that each of the text entry fields is read-only. You can make whatever changes you need to, including adding or deleting parts and making different connections.
Test both parts to see the difference in their behavior.
Last modified date: 06/11/2018