home *** CD-ROM | disk | FTP | other *** search
/ QBasic & Borland Pascal & C / Delphi5.iso / C / Samples / CSAPE32.ARJ / LNF / LNFMENU.H < prev    next >
Text File  |  1990-12-11  |  4KB  |  156 lines

  1. /*
  2.     lnfmenu.h
  3.  
  4.     %    LNF SCAN_ and COM_ values
  5.  
  6.     Look & Feel 3.2
  7.     Copyright (c) 1990, by Oakland Group, Inc.
  8.     ALL RIGHTS RESERVED.
  9.  
  10.     Revision History:
  11.     -----------------
  12.      8/24/90 jdc    switched to lnfmenu.h scheme
  13.      8/31/90 jdc    improved the COM_ scheme
  14.      9/02/90 jdc    added macros
  15.      9/11/90 jdc    added COM_SEARCHAGAIN
  16. */
  17.  
  18. /*    The following SCAN_ values are quickkeys for operating LNF functions.
  19.     They can be redefined as desired.
  20.  
  21.     The LNF menubar returns COM_ values which are indexes into a scancode
  22.     array the results of which is handled like any keystoke.
  23.     Translating COM_ into SCAN_ values allows the same screen file menubar
  24.     image to work on platforms with differing keyboard scancode values.
  25.  
  26.     The menubar's fields (which usually contain the keystroke name) can
  27.     be changed by loading, editing, and resaving the "menu" screen from 
  28.     lnf.oak.
  29. */
  30.  
  31. /* keyboard only scans
  32. */
  33. #define SCAN_NEXTWORD                CTRL_RIGHT
  34. #define SCAN_PREVWORD                CTRL_LEFT
  35. #define SCAN_MAXIMIZE                CTRL_FN1
  36. #define SCAN_MINIMIZE                CTRL_FN2
  37. #define SCAN_ALLGO                    CTRL_FN9
  38. #define SCAN_DEMOPROMPT                CTRL_FN10        
  39. #define SCAN_SLIDEFLD                FN5
  40. #define    SCAN_MENU                    FN10
  41. #define    SCAN_GOTO                    CTRL_G
  42. #define    SCAN_TOGGLEINS                CTRL_I
  43. #define SCAN_REFRESH                CTRL_Z
  44. #define SCAN_MACRO                    CTRL_D
  45.  
  46. /* menubar also scans (in menubar order)
  47. */
  48. #define SCAN_LOADSCR                CTRL_J
  49. #define SCAN_SAVE                    CTRL_S
  50. #define SCAN_IMPORT                    KEY_USER(1)
  51. #define SCAN_GENCODE                KEY_USER(2)
  52. #define SCAN_GENSYMS                KEY_USER(3)
  53. #define SCAN_ABOUT                    KEY_USER(4)
  54.  
  55. #define SCAN_OPENSCR                CTRL_O
  56. #define SCAN_EDITSCR                FN2
  57. #define SCAN_DELSCR                    CTRL_Y
  58. #define SCAN_NEXTSCR                CTRL_N
  59. #define SCAN_LISTSCR                FN3
  60. #define SCAN_SIMULATE                FN9
  61. #define SCAN_MOVE                    CTRL_M
  62. #define SCAN_RESIZE                    CTRL_R
  63. #define SCAN_WIPESCR                KEY_USER(5)
  64.  
  65. #define SCAN_EDITFLD                CTRL_E
  66. #define SCAN_MARKFLD                CTRL_F
  67. #define SCAN_LISTFLD                FN4
  68. #define SCAN_GLOBFLD                KEY_USER(6)
  69. #define SCAN_ROWSORT                KEY_USER(7)
  70. #define SCAN_COLSORT                KEY_USER(8)
  71.  
  72. #define SCAN_CUTBLOCK                CTRL_X
  73. #define SCAN_COPYBLOCK                CTRL_K
  74. #define SCAN_MOVEBLOCK                CTRL_T
  75. #define SCAN_DELBLOCK                KEY_USER(9)
  76. #define SCAN_ATTRBLOCK                CTRL_A
  77. #define SCAN_PASTE                    CTRL_P
  78.  
  79. #define SCAN_EDITOPEN                FN6
  80. #define SCAN_SEARCH                    FN7
  81. #define SCAN_SEARCHAGAIN            CTRL_FN7
  82. #define SCAN_REPLACE                FN8
  83.  
  84. #define SCAN_ATTACHBOB                CTRL_W
  85. #define SCAN_DETACHBOB                KEY_USER(10)
  86. #define SCAN_EMBEDBOB                CTRL_B
  87. #define SCAN_USERBOB                CTRL_U
  88.  
  89. #define SCAN_LINE                    CTRL_L
  90. #define SCAN_SPECCHAR                CTRL_C
  91. #define SCAN_GLOBALSET                KEY_USER(11)
  92. #define SCAN_GOTOTOP                CTRL_HOME
  93. #define SCAN_GOTOBOT                CTRL_END
  94.  
  95. #define SCAN_HELP                    FN1
  96. #define SCAN_KEYHELP                CTRL_H
  97.  
  98. #define SCAN_QUIT                    CTRL_Q
  99.  
  100. /* menubar com values
  101. */
  102. #define COM_LOADSCR                    1
  103. #define COM_SAVE                    2
  104. #define COM_IMPORT                    3
  105. #define COM_GENCODE                    4
  106. #define COM_GENSYMS                    5
  107. #define COM_ABOUT                    6
  108.  
  109. #define COM_OPENSCR                    10
  110. #define COM_EDITSCR                    11
  111. #define COM_DELSCR                    12
  112. #define COM_NEXTSCR                    13
  113. #define COM_LISTSCR                    14
  114. #define COM_SIMULATE                15
  115. #define COM_MOVE                    16
  116. #define COM_RESIZE                    17
  117. #define COM_WIPESCR                    18
  118.  
  119. #define COM_EDITFLD                    20
  120. #define COM_MARKFLD                    21
  121. #define COM_LISTFLD                    22
  122. #define COM_GLOBFLD                    23
  123. #define COM_ROWSORT                    24
  124. #define COM_COLSORT                    25
  125.  
  126. #define COM_CUTBLOCK                31
  127. #define COM_COPYBLOCK                32
  128. #define COM_MOVEBLOCK                33
  129. #define COM_DELBLOCK                34
  130. #define COM_ATTRBLOCK                35
  131. #define COM_PASTE                    36
  132.  
  133. #define COM_EDITOPEN                40
  134. #define COM_SEARCH                    41
  135. #define COM_REPLACE                    42
  136. #define COM_SEARCHAGAIN                43
  137.  
  138. #define COM_ATTACHBOB                50
  139. #define COM_DETACHBOB                51
  140. #define COM_EMBEDBOB                52
  141. #define COM_USERBOB                    53
  142.  
  143. #define COM_LINE                    60
  144. #define COM_SPECCHAR                61
  145. #define COM_GLOBALSET                62
  146. #define COM_GOTOTOP                    63
  147. #define COM_GOTOBOT                    64
  148.  
  149. #define COM_HELP                    70
  150. #define COM_KEYHELP                    71
  151.  
  152. #define COM_QUIT                    80
  153.  
  154. #define COM_LAST                    90
  155.  
  156.