This archive contains the source for SELMOTN.DLL and a compiled
version of the DLL for 32-bit version of Codewright 3.1 for Windows.

Submitted by Premia Corporation, 14Oct95.


Selmotn is a utility to be used from within Codewright to
extend a selection to a new location that results from calling
another Codewright API function.  Use it to create a selection
from the current cursor position to the next occurrence of a
regular expression, for example.

When installed, it creates a new API call that can be used from
the API command line in Codewright or bound to a keystroke.

Its syntax is:

    void DLL MarkExtendSelMotion(UINT newMarkType, LPSTR func)
	
where

    newMarkType  is a selection type, e.g. SELECTION_EXCLUSIVE.
	
    func         is a quoted string containing a call to a
                 Codewright API function.
                 
                 
If a selection is currently open, MarkExtendSelMotion will just
extend it to wherever the curser is after the API function is
called.  If there is no selection, or if a selection type
(other than SELECTION_NONE) is given as newMarkType, then a new
selection of the requested type will be begun at the current
cursor position.

Here is an example command to create a stream selection from the
current cursor position to the next occurrence of the string END:

    MarkExtendSelMotion=2, "SrchFind('END', SEARCH_FORWARD)"

	           
	           
	           