Creating the text editor
Create a new visual part called EditorView. In the Composition Editor
change the title to Simple 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.
Making the connections
Connect the parts as follows:
1. Connect the Multi-line Edit part's self attribute to the mLE attribute of the Find Dialog window.
2. Connect the Multi-line Edit part's menu attribute to the self attribute of the pop-up menu.
3. Connect the clicked event of the Find menu item to the openWidget action of the Find Dialog.
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.
Last modified date: 07/16/2020