This document explains how to use the search and search/replace dialogs
available with libjxsr in your code:

* Create a global dialog and make an access funtion to it:

	* dialog creation on startup:

		#include "JXSRFullDialog.h"

		JXSRTextDialogBase*	itsDialog		= NULL;
		
		itsDialog = new JXSRFullDialog(app);
		assert(itsDialog != NULL);

	* access funtion

		class JXSRTextDialogBase;
		JXSRTextDialogBase*	GetSearchDialog();

		JXSRTextDialogBase*
		GetSearchDialog()
		{
			assert(itsDialog != NULL);
			return itsDialog;
		}

* Derive your editor from JXSRTextBase

	* in header

		#include <JXSRTextBase.h>
		class myEditor : public JXSRTextBase

	* in code

		:
		JXSRTextBase(type, breakCROnly, kFalse, scrollbarSet,
				 enclosure, hSizing, vSizing, x,y, w,h)

* Append the appropriate menu to the menubar in your editor

	* if your editor is editable

		AppendSearchReplaceMenu(GetSearchDialog(), menuBar, 			
									JXMenu::kMacintoshStyle);
	
	* if your editor is read-only

		AppendSearchMenu(GetSearchDialog(), menuBar, JXMenu::kMacintoshStyle);
	
* In your editor's Receive function, after you've done what you need to do,
	add the line:

		JXSRTextBase::Receive(sender, message);

