Create a new visual part called EditorView. In the Composition Editor add a Multi-line Edit part so it occupies most of the window part. Add a Popup Menu part to the free-form surface and add a Menu Choice part to the menu. Change the label of the menu choice to Find.
Edit the Multi-line Edit framingSpec property so that the bottom and right attachment type is XmATTACHFORM with an offset of 3. This makes the Multi-line Edit part expand or shrink as you resize the window.
Select Add Part from the Options menu to add FindDialog as a part on the free-form surface.
Connect the parts as follows:
Save the part.
The Find Dialog can now be accessed through the multiline edit part's pop-up menu to allow searching of the Multi-line Edit part for some string of text.