nwsnut.pp 56 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518
  1. {
  2. $Id$
  3. This file is part of the Free Pascal run time library
  4. for Netware.
  5. Copyright (c) 1999-2003 by the Free Pascal development team.
  6. See the file COPYING.FPC, included in this distribution,
  7. for details about the copyright.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  11. **********************************************************************}
  12. unit nwsnut;
  13. interface
  14. {$mode objfpc}
  15. const
  16. External_library='nwsnut';
  17. Type
  18. PLongint = ^Longint;
  19. PSmallInt = ^SmallInt;
  20. PByte = ^Byte;
  21. PPByte = ^PByte;
  22. PWord = ^Word;
  23. PDWord = ^DWord;
  24. PDouble = ^Double;
  25. TLONG = longint;
  26. PLONG = ^TLONG;
  27. TWORD = word;
  28. TBYTE = byte;
  29. PScreenStruct = pointer;
  30. {$PACKRECORDS C}
  31. type
  32. LONG = dword;
  33. const
  34. NULL = 0;
  35. { constants
  36. the constant CURRENT_NUT_VERSION is incremented when increased
  37. functionality is added. An NLM can check this value which is placed
  38. in the NUTInfo structure, version field, to determine if the NWSNUT
  39. NLM contains sufficient functionality to support its requirements }
  40. const
  41. CURRENT_NUT_VERSION = 405;
  42. { the constant NUT_REVISION_LEVEL is incremented when a major change
  43. in the behavior of NWSNUT is made. This value is not used by the calling
  44. NLM, but rather by NWSNUT itself to determine what is expected of it
  45. by the calling NLM }
  46. NUT_REVISION_LEVEL = 1;
  47. SAVE = 1;
  48. NO_SAVE = 0;
  49. NOHEADER = 0;
  50. NOBORDER = 0;
  51. NO_HELP_CONTEXT = $ffff;
  52. SINGLE = 1;
  53. DOUBLE = 2;
  54. CURSOR_OFF = 0;
  55. CURSOR_ON = 1;
  56. VIRTUAL = 0;
  57. DIRECT = 1;
  58. SEVERITY_INFORM = 1;
  59. SEVERITY_WARNING = 2;
  60. SEVERITY_FATAL = 3;
  61. { text size minimization styles }
  62. SNORMAL = 0;
  63. SMINWIDTH = 1;
  64. SMINHEIGHT = 2;
  65. { palettes to set screen colors.
  66. background and foreground can be reversed with VREVERSE
  67. }
  68. { white and black }
  69. BW_PALETTE = 0;
  70. { white and dark blue }
  71. NORMAL_PALETTE = 1;
  72. { light blue and dark blue }
  73. INIT_PALETTE = 2;
  74. { green and black }
  75. HELP_PALETTE = 3;
  76. { red and black }
  77. ERROR_PALETTE = 4;
  78. { pink and white }
  79. WARNING_PALETTE = 5;
  80. { green and red }
  81. OTHER_PALETTE = 6;
  82. { text and portal justification styles }
  83. JRIGHT = 0;
  84. JLEFT = 1;
  85. JTOP = 2;
  86. JBOTTOM = 3;
  87. JCENTER = 4;
  88. JTOPRIGHT = 5;
  89. JTOPLEFT = 6;
  90. JBOTTOMLEFT = 7;
  91. JBOTTOMRIGHT = 8;
  92. { video constants }
  93. V_UP = 6;
  94. V_DOWN = 7;
  95. LINE_OFFSET = 160;
  96. EXPLODE_RATE = 45;
  97. SCREEN_SPEED = 0;
  98. { video attributes }
  99. VNORMAL = 0;
  100. VINTENSE = 1;
  101. VREVERSE = 2;
  102. VBLINK = 3;
  103. VIBLINK = 4;
  104. VRBLINK = 5;
  105. { header types }
  106. NO_HEADER = 0;
  107. SMALL_HEADER = 1;
  108. NORMAL_HEADER = 2;
  109. LARGE_HEADER = 3;
  110. { keyboard constants }
  111. KS_OFF = 0;
  112. KS_ON = 1;
  113. KS_INT = 2;
  114. K_NORMAL = 0;
  115. K_F1 = 1;
  116. K_F2 = 2;
  117. K_F3 = 3;
  118. K_F4 = 4;
  119. K_F5 = 5;
  120. K_F6 = 6;
  121. K_F7 = 7;
  122. K_F8 = 8;
  123. K_F9 = 9;
  124. K_F10 = 10;
  125. K_SF1 = 11;
  126. K_SF2 = 12;
  127. K_SF3 = 13;
  128. K_SF4 = 14;
  129. K_SF5 = 15;
  130. K_SF6 = 16;
  131. K_SF7 = 17;
  132. K_SF8 = 18;
  133. K_SF9 = 19;
  134. K_SF10 = 20;
  135. K_CF1 = 21;
  136. K_CF2 = 22;
  137. K_CF3 = 23;
  138. K_CF4 = 24;
  139. K_CF5 = 25;
  140. K_CF6 = 26;
  141. K_CF7 = 27;
  142. K_CF8 = 28;
  143. K_CF9 = 29;
  144. K_CF10 = 30;
  145. K_AF1 = 31;
  146. K_AF2 = 32;
  147. K_AF3 = 33;
  148. K_AF4 = 34;
  149. K_AF5 = 35;
  150. K_AF6 = 36;
  151. K_AF7 = 37;
  152. K_AF8 = 38;
  153. K_AF9 = 39;
  154. K_AF10 = 40;
  155. K_HELP = 1;
  156. K_MODIFY = 3;
  157. K_MARK = 5;
  158. K_CANCEL = 7;
  159. K_MODE = 9;
  160. K_EXIT = 40;
  161. K_ESCAPE = 41;
  162. K_BACK = 42;
  163. K_INSERT = 43;
  164. K_DELETE = 44;
  165. K_SELECT = 45;
  166. K_CYCLE = 46;
  167. K_UP = 47;
  168. K_DOWN = 48;
  169. K_LEFT = 49;
  170. K_RIGHT = 50;
  171. K_SUP = 51;
  172. K_SDOWN = 52;
  173. K_SLEFT = 53;
  174. K_SRIGHT = 54;
  175. K_PUP = 55;
  176. K_PDOWN = 56;
  177. K_FRIGHT = 57;
  178. K_FLEFT = 58;
  179. K_DELETE_END = 59;
  180. {
  181. For NWSUngetKey of function keys, use UGK_FUNCTION_KEY for the "type"
  182. parameter and "K_F1" etc. for the "value" parameter
  183. }
  184. UGK_NORMAL_KEY = $00;
  185. UGK_FUNCTION_KEY = $01;
  186. {
  187. For other special keys listed below, use UGK_NORMAL_KEY for the "value"
  188. parameter, and the UGK_xxx for the "type" parameter.
  189. }
  190. UGK_ENTER_KEY = $02;
  191. UGK_ESCAPE_KEY = $03;
  192. UGK_BACKSPACE_KEY = $04;
  193. UGK_DELETE_KEY = $05;
  194. UGK_INSERT_KEY = $06;
  195. UGK_CURSOR_UP_KEY = $07;
  196. UGK_CURSOR_DOWN_KEY = $08;
  197. UGK_CURSOR_RIGHT_KEY = $09;
  198. UGK_CURSOR_LEFT_KEY = $0a;
  199. UGK_CURSOR_HOME_KEY = $0b;
  200. UGK_CURSOR_END_KEY = $0c;
  201. UGK_CURSOR_PUP_KEY = $0d;
  202. UGK_CURSOR_PDOWN_KEY = $0e;
  203. {
  204. Added in version 403
  205. A special key type to cause LISTs to refresh. K_REFRESH_KEY may be returned
  206. from an action procedure passed to NWSList, or another thread that wishes
  207. to cause a list to refresh may call NWSUngetKey with the UGK version of this,
  208. and it too will cause the list to be redrawn.
  209. Use "type" = UGK_SPECIAL_KEY, and "value" = UGK_REFRESH_KEY
  210. }
  211. UGK_SPECIAL_KEY = 3;
  212. UGK_REFRESH_KEY = $22222222;
  213. K_REFRESH_KEY = UGK_REFRESH_KEY;
  214. OLD_REFRESH_KEY = 222;
  215. { available action keys for list }
  216. M_ESCAPE = $0001;
  217. M_INSERT = $0002;
  218. M_DELETE = $0004;
  219. M_MODIFY = $0008;
  220. M_SELECT = $0010;
  221. { marked delete }
  222. M_MDELETE = $0020;
  223. M_CYCLE = $0040;
  224. { marked modify }
  225. M_MMODIFY = $0080;
  226. { marked select }
  227. M_MSELECT = $0100;
  228. { don't sort list }
  229. M_NO_SORT = $0200;
  230. { allow the list to be refreshed }
  231. M_REFRESH = $0400;
  232. { return values for EditString }
  233. E_ESCAPE = 1;
  234. E_SELECT = 2;
  235. E_EMPTY = 4;
  236. E_CHANGE = 8;
  237. { type values for EditString }
  238. EF_ANY = $0001;
  239. EF_DECIMAL = $0002;
  240. EF_HEX = $0004;
  241. EF_NOSPACES = $0008;
  242. EF_UPPER = $0010;
  243. EF_DATE = $0020;
  244. EF_TIME = $0040;
  245. EF_FLOAT = $0080;
  246. EF_SET = $0100;
  247. EF_NOECHO = $0200;
  248. EF_FILENAME = $0400;
  249. { added in version 404 }
  250. EF_MASK = $0800;
  251. { and in version 405 }
  252. EF_NOCONFIRM_EXIT = $1000;
  253. { scroll bar stuff for NWSEditTextWithScrollBars, and NWSViewTextWithScrollBars }
  254. { which scroll bars to show }
  255. SHOW_VERTICAL_SCROLL_BAR = 2;
  256. SHOW_HORIZONTAL_SCROLL_BAR = 4;
  257. { when to show the scroll bars. Use ONLY one of these }
  258. CONSTANT_SCROLL_BARS = $0200;
  259. TEXT_SENSITIVE_SCROLL_BARS = $0400;
  260. CONSIDER_LOCKED_FIELDS = $0800;
  261. { character and key constants }
  262. { was #define dname def_expr }
  263. function F_H1 : longint;
  264. { return type might be wrong }
  265. { Í }
  266. { was #define dname def_expr }
  267. function F_H2 : longint;
  268. { return type might be wrong }
  269. { ³ }
  270. { was #define dname def_expr }
  271. function F_V1 : longint;
  272. { return type might be wrong }
  273. { º }
  274. { was #define dname def_expr }
  275. function F_V2 : longint;
  276. { return type might be wrong }
  277. { Ú }
  278. { was #define dname def_expr }
  279. function F_UL1 : longint;
  280. { return type might be wrong }
  281. { ¿ }
  282. { was #define dname def_expr }
  283. function F_UR1 : longint;
  284. { return type might be wrong }
  285. { À }
  286. { was #define dname def_expr }
  287. function F_LL1 : longint;
  288. { return type might be wrong }
  289. { Ù }
  290. { was #define dname def_expr }
  291. function F_LR1 : longint;
  292. { return type might be wrong }
  293. { É }
  294. { was #define dname def_expr }
  295. function F_UL2 : longint;
  296. { return type might be wrong }
  297. { » }
  298. { was #define dname def_expr }
  299. function F_UR2 : longint;
  300. { return type might be wrong }
  301. { È }
  302. { was #define dname def_expr }
  303. function F_LL2 : longint;
  304. { return type might be wrong }
  305. { ¼ }
  306. { was #define dname def_expr }
  307. function F_LR2 : longint;
  308. { return type might be wrong }
  309. { Á }
  310. { was #define dname def_expr }
  311. function F_UT1 : longint;
  312. { return type might be wrong }
  313. { Â }
  314. { was #define dname def_expr }
  315. function F_DT1 : longint;
  316. { return type might be wrong }
  317. { ´ }
  318. { was #define dname def_expr }
  319. function F_LT1 : longint;
  320. { return type might be wrong }
  321. { Ã }
  322. { was #define dname def_expr }
  323. function F_RT1 : longint;
  324. { return type might be wrong }
  325. { Ê }
  326. { was #define dname def_expr }
  327. function F_UT2 : longint;
  328. { return type might be wrong }
  329. { Ë }
  330. { was #define dname def_expr }
  331. function F_DT2 : longint;
  332. { return type might be wrong }
  333. { ¹ }
  334. { was #define dname def_expr }
  335. function F_LT2 : longint;
  336. { return type might be wrong }
  337. { Ì }
  338. { was #define dname def_expr }
  339. function F_RT2 : longint;
  340. { return type might be wrong }
  341. { Å }
  342. { was #define dname def_expr }
  343. function F_X1 : longint;
  344. { return type might be wrong }
  345. { Î }
  346. { was #define dname def_expr }
  347. function F_X2 : longint;
  348. { return type might be wrong }
  349. {  }
  350. { was #define dname def_expr }
  351. function F_UP : longint;
  352. { return type might be wrong }
  353. {  }
  354. { was #define dname def_expr }
  355. function F_DOWN : longint;
  356. { return type might be wrong }
  357. {  }
  358. { was #define dname def_expr }
  359. function F_LEFT : longint;
  360. { return type might be wrong }
  361. {  }
  362. { was #define dname def_expr }
  363. function F_RIGHT : longint;
  364. { return type might be wrong }
  365. { ° }
  366. { was #define dname def_expr }
  367. function F_BG1 : longint;
  368. { return type might be wrong }
  369. { ± }
  370. { was #define dname def_expr }
  371. function F_BG2 : longint;
  372. { return type might be wrong }
  373. { ² }
  374. { was #define dname def_expr }
  375. function F_BG3 : longint;
  376. { return type might be wrong }
  377. { Û }
  378. { was #define dname def_expr }
  379. function F_BG4 : longint;
  380. { return type might be wrong }
  381. { form constants (control flags) }
  382. const
  383. F_NOVERIFY = $00;
  384. F_VERIFY = $10;
  385. F_FORCE = $20;
  386. { a flag to pass if no help is desired in the form }
  387. F_NO_HELP = $ffffffff;
  388. { fieldFlags Type masks }
  389. { normal editable field }
  390. NORMAL_FIELD = $00;
  391. { non accessable }
  392. LOCKED_FIELD = $01;
  393. { non editable }
  394. SECURE_FIELD = $02;
  395. { verify field on form exit }
  396. REQUIRED_FIELD = $04;
  397. { hidden fields are also locked }
  398. HIDDEN_FIELD = $09;
  399. { prompt fields are also locked }
  400. PROMPT_FIELD = $11;
  401. { field locked by user, not by NUT }
  402. ULOCKED_FIELD = $0100;
  403. { MASKED_FIELD added in version 402 }
  404. { display ' ' for text }
  405. MASKED_FIELD = $200;
  406. { flag to cause form deselection
  407. before action & verify routines
  408. are called }
  409. FORM_DESELECT = $20;
  410. { In case old flag was used }
  411. NO_FORM_DESELECT = $00;
  412. { normal field controlled justify }
  413. DEFAULT_FORMAT = $00;
  414. { right justification format }
  415. RIGHT_FORMAT = $40;
  416. { left justification format }
  417. LEFT_FORMAT = $80;
  418. { centering format }
  419. CENTER_FORMAT = $C0;
  420. MAXPORTALS = 50;
  421. MAXLISTS = 20;
  422. SAVELISTS = 20;
  423. MAXACTIONS = 60;
  424. MAXFUNCTIONS = MAXACTIONS;
  425. MAXHELP = 30;
  426. NO_MESSAGE = $ffff;
  427. DYNAMIC_MESSAGE_ONE = $fffe;
  428. DYNAMIC_MESSAGE_TWO = $fffd;
  429. DYNAMIC_MESSAGE_THREE = $fffc;
  430. DYNAMIC_MESSAGE_FOUR = $fffb;
  431. DYNAMIC_MESSAGE_FIVE = $fffa;
  432. DYNAMIC_MESSAGE_SIX = $fff9;
  433. DYNAMIC_MESSAGE_SEVEN = $fff8;
  434. DYNAMIC_MESSAGE_EIGHT = $fff7;
  435. DYNAMIC_MESSAGE_NINE = $fff6;
  436. DYNAMIC_MESSAGE_TEN = $fff5;
  437. DYNAMIC_MESSAGE_ELEVEN = $fff4;
  438. DYNAMIC_MESSAGE_TWELVE = $fff3;
  439. DYNAMIC_MESSAGE_THIRTEEN = $fff2;
  440. DYNAMIC_MESSAGE_FOURTEEN = $fff1;
  441. SYSTEM_MESSAGE = $8000;
  442. { was #define dname(params) para_def_expr }
  443. { argument types are unknown }
  444. { return type might be wrong }
  445. function IS_DYNAMIC_MESSAGE(a : longint) : boolean;
  446. type
  447. {PNUTInfo_ = ^TNUTInfo_;
  448. TNUTInfo_ = record
  449. end;}
  450. PNUTInfo_ = ^TNUTInfo_;
  451. { height of virtual screen }
  452. { width of virtual screen }
  453. { top-most line of portal }
  454. { left-most column of portal }
  455. { position of portal over virtual portal }
  456. { position of portal over virtual portal }
  457. { the following fields should never be referenced by any application }
  458. PPCB_ = ^TPCB_;
  459. TPCB_ = record
  460. frameLine : TLONG;
  461. frameColumn : TLONG;
  462. frameHeight : TLONG;
  463. frameWidth : TLONG;
  464. virtualHeight : TLONG;
  465. virtualWidth : TLONG;
  466. cursorState : TLONG;
  467. borderType : TLONG;
  468. borderAttribute : TLONG;
  469. saveFlag : TWORD;
  470. secondarySaveFlag : TWORD;
  471. directFlag : TLONG;
  472. headerAttribute : TLONG;
  473. portalLine : TLONG;
  474. portalColumn : TLONG;
  475. portalHeight : TLONG;
  476. portalWidth : TLONG;
  477. virtualLine : TLONG;
  478. virtualColumn : TLONG;
  479. cursorLine : TLONG;
  480. cursorColumn : TLONG;
  481. firstUpdateFlag : TLONG;
  482. headerText : PBYTE;
  483. headerText2 : PBYTE;
  484. virtualScreen : PBYTE;
  485. saveScreen : PBYTE;
  486. screenID : PScreenStruct;
  487. nutInfo : PNUTInfo_;
  488. sequenceNumber : TLONG;
  489. reserved1 : TLONG;
  490. mtflags : TLONG;
  491. borderPalette : TLONG;
  492. showScrollBars : TLONG;
  493. lastLine : TLONG;
  494. longestLineLen : TLONG;
  495. verticalScroll : TLONG;
  496. horizontalScroll : TLONG;
  497. oldVertical : TLONG;
  498. oldHorizontal : TLONG;
  499. deHighlightFunction : procedure (para1:PNUTInfo_; para2:PPCB_);cdecl;
  500. reHighlightFunction : procedure (para1:PNUTInfo_; para2:PPCB_); cdecl;
  501. reportPortalUpdate : procedure (para1:PPCB_; para2:PNUTInfo_; updateType:TLONG); cdecl;
  502. end;
  503. TPCB = TPCB_;
  504. PPCB = ^TPCB;
  505. { Topmost line of frame on physical screen }
  506. { Leftmost column of frame on physical screen }
  507. { Height of frame on physical screen }
  508. { Width of frame on physical screen }
  509. { Height of virtual screen }
  510. { Width of virtual screen }
  511. { Is the cursor on or off (1 or 0) }
  512. { Type of border to use }
  513. { Attribute to use with border }
  514. { TRUE = save old screen }
  515. { TRUE = no virtual screen }
  516. { Attribute of header text }
  517. { Pointer to header text }
  518. { Pointer to the help text, always assumed to }
  519. { be non NULL (when empty points to a '/0' BYTE }
  520. PHS_ = ^THS_;
  521. THS_ = record
  522. nextScreen : TLONG;
  523. previousScreen : TLONG;
  524. frameLine : TLONG;
  525. frameColumn : TLONG;
  526. frameHeight : TLONG;
  527. frameWidth : TLONG;
  528. virtualHeight : TLONG;
  529. virtualWidth : TLONG;
  530. cursorState : TLONG;
  531. borderType : TLONG;
  532. borderAttribute : TLONG;
  533. saveFlag : TLONG;
  534. directFlag : TLONG;
  535. headerAttribute : TLONG;
  536. headerText : PBYTE;
  537. text : PBYTE;
  538. end;
  539. THELP_SCREEN = THS_;
  540. PHELP_SCREEN = ^THELP_SCREEN;
  541. PLIST_STRUCT = ^TLIST_STRUCT;
  542. TLIST_STRUCT = record
  543. prev : PLIST_STRUCT;
  544. next : PLIST_STRUCT;
  545. otherInfo : pointer;
  546. marked : TLONG;
  547. flags : TWORD;
  548. maxSkew : TWORD;
  549. entryProcedure : procedure (listElement:PLIST_STRUCT; displayLine:TLONG; NUTInfoStructure:pointer);cdecl;
  550. extra : TLONG;
  551. text : array[0..0] of TBYTE;
  552. end;
  553. TLIST = TLIST_STRUCT;
  554. PLIST = ^TLIST;
  555. PPLIST= ^PLIST;
  556. PLP_ = ^TLP_;
  557. TLP_ = record
  558. head : pointer;
  559. tail : pointer;
  560. sortProc : function :longint;cdecl;
  561. freeProcedure : procedure (memoryPointer:pointer);
  562. end;
  563. TLISTPTR = TLP_;
  564. PLISTPTR = ^TLISTPTR;
  565. PMI_ = ^TMI_;
  566. TMI_ = record
  567. dynamicMessageOne : PBYTE;
  568. dynamicMessageTwo : PBYTE;
  569. dynamicMessageThree : PBYTE;
  570. dynamicMessageFour : PBYTE;
  571. dynamicMessageFive : PBYTE;
  572. dynamicMessageSix : PBYTE;
  573. dynamicMessageSeven : PBYTE;
  574. dynamicMessageEight : PBYTE;
  575. dynamicMessageNine : PBYTE;
  576. dynamicMessageTen : PBYTE;
  577. dynamicMessageEleven : PBYTE;
  578. dynamicMessageTwelve : PBYTE;
  579. dynamicMessageThirteen : PBYTE;
  580. dynamicMessageFourteen : PBYTE;
  581. messageCount : TLONG;
  582. programMesgTable : ^PBYTE;
  583. end;
  584. TMessageInfo = TMI_;
  585. PMessageInfo = ^TMessageInfo;
  586. PINT_ = ^TINT_;
  587. TINT_ = record
  588. interruptProc : procedure (handle:pointer);cdecl;
  589. key : TLONG;
  590. end;
  591. TINTERRUPT = TINT_;
  592. PINTERRUPT = ^TINTERRUPT;
  593. PMP_ = ^TMP_;
  594. TMP_ = record
  595. listAction : function (option:longint; parameter:pointer):longint;cdecl;
  596. parameter : pointer;
  597. end;
  598. TMENU_PARAMETER = TMP_;
  599. PMENU_PARAMETER = ^TMENU_PARAMETER;
  600. { environment structure }
  601. { always leave the following fields at the end of the struct. They
  602. should never be referenced directly by an application }
  603. TNUTInfo_ = record
  604. portal : array[0..(MAXPORTALS)-1] of PPCB;
  605. currentPortal : TLONG;
  606. headerHeight : TLONG;
  607. waitFlag : TLONG;
  608. listStack : array[0..(MAXLISTS)-1] of TLISTPTR;
  609. saveStack : array[0..(SAVELISTS)-1] of TLISTPTR;
  610. nextAvailList : TLONG;
  611. head : PLIST;
  612. tail : PLIST;
  613. defaultCompareFunction : function (el1:PLIST; el2:PLIST):longint;cdecl;
  614. freeProcedure : procedure (memoryPointer:pointer);
  615. interruptTable : array[0..(MAXFUNCTIONS)-1] of procedure ;
  616. functionKeyStatus : array[0..(MAXACTIONS)-1] of TLONG;
  617. messages : TMessageInfo;
  618. helpContextStack : array[0..(MAXHELP)-1] of TLONG;
  619. currentPreHelpMessage : TLONG;
  620. freeHelpSlot : longint;
  621. redisplayFormFlag : TLONG;
  622. preHelpPortal : TLONG;
  623. helpActive : smallint;
  624. errorDisplayActive : smallint;
  625. helpPortal : TLONG;
  626. waitPortal : TLONG;
  627. errorPortal : TLONG;
  628. resourceTag : pointer;
  629. screenID : pointer;
  630. helpScreens : PBYTE;
  631. helpOffset : longint;
  632. helpHelp : TLONG;
  633. allocChain : pointer;
  634. version : TLONG;
  635. reserved : array[0..9] of TLONG;
  636. moduleHandle : TLONG;
  637. customData : pointer;
  638. customDataRelease : procedure (theData:pointer; thisStructure:PNUTInfo_); cdecl;
  639. displayErrorLabel : TLONG;
  640. markBuffer : PBYTE;
  641. markBufferLength : TLONG;
  642. editBuffer : PBYTE;
  643. editBufferLength : TLONG;
  644. staticFlag : TLONG;
  645. processID : TLONG;
  646. mtflags : TLONG;
  647. saveCurrentPortal : TLONG;
  648. palette : TLONG;
  649. nutDataHandle : pointer;
  650. next : PNUTInfo_;
  651. prev : PNUTInfo_;
  652. listSortFunction : procedure (head:PLIST; tail:PLIST; thisStructure:PNUTInfo_); cdecl;
  653. compatibilityLevel : TLONG;
  654. end;
  655. TNUTInfo = TNUTInfo_;
  656. PNUTInfo = ^TNUTInfo;
  657. PPNUTInfo= ^PNUTInfo;
  658. { menu header message number }
  659. { menu center line }
  660. { menu center column }
  661. { len of longest menu option }
  662. { menu action routine }
  663. { list head for menu list }
  664. PMFC_ = ^TMFC_;
  665. TMFC_ = record
  666. headernum : TLONG;
  667. centerLine : TLONG;
  668. centerColumn : TLONG;
  669. maxoptlen : TLONG;
  670. action : function (option:longint; parameter:pointer):longint;cdecl;
  671. arg1 : TLONG;
  672. arg2 : TLONG;
  673. arg3 : TLONG;
  674. arg4 : TLONG;
  675. arg5 : TLONG;
  676. arg6 : TLONG;
  677. menuhead : TLISTPTR;
  678. nutInfo : PNUTInfo;
  679. end;
  680. TMFCONTROL = TMFC_;
  681. PMFCONTROL = ^TMFCONTROL;
  682. { list element that owns the field }
  683. { Control flags }
  684. { Line where field is located }
  685. { Column where field is located }
  686. { Maximum width of field }
  687. { Display attribute for field }
  688. { Keys that will activate the field }
  689. { Routine called when field selected }
  690. { Routine to verify Input }
  691. { Data & Xtra field release routine }
  692. { Pointer to data }
  693. { Additional control info }
  694. { help context for this field }
  695. { Pointer to field above }
  696. { Pointer to field below }
  697. { Pointer to field to left }
  698. { Pointer to field to right }
  699. { Pointer to previous field }
  700. { Pointer to next field }
  701. { if this value is set, this routine will be called upon
  702. entry to each field }
  703. { this allows the user to have any sort of custom data that
  704. he wants attached to the field. }
  705. { and this lets him release it. Note that these parameters
  706. match NWSFree which allows the use of NWSAlloc for
  707. this data (a further guarantee that the memory will be freed }
  708. { handle to keep track of who owns the field }
  709. Pfielddef = ^Tfielddef;
  710. Tfielddef = record
  711. element : PLIST;
  712. fieldFlags : TLONG;
  713. fieldLine : TLONG;
  714. fieldColumn : TLONG;
  715. fieldWidth : TLONG;
  716. fieldAttribute : TLONG;
  717. fieldActivateKeys : longint;
  718. fieldFormat : procedure (field:Pfielddef; text:PBYTE; buffLen:TLONG);cdecl;
  719. fieldControl : function (field:Pfielddef; selectKey:longint; fieldChanged:Plongint; handle:PNUTInfo):TLONG;
  720. fieldVerify : function (field:Pfielddef; data:PBYTE; handle:PNUTInfo):longint;
  721. fieldRelease : procedure (para1:Pfielddef);
  722. fieldData : PBYTE;
  723. fieldXtra : PBYTE;
  724. fieldHelp : longint;
  725. fieldAbove : Pfielddef;
  726. fieldBelow : Pfielddef;
  727. fieldLeft : Pfielddef;
  728. fieldRight : Pfielddef;
  729. fieldPrev : Pfielddef;
  730. fieldNext : Pfielddef;
  731. fieldEntry : procedure (intoField:Pfielddef; fieldData:pointer; handle:PNUTInfo);
  732. customData : pointer;
  733. customDataRelease : procedure (fieldCustomData:pointer; handle:PNUTInfo);
  734. nutInfo : PNUTInfo;
  735. end;
  736. TFIELD = Tfielddef;
  737. PFIELD = ^TFIELD;
  738. { Structures used for DisplayErrorCondition() }
  739. PPCERR_ = ^TPCERR_;
  740. TPCERR_ = record
  741. ccodeReturned : longint;
  742. errorMessageNumber : longint;
  743. end;
  744. TPROCERROR = TPCERR_;
  745. PPROCERROR = ^TPROCERROR;
  746. PNA_ = ^TNA_;
  747. TNA_ = record
  748. address : pointer;
  749. next : pointer;
  750. end;
  751. TNUT_ALLOC = TNA_;
  752. PNUT_ALLOC = ^TNUT_ALLOC;
  753. { C++ extern C conditionnal removed }
  754. { CLIB screen ID }
  755. { OS ResourceTagStructure }
  756. function NWSInitializeNut(utility:TLONG; version:TLONG; headerType:TLONG; compatibilityLevel:TLONG; messageTable:PPBYTE;
  757. helpScreens:PBYTE; screenID:longint; resourceTag:TLONG; handle:PPNUTInfo):longint;cdecl;external External_library name 'NWSInitializeNut';
  758. procedure NWSScreenSize(maxLines:PLONG; maxColumns:PLONG);cdecl;external External_library name 'NWSScreenSize';
  759. procedure NWSShowPortalLine(line:TLONG; column:TLONG; text:PBYTE; length:TLONG; portal:PPCB);cdecl;external External_library name 'NWSShowPortalLine';
  760. procedure NWSShowPortalLineAttribute(line:TLONG; column:TLONG; text:PBYTE; attribute:TLONG; length:TLONG;
  761. portal:PPCB);cdecl;external External_library name 'NWSShowPortalLineAttribute';
  762. procedure NWSScrollPortalZone(line:TLONG; column:TLONG; height:TLONG; width:TLONG; attribute:TLONG;
  763. count:TLONG; direction:TLONG; portal:PPCB);cdecl;external External_library name 'NWSScrollPortalZone';
  764. procedure NWSFillPortalZone(line:TLONG; column:TLONG; height:TLONG; width:TLONG; fillCharacter:TLONG;
  765. fillAttribute:TLONG; portal:PPCB);cdecl;external External_library name 'NWSFillPortalZone';
  766. procedure NWSFillPortalZoneAttribute(line:TLONG; column:TLONG; height:TLONG; width:TLONG; attribute:TLONG;
  767. portal:PPCB);cdecl;external External_library name 'NWSFillPortalZoneAttribute';
  768. function NWSGetMessage(message:TLONG; messages:PMessageInfo):PBYTE;cdecl;external External_library name 'NWSGetMessage';
  769. procedure NWSSetDynamicMessage(message:TLONG; text:PBYTE; messages:PMessageInfo);cdecl;external External_library name 'NWSSetDynamicMessage';
  770. function NWSCreatePortal(line:TLONG; column:TLONG; frameHeight:TLONG; frameWidth:TLONG; virtualHeight:TLONG;
  771. virtualWidth:TLONG; saveFlag:TLONG; headerText:PBYTE; headerAttribute:TLONG; borderType:TLONG;
  772. borderAttribute:TLONG; cursorFlag:TLONG; directFlag:TLONG; handle:PNUTInfo):TLONG;cdecl;external External_library name 'NWSCreatePortal';
  773. procedure NWSDestroyPortal(portalNumber:TLONG; handle:PNUTInfo);cdecl;external External_library name 'NWSDestroyPortal';
  774. procedure NWSPositionPortalCursor(line:TLONG; column:TLONG; portal:PPCB);cdecl;external External_library name 'NWSPositionPortalCursor';
  775. procedure NWSEnablePortalCursor(portal:PPCB);cdecl;external External_library name 'NWSEnablePortalCursor';
  776. procedure NWSDisablePortalCursor(portal:PPCB);cdecl;external External_library name 'NWSDisablePortalCursor';
  777. procedure NWSDeselectPortal(handle:PNUTInfo);cdecl;external External_library name 'NWSDeselectPortal';
  778. procedure NWSSelectPortal(portalNumber:TLONG; handle:PNUTInfo);cdecl;external External_library name 'NWSSelectPortal';
  779. function NWSComputePortalPosition(centerLine:TLONG; centerColumn:TLONG; height:TLONG; width:TLONG; line:PLONG;
  780. column:PLONG; handle:PNUTInfo):longint;cdecl;external External_library name 'NWSComputePortalPosition';
  781. procedure NWSClearPortal(portal:PPCB);cdecl;external External_library name 'NWSClearPortal';
  782. type TFreeRoutine = procedure (memoryPointer:pointer); cdecl;
  783. procedure NWSInitList(handle:PNUTInfo; freeRoutine:TFreeRoutine);cdecl;external External_library name 'NWSInitList';
  784. function NWSPushList(handle:PNUTInfo):TLONG;cdecl;external External_library name 'NWSPushList';
  785. function NWSPopList(handleNWS:PNUTInfo):TLONG;cdecl;external External_library name 'NWSPopList';
  786. function NWSSaveList(listIndex:TLONG; handle:PNUTInfo):TLONG;cdecl;external External_library name 'NWSSaveList';
  787. function NWSRestoreList(listIndex:TLONG; handle:PNUTInfo):TLONG;cdecl;external External_library name 'NWSRestoreList';
  788. procedure NWSDestroyList(handle:PNUTInfo);cdecl;external External_library name 'NWSDestroyList';
  789. procedure NWSDestroyMenu(handle:PNUTInfo);cdecl;external External_library name 'NWSDestroyMenu';
  790. procedure NWSDestroyForm(handle:PNUTInfo);cdecl;external External_library name 'NWSDestroyForm';
  791. function NWSAppendToList(text:PBYTE; otherInfo:pointer; handle:PNUTInfo):PLIST;cdecl;external External_library name 'NWSAppendToList';
  792. function NWSDeleteFromList(el:PLIST; handle:PNUTInfo):PLIST;cdecl;external External_library name 'NWSDeleteFromList';
  793. function NWSInsertInList(text:PBYTE; otherInfo:PBYTE; atElement:PLIST; handle:PNUTInfo):PLIST;cdecl;external External_library name 'NWSInsertInList';
  794. function NWSGetListElementText(element:PLIST):PBYTE;cdecl;external External_library name 'NWSGetListElementText';
  795. function NWSGetListHead(handle:PNUTInfo):PLIST;cdecl;external External_library name 'NWSGetListHead';
  796. function NWSGetListTail(handle:PNUTInfo):PLIST;cdecl;external External_library name 'NWSGetListTail';
  797. procedure NWSUnmarkList(handle:PNUTInfo);cdecl;external External_library name 'NWSUnmarkList';
  798. procedure NWSSetList(listPtr:PLISTPTR; handle:PNUTInfo);cdecl;external External_library name 'NWSSetList';
  799. procedure NWSGetList(listPtr:PLISTPTR; handle:PNUTInfo);cdecl;external External_library name 'NWSGetList';
  800. function NWSIsAnyMarked(handle:PNUTInfo):TLONG;cdecl;external External_library name 'NWSIsAnyMarked';
  801. procedure NWSPushMarks(handle:PNUTInfo);cdecl;external External_library name 'NWSPushMarks';
  802. procedure NWSPopMarks(handle:PNUTInfo);cdecl;external External_library name 'NWSPopMarks';
  803. procedure NWSSortList(handle:PNUTInfo);cdecl;external External_library name 'NWSSortList';
  804. procedure NWSInitMenu(handle:PNUTInfo);cdecl;external External_library name 'NWSInitMenu';
  805. procedure NWSInitForm(handle:PNUTInfo);cdecl;external External_library name 'NWSInitForm';
  806. function NWSGetSortCharacter(charIndex:TLONG):TLONG;cdecl;external External_library name 'NWSGetSortCharacter';
  807. function NWSGetLineDrawCharacter(charIndex:TLONG):TLONG;cdecl;external External_library name 'NWSGetLineDrawCharacter';
  808. function NWSStrcat(_string:PBYTE; newStuff:PBYTE):TLONG;cdecl;external External_library name 'NWSStrcat';
  809. procedure NWSMemmove(dest:pointer; source:pointer; len:longint);cdecl;external External_library name 'NWSMemmove';
  810. function NWSToupper(ch:TBYTE):TBYTE;cdecl;external External_library name 'NWSToupper';
  811. function NWSIsdigit(ch:TBYTE):longint;cdecl;external External_library name 'NWSIsdigit';
  812. function NWSIsxdigit(ch:TBYTE):longint;cdecl;external External_library name 'NWSIsxdigit';
  813. function NWSAsciiToInt(data:PBYTE):longint;cdecl;external External_library name 'NWSAsciiToInt';
  814. function NWSAsciiToLONG(data:PBYTE):TLONG;cdecl;external External_library name 'NWSAsciiToLONG';
  815. function NWSAsciiHexToInt(data:PBYTE):longint;cdecl;external External_library name 'NWSAsciiHexToInt';
  816. procedure NWSWaitForEscape(handle:PNUTInfo);cdecl;external External_library name 'NWSWaitForEscape';
  817. function NWSWaitForEscapeOrCancel(handle:PNUTInfo):longint;cdecl;external External_library name 'NWSWaitForEscapeOrCancel';
  818. procedure NWSGetKey(_type:PLONG; value:PBYTE; handle:PNUTInfo);cdecl;external External_library name 'NWSGetKey';
  819. function NWSKeyStatus(handle:PNUTInfo):TLONG;cdecl;external External_library name 'NWSKeyStatus';
  820. function NWSUngetKey(_type:TLONG; value:TLONG; handle:PNUTInfo):TLONG;cdecl;external External_library name 'NWSUngetKey';
  821. procedure NWSEnableFunctionKey(key:TLONG; handle:PNUTInfo);cdecl;external External_library name 'NWSEnableFunctionKey';
  822. procedure NWSDisableFunctionKey(key:TLONG; handle:PNUTInfo);cdecl;external External_library name 'NWSDisableFunctionKey';
  823. procedure NWSDisableInterruptKey(key:TLONG; handle:PNUTInfo);cdecl;external External_library name 'NWSDisableInterruptKey';
  824. type TInterruptProc = procedure (handle:pointer); cdecl;
  825. procedure NWSEnableInterruptKey(key:TLONG; interruptProc:TInterruptProc; handle:PNUTInfo);cdecl;external External_library name 'NWSEnableInterruptKey';
  826. procedure NWSSaveFunctionKeyList(keyList:PBYTE; handle:PNUTInfo);cdecl;external External_library name 'NWSSaveFunctionKeyList';
  827. procedure NWSEnableFunctionKeyList(keyList:PBYTE; handle:PNUTInfo);cdecl;external External_library name 'NWSEnableFunctionKeyList';
  828. procedure NWSSaveInterruptList(interruptList:PINTERRUPT; handle:PNUTInfo);cdecl;external External_library name 'NWSSaveInterruptList';
  829. procedure NWSEnableInterruptList(interruptList:PINTERRUPT; handle:PNUTInfo);cdecl;external External_library name 'NWSEnableInterruptList';
  830. procedure NWSDisableAllInterruptKeys(handle:PNUTInfo);cdecl;external External_library name 'NWSDisableAllInterruptKeys';
  831. procedure NWSDisableAllFunctionKeys(handle:PNUTInfo);cdecl;external External_library name 'NWSDisableAllFunctionKeys';
  832. procedure NWSEnableAllFunctionKeys(handle:PNUTInfo);cdecl;external External_library name 'NWSEnableAllFunctionKeys';
  833. function NWSDisplayTextInPortal(line:TLONG; indentLevel:TLONG; text:PBYTE; attribute:TLONG; portal:PPCB):longint;cdecl;external External_library name 'NWSDisplayTextInPortal';
  834. function NWSDisplayInformation(header:TLONG; pauseFlag:TLONG; centerLine:TLONG; centerColumn:TLONG; palette:TLONG;
  835. attribute:TLONG; displayText:PBYTE; handle:PNUTInfo):TLONG;cdecl;external External_library name 'NWSDisplayInformation';
  836. procedure NWSStartWait(centerLine:TLONG; centerColumn:TLONG; handle:PNUTInfo);cdecl;external External_library name 'NWSStartWait';
  837. procedure NWSEndWait(handle:PNUTInfo);cdecl;external External_library name 'NWSEndWait';
  838. function NWSAlert(centerLine:TLONG; centerColumn:TLONG; handle:PNUTInfo; message:TLONG; args:array of const):TLONG;cdecl;external External_library name 'NWSAlert';
  839. function NWSAlert(centerLine:TLONG; centerColumn:TLONG; handle:PNUTInfo; message:TLONG):TLONG;cdecl;external External_library name 'NWSAlert';
  840. function NWSAlertWithHelp(centerLine:TLONG; centerColumn:TLONG; handle:PNUTInfo; message:TLONG; helpContext:TLONG;
  841. args:array of const):TLONG;cdecl;external External_library name 'NWSAlertWithHelp';
  842. function NWSAlertWithHelp(centerLine:TLONG; centerColumn:TLONG; handle:PNUTInfo; message:TLONG; helpContext:TLONG):TLONG;cdecl;external External_library name 'NWSAlertWithHelp';
  843. function NWSTrace(handle:PNUTInfo; message:PBYTE; args:array of const):TLONG;cdecl;external External_library name 'NWSTrace';
  844. function NWSTrace(handle:PNUTInfo; message:PBYTE):TLONG;cdecl;external External_library name 'NWSTrace';
  845. procedure NWSDisplayErrorText(message:TLONG; severity:TLONG; handle:PNUTInfo; args:array of const);cdecl;external External_library name 'NWSDisplayErrorText';
  846. procedure NWSDisplayErrorText(message:TLONG; severity:TLONG; handle:PNUTInfo);cdecl;external External_library name 'NWSDisplayErrorText';
  847. procedure NWSDisplayErrorCondition(procedureName:PBYTE; errorCode:longint; severity:TLONG; errorList:PPROCERROR; handle:PNUTInfo;
  848. args:array of const);cdecl;external External_library name 'NWSDisplayErrorCondition';
  849. procedure NWSDisplayErrorCondition(procedureName:PBYTE; errorCode:longint; severity:TLONG; errorList:PPROCERROR; handle:PNUTInfo);cdecl;external External_library name 'NWSDisplayErrorCondition';
  850. function NWSAppendToMenu(message:TLONG; option:TLONG; handle:PNUTInfo):PLIST;cdecl;external External_library name 'NWSAppendToMenu';
  851. type TActionFunc = function (option:longint; parameter:pointer) : longint; cdecl;
  852. function NWSMenu(header:TLONG; centerLine:TLONG; centerColumn:TLONG; defaultElement:PLIST; action:TActionFunc;
  853. handle:PNUTInfo; actionParameter:pointer):longint;cdecl;external External_library name 'NWSMenu';
  854. function NWSConfirm(header:TLONG; centerLine:TLONG; centerColumn:TLONG; defaultChoice:TLONG; action:TActionFunc;
  855. handle:PNUTInfo; actionParameter:pointer):longint;cdecl;external External_library name 'NWSConfirm';
  856. function NWSPushHelpContext(helpContext:TLONG; handle:PNUTInfo):longint;cdecl;external External_library name 'NWSPushHelpContext';
  857. function NWSPopHelpContext(handle:PNUTInfo):longint;cdecl;external External_library name 'NWSPopHelpContext';
  858. type TFormatFunc=function (element:PLIST; skew:TLONG; displayLine:PBYTE; width:TLONG):TLONG; cdecl;
  859. TNWSListActionFunc=function (keyPressed:TLONG; elementSelected:PPLIST; itemLineNumber:PLONG; actionParameter:pointer):longint; cdecl;
  860. function NWSList(header:TLONG; centerLine:TLONG; centerColumn:TLONG; height:TLONG; width:TLONG;
  861. validKeyFlags:TLONG; element:PPLIST; handle:PNUTInfo; format:TFormatFunc; action:TNWSListActionFunc;
  862. actionParameter:pointer):TLONG;cdecl;external External_library name 'NWSList';
  863. type TInsertFunc = function (text:PBYTE; otherInfo:Ppointer; parameters:pointer):longint; cdecl;
  864. TFreeProcedure=function (otherInfo:pointer):longint; cdecl;
  865. function NWSInsertInPortalList(currentElement:PPLIST; currentLine:PLONG; InsertProcedure:TInsertFunc; FreeProcedure:TFreeProcedure; handle:PNUTInfo;
  866. parameters:pointer):longint;cdecl;external External_library name 'NWSInsertInPortalList';
  867. type TModifyProcedure=function (text:PBYTE; parameters:pointer):longint; cdecl;
  868. function NWSModifyInPortalList(currentElement:PPLIST; currentLine:PLONG; ModifyProcedure:TModifyProcedure; handle:PNUTInfo; parameters:pointer):longint;cdecl;external External_library name 'NWSModifyInPortalList';
  869. type TDeleteFunc = function (el:PLIST; handle:PNUTInfo; parameters:pointer):PLIST; cdecl;
  870. function NWSDeleteFromPortalList(currentElement:PPLIST; currentLine:PLONG; DeleteProcedure:TDeleteFunc; deleteCurrentHeader:TLONG; deleteMarkedHeader:TLONG;
  871. handle:PNUTInfo; parameters:pointer):longint;cdecl;external External_library name 'NWSDeleteFromPortalList';
  872. type TNWSEditInsertFunc=function (buffer:PBYTE; maxLen:TLONG; parameters:pointer):longint; cdecl;
  873. TNWSEditActionFunc=function (action:TLONG; buffer:PBYTE; parameters:pointer):longint; cdecl;
  874. function NWSEditString(centerLine:TLONG; centerColumn:TLONG; editHeight:TLONG; editWidth:TLONG; header:TLONG;
  875. prompt:TLONG; buf:PBYTE; maxLen:TLONG; _type:TLONG; handle:PNUTInfo;
  876. insertProc:TNWSEditInsertFunc; actionProc:TNWSEditActionFunc; parameters:pointer):longint;cdecl;external External_library name 'NWSEditString';
  877. function NWSAppendIntegerField(line:TLONG; column:TLONG; fflag:TLONG; data:Plongint; minimum:longint;
  878. maximum:longint; help:TLONG; handle:PNUTInfo):PFIELD;cdecl;external External_library name 'NWSAppendIntegerField';
  879. function NWSAppendUnsignedIntegerField(line:TLONG; column:TLONG; fflag:TLONG; data:PLONG; minimum:TLONG;
  880. maximum:TLONG; help:TLONG; handle:PNUTInfo):PFIELD;cdecl;external External_library name 'NWSAppendUnsignedIntegerField';
  881. function NWSAppendHexField(line:TLONG; column:TLONG; fflag:TLONG; data:Plongint; minimum:longint;
  882. maximum:longint; help:TLONG; handle:PNUTInfo):PFIELD;cdecl;external External_library name 'NWSAppendHexField';
  883. procedure NWSDisplayPreHelp(line:TLONG; column:TLONG; message:TLONG; handle:PNUTInfo);cdecl;external External_library name 'NWSDisplayPreHelp';
  884. procedure NWSRemovePreHelp(handle:PNUTInfo);cdecl;external External_library name 'NWSRemovePreHelp';
  885. function NWSGetADisk(volName:PBYTE; prompt:PBYTE; handle:PNUTInfo):TLONG;cdecl;external External_library name 'NWSGetADisk';
  886. procedure NWSInitListPtr(listPtr:PLISTPTR);cdecl;external External_library name 'NWSInitListPtr';
  887. function NWSEditForm(headernum:TLONG; line:TLONG; col:TLONG; portalHeight:TLONG; portalWidth:TLONG;
  888. virtualHeight:TLONG; virtualWidth:TLONG; ESCverify:TLONG; forceverify:TLONG; confirmMessage:TLONG;
  889. handle:PNUTInfo):longint;cdecl;external External_library name 'NWSEditForm';
  890. function NWSEditPortalFormField(header:TLONG; cline:TLONG; ccol:TLONG; formHeight:TLONG; formWidth:TLONG;
  891. controlFlags:TLONG; formHelp:TLONG; confirmMessage:TLONG; startField:PFIELD; handle:PNUTInfo):longint;cdecl;external External_library name 'NWSEditPortalFormField';
  892. function NWSEditPortalForm(header:TLONG; centerLine:TLONG; centerColumn:TLONG; formHeight:TLONG; formWidth:TLONG;
  893. controlFlags:TLONG; formHelp:TLONG; confirmMessage:TLONG; handle:PNUTInfo):longint;cdecl;external External_library name 'NWSEditPortalForm';
  894. type TfFormat = procedure (field:Pfielddef; text:PBYTE; buffLen:TLONG); cdecl;
  895. TfControl = function (field:Pfielddef; selectKey:longint; fieldChanged:Plongint; handle:PNUTInfo):TLONG; cdecl;
  896. TfVerify = function (field:Pfielddef; data:PBYTE; handle:PNUTInfo):longint; cdecl;
  897. TfRelease = procedure (field:Pfielddef); cdecl;
  898. { Data & Xtra field release routine }
  899. function NWSAppendToForm(
  900. fline:TLONG;
  901. fcol:TLONG;
  902. fwidth:TLONG;
  903. fattr:TLONG;
  904. fFormat:TfFormat;
  905. fControl:TfControl;
  906. fVerify:TfVerify;
  907. fRelease:TfRelease;
  908. fData:PBYTE;
  909. fXtra:PBYTE;
  910. fflags:TLONG;
  911. fActivateKeys:TLONG;
  912. fhelp:TLONG;
  913. handle:PNUTInfo):PFIELD;cdecl;external External_library name 'NWSAppendToForm';
  914. function NWSAppendPromptField(line:TLONG; column:TLONG; promptnum:TLONG; handle:PNUTInfo):PFIELD;cdecl;external External_library name 'NWSAppendPromptField';
  915. function NWSAppendCommentField(line:TLONG; column:TLONG; prompt:PBYTE; handle:PNUTInfo):PFIELD;cdecl;external External_library name 'NWSAppendCommentField';
  916. function NWSAppendStringField(line:TLONG; column:TLONG; width:TLONG; fflag:TLONG; data:PBYTE;
  917. cset:PBYTE; help:TLONG; handle:PNUTInfo):PFIELD;cdecl;external External_library name 'NWSAppendStringField';
  918. function NWSAppendBoolField(line:TLONG; column:TLONG; fflag:TLONG; data:PBYTE; help:TLONG;
  919. handle:PNUTInfo):PFIELD;cdecl;external External_library name 'NWSAppendBoolField';
  920. function NWSAppendGenericBoolField(line:TLONG; column:TLONG; fflag:TLONG; data:PBYTE; help:TLONG;
  921. yesString:PBYTE; noString:PBYTE; handle:PNUTInfo):PFIELD;cdecl;external External_library name 'NWSAppendGenericBoolField';
  922. type TSpotActionFunc = function (fp:PFIELD; selectKey:longint; changedField:Plongint; handle:PNUTInfo):TLONG; cdecl;
  923. function NWSAppendHotSpotField(line:TLONG; column:TLONG; fflag:TLONG;
  924. displayString:PBYTE;
  925. SpotAction:TSpotActionFunc;
  926. handle:PNUTInfo):PFIELD;cdecl;external External_library name 'NWSAppendHotSpotField';
  927. function NWSInitMenuField(headermsg:TLONG; cLine:TLONG; cCol:TLONG;
  928. action:TActionFunc ;
  929. nutInfo:PNUTInfo;
  930. args:array of const):PMFCONTROL;cdecl;external External_library name 'NWSInitMenuField';
  931. function NWSInitMenuField(headermsg:TLONG; cLine:TLONG; cCol:TLONG;
  932. action:TActionFunc; nutInfo:PNUTInfo):PMFCONTROL;cdecl;external External_library name 'NWSInitMenuField';
  933. function NWSAppendToMenuField(m:PMFCONTROL; optiontext:TLONG; option:longint; nutInfo:PNUTInfo):longint;cdecl;external External_library name 'NWSAppendToMenuField';
  934. function NWSAppendMenuField(line:TLONG; column:TLONG; fflag:TLONG; data:Plongint; m:PMFCONTROL;
  935. help:TLONG; nutInfo:PNUTInfo):PFIELD;cdecl;external External_library name 'NWSAppendMenuField';
  936. { length of document }
  937. function NWSEditText(centerLine:TLONG; centerColumn:TLONG; height:TLONG; width:TLONG; headerNumber:TLONG;
  938. textBuffer:PBYTE; maxBufferLength:TLONG; confirmMessage:TLONG; forceConfirm:TLONG; handle:PNUTInfo):longint;cdecl;external External_library name 'NWSEditText';
  939. function NWSViewText(centerLine:TLONG; centerColumn:TLONG; height:TLONG; width:TLONG; headerNumber:TLONG;
  940. textBuffer:PBYTE; maxBufferLength:TLONG; handle:PNUTInfo):longint;cdecl;external External_library name 'NWSViewText';
  941. procedure NWSDisplayHelpScreen(offset:TLONG; handle:PNUTInfo);cdecl;external External_library name 'NWSDisplayHelpScreen';
  942. function NWSAlloc(numberOfBytes:TLONG; handle:PNUTInfo):pointer;cdecl;external External_library name 'NWSAlloc';
  943. procedure NWSFree(address:pointer; handle:PNUTInfo);cdecl;external External_library name 'NWSFree';
  944. function NWSDisplayTextJustifiedInPortal(justify:TLONG; line:TLONG; column:TLONG; textWidth:TLONG; text:PBYTE;
  945. attribute:TLONG; portal:PPCB):longint;cdecl;external External_library name 'NWSDisplayTextJustifiedInPortal';
  946. function NWSDisplayInformationInPortal(header:TLONG; portalJustifyLine:TLONG; portalJustifyColumn:TLONG; portalJustifyType:TLONG; portalPalette:TLONG;
  947. portalBorderType:TLONG; portalMaxWidth:TLONG; portalMaxHeight:TLONG; portalMinWidth:TLONG; portalMinHeight:TLONG;
  948. textLRJustifyType:TLONG; textLRIndent:TLONG; textTBJustifyType:TLONG; textTBIndent:TLONG; textAttribute:TLONG;
  949. textMinimizeStyle:TLONG; text:PBYTE; handle:PNUTInfo):longint;cdecl;external External_library name 'NWSDisplayInformationInPortal';
  950. procedure NWSRestoreNut(handle:PNUTInfo);cdecl;external External_library name 'NWSRestoreNut';
  951. procedure NWSDrawPortalBorder(portal:PPCB);cdecl;external External_library name 'NWSDrawPortalBorder';
  952. procedure NWSUpdatePortal(portal:PPCB);cdecl;external External_library name 'NWSUpdatePortal';
  953. type TSSFEntryProc = procedure (para1:PFIELD; para2:pointer; para3:PNUTInfo); cdecl;
  954. TSSFCustomDataReleaseProc = procedure (para1:pointer; para2:PNUTInfo); cdecl;
  955. TSSFFormat=procedure (para1:PFIELD; text:PBYTE; para3:TLONG); cdecl;
  956. TSSFControlFunc = function (para1:PFIELD; para2:longint; para3:Plongint; para4:PNUTInfo):TLONG; cdecl;
  957. TSSFVerifyFunc = function (para1:PFIELD; para2:PBYTE; para3:PNUTInfo):longint; cdecl;
  958. TSSFReleaseProc = procedure (para1:PFIELD); cdecl;
  959. procedure NWSSetFieldFunctionPtr(fp:PFIELD;
  960. Format : TSSFFormat;
  961. Control: TSSFControlFunc;
  962. Verify : TSSFVerifyFunc;
  963. Release: TSSFReleaseProc;
  964. Entry : TSSFEntryProc;
  965. customDataRelease
  966. : TSSFCustomDataReleaseProc);cdecl;external External_library name 'NWSSetFieldFunctionPtr';
  967. procedure NWSGetFieldFunctionPtr(
  968. fp:PFIELD;
  969. var Format : TSSFFormat;
  970. var Control : TSSFControlFunc;
  971. var Verify : TSSFVerifyFunc;
  972. var Release : TSSFReleaseProc;
  973. var Entry : TSSFEntryProc;
  974. var customDataRelease:TSSFCustomDataReleaseProc);cdecl;external External_library name 'NWSGetFieldFunctionPtr';
  975. type TCompareFunc = function (el1:PLIST; el2:PLIST):longint; cdecl;
  976. procedure NWSSetDefaultCompare(handle:PNUTInfo;
  977. defaultCompareFunction:TCompareFunc);cdecl;external External_library name 'NWSSetDefaultCompare';
  978. procedure NWSGetDefaultCompare(handle:PNUTInfo; var defaultCompareFunction:TCompareFunc);cdecl;external External_library name 'NWSGetDefaultCompare';
  979. type TlistSortFunction = procedure (head:PLIST; tail:PLIST; handle:PNUTInfo); cdecl;
  980. { added in version 402 }
  981. procedure NWSSetListSortFunction(handle:PNUTInfo;
  982. listSortFunction:TlistSortFunction);cdecl;external External_library name 'NWSSetListSortFunction';
  983. { added in version 402 }
  984. procedure NWSGetListSortFunction(handle:PNUTInfo;
  985. var listSortFunction:TlistSortFunction);cdecl;external External_library name 'NWSGetListSortFunction';
  986. procedure NWSSetScreenPalette(newPalette:TLONG; handle:PNUTInfo);cdecl;external External_library name 'NWSSetScreenPalette';
  987. function NWSGetScreenPalette(handle:PNUTInfo):TLONG;cdecl;external External_library name 'NWSGetScreenPalette';
  988. procedure NWSGetPCB(var _pPcb:PPCB; portalNumber:TLONG; handle:PNUTInfo);cdecl;external External_library name 'NWSGetPCB';
  989. type TentryProcedure = procedure (element:PLIST; displayLine:TLONG; handle:PNUTInfo); cdecl;
  990. procedure NWSSetListNotifyProcedure(el:PLIST;
  991. entryProcedure:TentryProcedure);cdecl;external External_library name 'NWSSetListNotifyProcedure';
  992. procedure NWSGetListNotifyProcedure(el:PLIST;
  993. var entryProcedure:TentryProcedure);cdecl;external External_library name 'NWSGetListNotifyProcedure';
  994. type TcdReleaseProc = procedure (theData:pointer; handle:PNUTInfo); cdecl;
  995. procedure NWSSetHandleCustomData(handle:PNUTInfo;
  996. customData:pointer;
  997. customDataRelease:TcdReleaseProc);cdecl;external External_library name 'NWSSetHandleCustomData';
  998. procedure NWSGetHandleCustomData(handle:PNUTInfo;
  999. customData:Ppointer;
  1000. customDataRelease:TcdReleaseProc);cdecl;external External_library name 'NWSGetHandleCustomData';
  1001. procedure NWSSetErrorLabelDisplayFlag(flag:TLONG;
  1002. handle:PNUTInfo);cdecl;external External_library name 'NWSSetErrorLabelDisplayFlag';
  1003. procedure NWSSetHelpHelp(helpIndex:TLONG;
  1004. handle:PNUTInfo);cdecl;external External_library name 'NWSSetHelpHelp';
  1005. { max length of passwordString, including NULL }
  1006. function NWSPromptForPassword(passwordHeader:TLONG; line:TLONG; column:TLONG; maxPasswordLen:TLONG; passwordString:PBYTE;
  1007. verifyEntry:TLONG; handle:PNUTInfo):TLONG;cdecl;external External_library name 'NWSPromptForPassword';
  1008. { field flags }
  1009. { ptr to field text }
  1010. { including null }
  1011. { help for field }
  1012. { force password verification }
  1013. { fill character for field }
  1014. function NWSAppendPasswordField(line:TLONG; column:TLONG; width:TLONG; fflag:TLONG; data:PBYTE;
  1015. maxDataLen:TLONG; help:TLONG; verifyEntry:TLONG; passwordPortalHeader:TLONG; maskCharacter:TLONG;
  1016. handle:PNUTInfo):PFIELD;cdecl;external External_library name 'NWSAppendPasswordField';
  1017. { field display width in form }
  1018. { field flags (NORMAL_FIELD, etc.) }
  1019. { ptr to field text }
  1020. { max len of data, allowing for null terminator }
  1021. { valid characters, if using EF_SET }
  1022. { NWSEditString flags (EF_UPPER etc.) }
  1023. function NWSAppendScrollableStringField(line:TLONG; column:TLONG; width:TLONG; fflag:TLONG; data:PBYTE;
  1024. maxLen:TLONG; cset:PBYTE; editFlags:TLONG; help:TLONG; handle:PNUTInfo):PFIELD;cdecl;external External_library name 'NWSAppendScrollableStringField';
  1025. type TSSFInsertFunc = function (_string:PBYTE; maxLen:TLONG; parameters:pointer):longint; cdecl;
  1026. procedure NWSSetScrollableFieldInsertProc(fp:PFIELD; insertProc:TSSFInsertFunc);cdecl;external External_library name 'NWSSetScrollableFieldInsertProc';
  1027. { Returns 0 for success, -1 if none selected }
  1028. { if not NULL, returns portal number }
  1029. function NWSGetCurrentPortal(nutInfo:PNUTInfo; portalNumber:PLONG; var portal:PPCB):TLONG;cdecl;external External_library name 'NWSGetCurrentPortal';
  1030. { if not NULL, returns PCB pointer }
  1031. function NWSWaitForKeyAndValue(handle:PNUTInfo;
  1032. nKeys:TLONG;
  1033. keyType:array of TLONG;
  1034. keyValue:array of TLONG):longint;cdecl;external External_library name 'NWSWaitForKeyAndValue';
  1035. procedure NWSShowLineAttribute(line:TLONG;
  1036. column:TLONG;
  1037. text:PBYTE;
  1038. attribute:TLONG;
  1039. length:TLONG;
  1040. screenID:PScreenStruct);cdecl;external External_library name 'NWSShowLineAttribute';
  1041. procedure NWSShowLine(line:TLONG; column:TLONG; text:PBYTE; length:TLONG; screenID:PScreenStruct);cdecl;external External_library name 'NWSShowLine';
  1042. procedure NWSScrollZone(line:TLONG; column:TLONG; height:TLONG; width:TLONG; attribute:TLONG;
  1043. count:TLONG; direction:TLONG; screenID:PScreenStruct);cdecl;external External_library name 'NWSScrollZone';
  1044. procedure NWSSaveZone(line:TLONG; column:TLONG; height:TLONG; width:TLONG; buffer:PBYTE;
  1045. screenID:PScreenStruct);cdecl;external External_library name 'NWSSaveZone';
  1046. procedure NWSRestoreZone(line:TLONG; column:TLONG; height:TLONG; width:TLONG; buffer:PBYTE;
  1047. screenID:PScreenStruct);cdecl;external External_library name 'NWSRestoreZone';
  1048. procedure NWSRestoreDisplay(screenID:PScreenStruct);cdecl;external External_library name 'NWSRestoreDisplay';
  1049. procedure NWSPositionCursor(line:TLONG; column:TLONG; screenID:PScreenStruct);cdecl;external External_library name 'NWSPositionCursor';
  1050. procedure NWSGetNUTVersion(majorVersion:PLONG; minorVersion:PLONG; revision:PLONG);cdecl;external External_library name 'NWSGetNUTVersion';
  1051. procedure NWSSetFormRepaintFlag(value:TLONG; handle:PNUTInfo);cdecl;external External_library name 'NWSSetFormRepaintFlag';
  1052. procedure NWSSetFormNoWrap(handle:PNUTInfo);cdecl;external External_library name 'NWSSetFormNoWrap';
  1053. function NWSViewTextWithScrollBars(centerLine:TLONG; centerColumn:TLONG; height:TLONG; width:TLONG; headerNumber:TLONG;
  1054. textBuffer:PBYTE; maxBufferLength:TLONG; scrollBarFlag:TLONG; handle:PNUTInfo):longint;cdecl;external External_library name 'NWSViewTextWithScrollBars';
  1055. { length of document }
  1056. function NWSEditTextWithScrollBars(centerLine:TLONG; centerColumn:TLONG; height:TLONG; width:TLONG; headerNumber:TLONG;
  1057. textBuffer:PBYTE; maxBufferLength:TLONG; confirmMessage:TLONG; forceConfirm:TLONG; scrollBarFlag:TLONG;
  1058. handle:PNUTInfo):longint;cdecl;external External_library name 'NWSEditTextWithScrollBars';
  1059. implementation
  1060. { was #define dname def_expr }
  1061. function F_H1 : longint;
  1062. { return type might be wrong }
  1063. begin
  1064. F_H1:=NWSGetLineDrawCharacter(0);
  1065. end;
  1066. { was #define dname def_expr }
  1067. function F_H2 : longint;
  1068. { return type might be wrong }
  1069. begin
  1070. F_H2:=NWSGetLineDrawCharacter(1);
  1071. end;
  1072. { was #define dname def_expr }
  1073. function F_V1 : longint;
  1074. { return type might be wrong }
  1075. begin
  1076. F_V1:=NWSGetLineDrawCharacter(2);
  1077. end;
  1078. { was #define dname def_expr }
  1079. function F_V2 : longint;
  1080. { return type might be wrong }
  1081. begin
  1082. F_V2:=NWSGetLineDrawCharacter(3);
  1083. end;
  1084. { was #define dname def_expr }
  1085. function F_UL1 : longint;
  1086. { return type might be wrong }
  1087. begin
  1088. F_UL1:=NWSGetLineDrawCharacter(4);
  1089. end;
  1090. { was #define dname def_expr }
  1091. function F_UR1 : longint;
  1092. { return type might be wrong }
  1093. begin
  1094. F_UR1:=NWSGetLineDrawCharacter(5);
  1095. end;
  1096. { was #define dname def_expr }
  1097. function F_LL1 : longint;
  1098. { return type might be wrong }
  1099. begin
  1100. F_LL1:=NWSGetLineDrawCharacter(6);
  1101. end;
  1102. { was #define dname def_expr }
  1103. function F_LR1 : longint;
  1104. { return type might be wrong }
  1105. begin
  1106. F_LR1:=NWSGetLineDrawCharacter(7);
  1107. end;
  1108. { was #define dname def_expr }
  1109. function F_UL2 : longint;
  1110. { return type might be wrong }
  1111. begin
  1112. F_UL2:=NWSGetLineDrawCharacter(8);
  1113. end;
  1114. { was #define dname def_expr }
  1115. function F_UR2 : longint;
  1116. { return type might be wrong }
  1117. begin
  1118. F_UR2:=NWSGetLineDrawCharacter(9);
  1119. end;
  1120. { was #define dname def_expr }
  1121. function F_LL2 : longint;
  1122. { return type might be wrong }
  1123. begin
  1124. F_LL2:=NWSGetLineDrawCharacter(10);
  1125. end;
  1126. { was #define dname def_expr }
  1127. function F_LR2 : longint;
  1128. { return type might be wrong }
  1129. begin
  1130. F_LR2:=NWSGetLineDrawCharacter(11);
  1131. end;
  1132. { was #define dname def_expr }
  1133. function F_UT1 : longint;
  1134. { return type might be wrong }
  1135. begin
  1136. F_UT1:=NWSGetLineDrawCharacter(12);
  1137. end;
  1138. { was #define dname def_expr }
  1139. function F_DT1 : longint;
  1140. { return type might be wrong }
  1141. begin
  1142. F_DT1:=NWSGetLineDrawCharacter(13);
  1143. end;
  1144. { was #define dname def_expr }
  1145. function F_LT1 : longint;
  1146. { return type might be wrong }
  1147. begin
  1148. F_LT1:=NWSGetLineDrawCharacter(14);
  1149. end;
  1150. { was #define dname def_expr }
  1151. function F_RT1 : longint;
  1152. { return type might be wrong }
  1153. begin
  1154. F_RT1:=NWSGetLineDrawCharacter(15);
  1155. end;
  1156. { was #define dname def_expr }
  1157. function F_UT2 : longint;
  1158. { return type might be wrong }
  1159. begin
  1160. F_UT2:=NWSGetLineDrawCharacter(24);
  1161. end;
  1162. { was #define dname def_expr }
  1163. function F_DT2 : longint;
  1164. { return type might be wrong }
  1165. begin
  1166. F_DT2:=NWSGetLineDrawCharacter(25);
  1167. end;
  1168. { was #define dname def_expr }
  1169. function F_LT2 : longint;
  1170. { return type might be wrong }
  1171. begin
  1172. F_LT2:=NWSGetLineDrawCharacter(26);
  1173. end;
  1174. { was #define dname def_expr }
  1175. function F_RT2 : longint;
  1176. { return type might be wrong }
  1177. begin
  1178. F_RT2:=NWSGetLineDrawCharacter(27);
  1179. end;
  1180. { was #define dname def_expr }
  1181. function F_X1 : longint;
  1182. { return type might be wrong }
  1183. begin
  1184. F_X1:=NWSGetLineDrawCharacter(36);
  1185. end;
  1186. { was #define dname def_expr }
  1187. function F_X2 : longint;
  1188. { return type might be wrong }
  1189. begin
  1190. F_X2:=NWSGetLineDrawCharacter(39);
  1191. end;
  1192. { was #define dname def_expr }
  1193. function F_UP : longint;
  1194. { return type might be wrong }
  1195. begin
  1196. F_UP:=NWSGetLineDrawCharacter(40);
  1197. end;
  1198. { was #define dname def_expr }
  1199. function F_DOWN : longint;
  1200. { return type might be wrong }
  1201. begin
  1202. F_DOWN:=NWSGetLineDrawCharacter(41);
  1203. end;
  1204. { was #define dname def_expr }
  1205. function F_LEFT : longint;
  1206. { return type might be wrong }
  1207. begin
  1208. F_LEFT:=NWSGetLineDrawCharacter(42);
  1209. end;
  1210. { was #define dname def_expr }
  1211. function F_RIGHT : longint;
  1212. { return type might be wrong }
  1213. begin
  1214. F_RIGHT:=NWSGetLineDrawCharacter(43);
  1215. end;
  1216. { was #define dname def_expr }
  1217. function F_BG1 : longint;
  1218. { return type might be wrong }
  1219. begin
  1220. F_BG1:=NWSGetLineDrawCharacter(44);
  1221. end;
  1222. { was #define dname def_expr }
  1223. function F_BG2 : longint;
  1224. { return type might be wrong }
  1225. begin
  1226. F_BG2:=NWSGetLineDrawCharacter(45);
  1227. end;
  1228. { was #define dname def_expr }
  1229. function F_BG3 : longint;
  1230. { return type might be wrong }
  1231. begin
  1232. F_BG3:=NWSGetLineDrawCharacter(46);
  1233. end;
  1234. { was #define dname def_expr }
  1235. function F_BG4 : longint;
  1236. { return type might be wrong }
  1237. begin
  1238. F_BG4:=NWSGetLineDrawCharacter(47);
  1239. end;
  1240. { was #define dname(params) para_def_expr }
  1241. { argument types are unknown }
  1242. { return type might be wrong }
  1243. function IS_DYNAMIC_MESSAGE(a : longint) : boolean;
  1244. begin
  1245. IS_DYNAMIC_MESSAGE:=(a > $fff0) and (a < $ffff);
  1246. end;
  1247. end.
  1248. {
  1249. $Log$
  1250. Revision 1.1 2003-02-16 17:45:08 armin
  1251. * added nwsnut, nwconio and nwthreads for netware
  1252. }