home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / harbb30g.zip / INCLUDE / memoedit.ch < prev    next >
Text File  |  1999-09-15  |  3KB  |  62 lines

  1. /*
  2.  * $Id: memoedit.ch,v 1.4 1999/09/15 14:03:37 vszel Exp $
  3.  */
  4.  
  5. /*
  6.  * Harbour Project source code:
  7.  * Header file for MEMOEDIT() function
  8.  *
  9.  * Copyright 1999 {list of individual authors and e-mail addresses}
  10.  * www - http://www.harbour-project.org
  11.  *
  12.  * This program is free software; you can redistribute it and/or modify
  13.  * it under the terms of the GNU General Public License as published by
  14.  * the Free Software Foundation; either version 2 of the License, or
  15.  * (at your option) any later version, with one exception:
  16.  *
  17.  * The exception is that if you link the Harbour Runtime Library (HRL)
  18.  * and/or the Harbour Virtual Machine (HVM) with other files to produce
  19.  * an executable, this does not by itself cause the resulting executable
  20.  * to be covered by the GNU General Public License. Your use of that
  21.  * executable is in no way restricted on account of linking the HRL
  22.  * and/or HVM code into it.
  23.  *
  24.  * This program is distributed in the hope that it will be useful,
  25.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  26.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  27.  * GNU General Public License for more details.
  28.  *
  29.  * You should have received a copy of the GNU General Public License
  30.  * along with this program; if not, write to the Free Software
  31.  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA (or visit
  32.  * their web site at http://www.gnu.org/).
  33.  *
  34.  */
  35.  
  36. #ifndef _MEMOEDIT_CH
  37. #define _MEMOEDIT_CH
  38.  
  39. /* User callback status modes */
  40. #define ME_IDLE         0       /* Idle, all keys processed        */
  41. #define ME_UNKEY        1       /* Unknown key, memo unaltered     */
  42. #define ME_UNKEYX       2       /* Unknown key, memo altered       */
  43. #define ME_INIT         3       /* Initialization mode             */
  44. #define ME_REQUEST      4       /* Memoedit requests an input from */
  45.                                 /* the user function, e.g. after   */
  46.                                 /* ME_PASTE                        */ /* XBase++ extension */
  47.  
  48. /* User callback return codes */
  49. #define ME_DEFAULT      0       /* Perform default action          */
  50. #define ME_IGNORE       32      /* Ignore unknown key              */
  51. #define ME_DATA         33      /* Treat unknown key as data       */
  52. #define ME_TOGGLEWRAP   34      /* Toggle word-wrap mode           */
  53. #define ME_TOGGLESCROLL 35      /* Toggle scrolling mode           */
  54. #define ME_WORDRIGHT    100     /* Perform word-right operation    */
  55. #define ME_BOTTOMRIGHT  101     /* Perform bottom-right operation  */
  56. #define ME_PASTE        110     /* Paste string into buffer        */ /* XBase++ extension */
  57.  
  58. /* NOTE: Return codes 1-31 cause MEMOEDIT() to perform the */
  59. /*       edit action corresponding to the key whose value is returned. */
  60.  
  61. #endif /* _MEMOEDIT_CH */
  62.