Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Mouse interface routines - <b>mmemoedit()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 MMEMOEDIT()
 Memo edit with mouse support
------------------------------------------------------------------------------
 Syntax
      MMEMOEDIT([<cString>],
         [<nTop>], [<nLeft>],
         [<nBottom>], [<nRight>],
         [<lEditMode>],
         [<cUserFunction>],
         [<nLineLength>],
         [<nTabSize>],
         [<nTextBufferRow>],
         [<nTextBufferColumn>],
         [<nWindowRow>],
         [<nWindowColumn>]) --> cTextBuffer

 Arguments
     <cString> is the character string or memo field to copy to the
     MEMOEDIT() text buffer.  If not specified, the text buffer is empty.

     <nTop>, <nLeft>, <nBottom>, and <nRight> are the upper
     left and lower right window coordinates.  Row values can range from
     zero to MAXROW(), and column positions can range from zero to
     MAXCOL().  If not specified, the default coordinates are 0, 0,
     MAXROW(), and MAXCOL().

     <lEditMode> determines whether the text buffer can be edited or
     simply displayed.  Specifying true (.T.) allows the user to make
     changes to the text buffer, while specifying false (.F.) only allows
     the user to browse the text buffer.  If not specified, the default
     value is true (.T.).

     <cUserFunction> is the name of a user-defined function that
     executes when the user presses a key not recognized by MEMOEDIT() and
     when no keys are pending in the keyboard buffer.  <cUserFunction> is
     specified as a character value without parentheses or arguments.
     Specifying false (.F.) for this argument displays <cString> and causes
     MEMOEDIT() to immediately terminate.  If this argument is specified,
     the automatic behavior of MEMOEDIT() changes.

     <nLineLength> determines the length of lines displayed in the
     MEMOEDIT() window.  If a line is greater than <nLineLength>, it is
     word-wrapped to the next line in the MEMOEDIT() window.  If
     <nLineLength> is greater than the number of columns in the MEMOEDIT()
     window, the window will scroll if the cursor moves past the window
     border.  If <nLineLength> is not specified, the default line length is
     (<nRight> - <nLeft>).

     <nTabSize> determines the size of a tab character to insert when
     the user presses Tab.  If <nTabSize> is not specified, four spaces are
     inserted instead of a tab character.

     <nTextBufferRow> and <nTextBufferColumn> define the display
     position of the cursor within the text buffer when MEMOEDIT() is
     invoked.  <nTextBufferRow> begins with one and <nTextBufferColumn>
     begins with zero.  If these arguments are not specified, the cursor is
     placed at row one and column zero of the MEMOEDIT() window.

     <nWindowRow> and <nWindowColumn> define the initial position
     the cursor within the MEMOEDIT() window.  Row and column positions
     begin with zero.  If these arguments are not specified, the initial
     window position is row zero and the current cursor column position.

 Returns
     MEMOEDIT() returns the text buffer if the user terminates editing with
     Ctrl-W or a copy of <cString> if user terminates with Esc.

 Description
     This routine captures information necessary to use the mouse within
     MEMOEDIT and then calls MEMOEDIT with the parameters passed to it.

     In order to get mouse support, you must include a call to MouseMemoIdle()
     in your user function (<cUserFunction>) which will be called when
     the MEMOEDIT has gone to the idle state.
 Examples
     See MEMOEDIT in the Clipper documentation

 Source: MEMOFUNC.PRG

 Author: Leo Letendre

See Also: MOUSEMEMOIDLE()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson