2
$Id: nwsnut.pp,v 1.1 2003/02/16 17:45:08 armin Exp $
3
This file is part of the Free Pascal run time library
5
Copyright (c) 1999-2003 by the Free Pascal development team.
7
See the file COPYING.FPC, included in this distribution,
8
for details about the copyright.
10
This program is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14
**********************************************************************}
23
External_library='nwsnut';
27
PSmallInt = ^SmallInt;
37
PScreenStruct = pointer;
48
the constant CURRENT_NUT_VERSION is incremented when increased
49
functionality is added. An NLM can check this value which is placed
50
in the NUTInfo structure, version field, to determine if the NWSNUT
51
NLM contains sufficient functionality to support its requirements }
54
CURRENT_NUT_VERSION = 405;
55
{ the constant NUT_REVISION_LEVEL is incremented when a major change
56
in the behavior of NWSNUT is made. This value is not used by the calling
57
NLM, but rather by NWSNUT itself to determine what is expected of it
59
NUT_REVISION_LEVEL = 1;
64
NO_HELP_CONTEXT = $ffff;
74
{ text size minimization styles }
78
{ palettes to set screen colors.
79
background and foreground can be reversed with VREVERSE
83
{ white and dark blue }
85
{ light blue and dark blue }
95
{ text and portal justification styles }
123
{ keyboard constants }
194
For NWSUngetKey of function keys, use UGK_FUNCTION_KEY for the "type"
195
parameter and "K_F1" etc. for the "value" parameter
197
UGK_NORMAL_KEY = $00;
198
UGK_FUNCTION_KEY = $01;
200
For other special keys listed below, use UGK_NORMAL_KEY for the "value"
201
parameter, and the UGK_xxx for the "type" parameter.
204
UGK_ESCAPE_KEY = $03;
205
UGK_BACKSPACE_KEY = $04;
206
UGK_DELETE_KEY = $05;
207
UGK_INSERT_KEY = $06;
208
UGK_CURSOR_UP_KEY = $07;
209
UGK_CURSOR_DOWN_KEY = $08;
210
UGK_CURSOR_RIGHT_KEY = $09;
211
UGK_CURSOR_LEFT_KEY = $0a;
212
UGK_CURSOR_HOME_KEY = $0b;
213
UGK_CURSOR_END_KEY = $0c;
214
UGK_CURSOR_PUP_KEY = $0d;
215
UGK_CURSOR_PDOWN_KEY = $0e;
219
A special key type to cause LISTs to refresh. K_REFRESH_KEY may be returned
220
from an action procedure passed to NWSList, or another thread that wishes
221
to cause a list to refresh may call NWSUngetKey with the UGK version of this,
222
and it too will cause the list to be redrawn.
224
Use "type" = UGK_SPECIAL_KEY, and "value" = UGK_REFRESH_KEY
227
UGK_REFRESH_KEY = $22222222;
228
K_REFRESH_KEY = UGK_REFRESH_KEY;
229
OLD_REFRESH_KEY = 222;
230
{ available action keys for list }
245
{ allow the list to be refreshed }
247
{ return values for EditString }
252
{ type values for EditString }
264
{ added in version 404 }
266
{ and in version 405 }
267
EF_NOCONFIRM_EXIT = $1000;
268
{ scroll bar stuff for NWSEditTextWithScrollBars, and NWSViewTextWithScrollBars }
269
{ which scroll bars to show }
270
SHOW_VERTICAL_SCROLL_BAR = 2;
271
SHOW_HORIZONTAL_SCROLL_BAR = 4;
272
{ when to show the scroll bars. Use ONLY one of these }
273
CONSTANT_SCROLL_BARS = $0200;
274
TEXT_SENSITIVE_SCROLL_BARS = $0400;
275
CONSIDER_LOCKED_FIELDS = $0800;
276
{ character and key constants }
277
{ was #define dname def_expr }
278
function F_H1 : longint;
279
{ return type might be wrong }
282
{ was #define dname def_expr }
283
function F_H2 : longint;
284
{ return type might be wrong }
287
{ was #define dname def_expr }
288
function F_V1 : longint;
289
{ return type might be wrong }
292
{ was #define dname def_expr }
293
function F_V2 : longint;
294
{ return type might be wrong }
297
{ was #define dname def_expr }
298
function F_UL1 : longint;
299
{ return type might be wrong }
302
{ was #define dname def_expr }
303
function F_UR1 : longint;
304
{ return type might be wrong }
307
{ was #define dname def_expr }
308
function F_LL1 : longint;
309
{ return type might be wrong }
312
{ was #define dname def_expr }
313
function F_LR1 : longint;
314
{ return type might be wrong }
317
{ was #define dname def_expr }
318
function F_UL2 : longint;
319
{ return type might be wrong }
322
{ was #define dname def_expr }
323
function F_UR2 : longint;
324
{ return type might be wrong }
327
{ was #define dname def_expr }
328
function F_LL2 : longint;
329
{ return type might be wrong }
332
{ was #define dname def_expr }
333
function F_LR2 : longint;
334
{ return type might be wrong }
337
{ was #define dname def_expr }
338
function F_UT1 : longint;
339
{ return type might be wrong }
342
{ was #define dname def_expr }
343
function F_DT1 : longint;
344
{ return type might be wrong }
347
{ was #define dname def_expr }
348
function F_LT1 : longint;
349
{ return type might be wrong }
352
{ was #define dname def_expr }
353
function F_RT1 : longint;
354
{ return type might be wrong }
357
{ was #define dname def_expr }
358
function F_UT2 : longint;
359
{ return type might be wrong }
362
{ was #define dname def_expr }
363
function F_DT2 : longint;
364
{ return type might be wrong }
367
{ was #define dname def_expr }
368
function F_LT2 : longint;
369
{ return type might be wrong }
372
{ was #define dname def_expr }
373
function F_RT2 : longint;
374
{ return type might be wrong }
377
{ was #define dname def_expr }
378
function F_X1 : longint;
379
{ return type might be wrong }
382
{ was #define dname def_expr }
383
function F_X2 : longint;
384
{ return type might be wrong }
387
{ was #define dname def_expr }
388
function F_UP : longint;
389
{ return type might be wrong }
392
{ was #define dname def_expr }
393
function F_DOWN : longint;
394
{ return type might be wrong }
397
{ was #define dname def_expr }
398
function F_LEFT : longint;
399
{ return type might be wrong }
402
{ was #define dname def_expr }
403
function F_RIGHT : longint;
404
{ return type might be wrong }
407
{ was #define dname def_expr }
408
function F_BG1 : longint;
409
{ return type might be wrong }
412
{ was #define dname def_expr }
413
function F_BG2 : longint;
414
{ return type might be wrong }
417
{ was #define dname def_expr }
418
function F_BG3 : longint;
419
{ return type might be wrong }
422
{ was #define dname def_expr }
423
function F_BG4 : longint;
424
{ return type might be wrong }
426
{ form constants (control flags) }
432
{ a flag to pass if no help is desired in the form }
433
F_NO_HELP = $ffffffff;
434
{ fieldFlags Type masks }
435
{ normal editable field }
441
{ verify field on form exit }
442
REQUIRED_FIELD = $04;
443
{ hidden fields are also locked }
445
{ prompt fields are also locked }
447
{ field locked by user, not by NUT }
448
ULOCKED_FIELD = $0100;
449
{ MASKED_FIELD added in version 402 }
450
{ display ' ' for text }
452
{ flag to cause form deselection
453
before action & verify routines
456
{ In case old flag was used }
457
NO_FORM_DESELECT = $00;
458
{ normal field controlled justify }
459
DEFAULT_FORMAT = $00;
460
{ right justification format }
462
{ left justification format }
470
MAXFUNCTIONS = MAXACTIONS;
473
DYNAMIC_MESSAGE_ONE = $fffe;
474
DYNAMIC_MESSAGE_TWO = $fffd;
475
DYNAMIC_MESSAGE_THREE = $fffc;
476
DYNAMIC_MESSAGE_FOUR = $fffb;
477
DYNAMIC_MESSAGE_FIVE = $fffa;
478
DYNAMIC_MESSAGE_SIX = $fff9;
479
DYNAMIC_MESSAGE_SEVEN = $fff8;
480
DYNAMIC_MESSAGE_EIGHT = $fff7;
481
DYNAMIC_MESSAGE_NINE = $fff6;
482
DYNAMIC_MESSAGE_TEN = $fff5;
483
DYNAMIC_MESSAGE_ELEVEN = $fff4;
484
DYNAMIC_MESSAGE_TWELVE = $fff3;
485
DYNAMIC_MESSAGE_THIRTEEN = $fff2;
486
DYNAMIC_MESSAGE_FOURTEEN = $fff1;
487
SYSTEM_MESSAGE = $8000;
488
{ was #define dname(params) para_def_expr }
489
{ argument types are unknown }
490
{ return type might be wrong }
491
function IS_DYNAMIC_MESSAGE(a : longint) : boolean;
495
{PNUTInfo_ = ^TNUTInfo_;
499
PNUTInfo_ = ^TNUTInfo_;
501
{ height of virtual screen }
502
{ width of virtual screen }
503
{ top-most line of portal }
504
{ left-most column of portal }
505
{ position of portal over virtual portal }
506
{ position of portal over virtual portal }
507
{ the following fields should never be referenced by any application }
515
virtualHeight : TLONG;
516
virtualWidth : TLONG;
519
borderAttribute : TLONG;
521
secondarySaveFlag : TWORD;
523
headerAttribute : TLONG;
525
portalColumn : TLONG;
526
portalHeight : TLONG;
529
virtualColumn : TLONG;
531
cursorColumn : TLONG;
532
firstUpdateFlag : TLONG;
535
virtualScreen : PBYTE;
537
screenID : PScreenStruct;
539
sequenceNumber : TLONG;
542
borderPalette : TLONG;
543
showScrollBars : TLONG;
545
longestLineLen : TLONG;
546
verticalScroll : TLONG;
547
horizontalScroll : TLONG;
549
oldHorizontal : TLONG;
550
deHighlightFunction : procedure (para1:PNUTInfo_; para2:PPCB_);cdecl;
551
reHighlightFunction : procedure (para1:PNUTInfo_; para2:PPCB_); cdecl;
552
reportPortalUpdate : procedure (para1:PPCB_; para2:PNUTInfo_; updateType:TLONG); cdecl;
556
{ Topmost line of frame on physical screen }
557
{ Leftmost column of frame on physical screen }
558
{ Height of frame on physical screen }
559
{ Width of frame on physical screen }
560
{ Height of virtual screen }
561
{ Width of virtual screen }
562
{ Is the cursor on or off (1 or 0) }
563
{ Type of border to use }
564
{ Attribute to use with border }
565
{ TRUE = save old screen }
566
{ TRUE = no virtual screen }
567
{ Attribute of header text }
568
{ Pointer to header text }
569
{ Pointer to the help text, always assumed to }
570
{ be non NULL (when empty points to a '/0' BYTE }
575
previousScreen : TLONG;
580
virtualHeight : TLONG;
581
virtualWidth : TLONG;
584
borderAttribute : TLONG;
587
headerAttribute : TLONG;
592
PHELP_SCREEN = ^THELP_SCREEN;
594
PLIST_STRUCT = ^TLIST_STRUCT;
595
TLIST_STRUCT = record
602
entryProcedure : procedure (listElement:PLIST_STRUCT; displayLine:TLONG; NUTInfoStructure:pointer);cdecl;
604
text : array[0..0] of TBYTE;
606
TLIST = TLIST_STRUCT;
614
sortProc : function :longint;cdecl;
615
freeProcedure : procedure (memoryPointer:pointer);
618
PLISTPTR = ^TLISTPTR;
622
dynamicMessageOne : PBYTE;
623
dynamicMessageTwo : PBYTE;
624
dynamicMessageThree : PBYTE;
625
dynamicMessageFour : PBYTE;
626
dynamicMessageFive : PBYTE;
627
dynamicMessageSix : PBYTE;
628
dynamicMessageSeven : PBYTE;
629
dynamicMessageEight : PBYTE;
630
dynamicMessageNine : PBYTE;
631
dynamicMessageTen : PBYTE;
632
dynamicMessageEleven : PBYTE;
633
dynamicMessageTwelve : PBYTE;
634
dynamicMessageThirteen : PBYTE;
635
dynamicMessageFourteen : PBYTE;
636
messageCount : TLONG;
637
programMesgTable : ^PBYTE;
640
PMessageInfo = ^TMessageInfo;
644
interruptProc : procedure (handle:pointer);cdecl;
648
PINTERRUPT = ^TINTERRUPT;
652
listAction : function (option:longint; parameter:pointer):longint;cdecl;
655
TMENU_PARAMETER = TMP_;
656
PMENU_PARAMETER = ^TMENU_PARAMETER;
657
{ environment structure }
658
{ always leave the following fields at the end of the struct. They
659
should never be referenced directly by an application }
663
portal : array[0..(MAXPORTALS)-1] of PPCB;
664
currentPortal : TLONG;
665
headerHeight : TLONG;
667
listStack : array[0..(MAXLISTS)-1] of TLISTPTR;
668
saveStack : array[0..(SAVELISTS)-1] of TLISTPTR;
669
nextAvailList : TLONG;
672
defaultCompareFunction : function (el1:PLIST; el2:PLIST):longint;cdecl;
673
freeProcedure : procedure (memoryPointer:pointer);
674
interruptTable : array[0..(MAXFUNCTIONS)-1] of procedure ;
675
functionKeyStatus : array[0..(MAXACTIONS)-1] of TLONG;
676
messages : TMessageInfo;
677
helpContextStack : array[0..(MAXHELP)-1] of TLONG;
678
currentPreHelpMessage : TLONG;
679
freeHelpSlot : longint;
680
redisplayFormFlag : TLONG;
681
preHelpPortal : TLONG;
682
helpActive : smallint;
683
errorDisplayActive : smallint;
687
resourceTag : pointer;
690
helpOffset : longint;
692
allocChain : pointer;
694
reserved : array[0..9] of TLONG;
695
moduleHandle : TLONG;
696
customData : pointer;
697
customDataRelease : procedure (theData:pointer; thisStructure:PNUTInfo_); cdecl;
698
displayErrorLabel : TLONG;
700
markBufferLength : TLONG;
702
editBufferLength : TLONG;
706
saveCurrentPortal : TLONG;
708
nutDataHandle : pointer;
711
listSortFunction : procedure (head:PLIST; tail:PLIST; thisStructure:PNUTInfo_); cdecl;
712
compatibilityLevel : TLONG;
714
TNUTInfo = TNUTInfo_;
715
PNUTInfo = ^TNUTInfo;
716
PPNUTInfo= ^PNUTInfo;
718
{ menu header message number }
720
{ menu center column }
721
{ len of longest menu option }
722
{ menu action routine }
723
{ list head for menu list }
729
centerColumn : TLONG;
731
action : function (option:longint; parameter:pointer):longint;cdecl;
742
PMFCONTROL = ^TMFCONTROL;
743
{ list element that owns the field }
745
{ Line where field is located }
746
{ Column where field is located }
747
{ Maximum width of field }
748
{ Display attribute for field }
749
{ Keys that will activate the field }
750
{ Routine called when field selected }
751
{ Routine to verify Input }
752
{ Data & Xtra field release routine }
754
{ Additional control info }
755
{ help context for this field }
756
{ Pointer to field above }
757
{ Pointer to field below }
758
{ Pointer to field to left }
759
{ Pointer to field to right }
760
{ Pointer to previous field }
761
{ Pointer to next field }
762
{ if this value is set, this routine will be called upon
763
entry to each field }
764
{ this allows the user to have any sort of custom data that
765
he wants attached to the field. }
766
{ and this lets him release it. Note that these parameters
767
match NWSFree which allows the use of NWSAlloc for
768
this data (a further guarantee that the memory will be freed }
769
{ handle to keep track of who owns the field }
771
Pfielddef = ^Tfielddef;
778
fieldAttribute : TLONG;
779
fieldActivateKeys : longint;
780
fieldFormat : procedure (field:Pfielddef; text:PBYTE; buffLen:TLONG);cdecl;
781
fieldControl : function (field:Pfielddef; selectKey:longint; fieldChanged:Plongint; handle:PNUTInfo):TLONG;
782
fieldVerify : function (field:Pfielddef; data:PBYTE; handle:PNUTInfo):longint;
783
fieldRelease : procedure (para1:Pfielddef);
787
fieldAbove : Pfielddef;
788
fieldBelow : Pfielddef;
789
fieldLeft : Pfielddef;
790
fieldRight : Pfielddef;
791
fieldPrev : Pfielddef;
792
fieldNext : Pfielddef;
793
fieldEntry : procedure (intoField:Pfielddef; fieldData:pointer; handle:PNUTInfo);
794
customData : pointer;
795
customDataRelease : procedure (fieldCustomData:pointer; handle:PNUTInfo);
800
{ Structures used for DisplayErrorCondition() }
804
ccodeReturned : longint;
805
errorMessageNumber : longint;
807
TPROCERROR = TPCERR_;
808
PPROCERROR = ^TPROCERROR;
816
PNUT_ALLOC = ^TNUT_ALLOC;
817
{ C++ extern C conditionnal removed }
819
{ OS ResourceTagStructure }
821
function NWSInitializeNut(utility:TLONG; version:TLONG; headerType:TLONG; compatibilityLevel:TLONG; messageTable:PPBYTE;
822
helpScreens:PBYTE; screenID:longint; resourceTag:TLONG; handle:PPNUTInfo):longint;cdecl;external External_library name 'NWSInitializeNut';
824
procedure NWSScreenSize(maxLines:PLONG; maxColumns:PLONG);cdecl;external External_library name 'NWSScreenSize';
826
procedure NWSShowPortalLine(line:TLONG; column:TLONG; text:PBYTE; length:TLONG; portal:PPCB);cdecl;external External_library name 'NWSShowPortalLine';
828
procedure NWSShowPortalLineAttribute(line:TLONG; column:TLONG; text:PBYTE; attribute:TLONG; length:TLONG;
829
portal:PPCB);cdecl;external External_library name 'NWSShowPortalLineAttribute';
831
procedure NWSScrollPortalZone(line:TLONG; column:TLONG; height:TLONG; width:TLONG; attribute:TLONG;
832
count:TLONG; direction:TLONG; portal:PPCB);cdecl;external External_library name 'NWSScrollPortalZone';
834
procedure NWSFillPortalZone(line:TLONG; column:TLONG; height:TLONG; width:TLONG; fillCharacter:TLONG;
835
fillAttribute:TLONG; portal:PPCB);cdecl;external External_library name 'NWSFillPortalZone';
837
procedure NWSFillPortalZoneAttribute(line:TLONG; column:TLONG; height:TLONG; width:TLONG; attribute:TLONG;
838
portal:PPCB);cdecl;external External_library name 'NWSFillPortalZoneAttribute';
840
function NWSGetMessage(message:TLONG; messages:PMessageInfo):PBYTE;cdecl;external External_library name 'NWSGetMessage';
842
procedure NWSSetDynamicMessage(message:TLONG; text:PBYTE; messages:PMessageInfo);cdecl;external External_library name 'NWSSetDynamicMessage';
844
function NWSCreatePortal(line:TLONG; column:TLONG; frameHeight:TLONG; frameWidth:TLONG; virtualHeight:TLONG;
845
virtualWidth:TLONG; saveFlag:TLONG; headerText:PBYTE; headerAttribute:TLONG; borderType:TLONG;
846
borderAttribute:TLONG; cursorFlag:TLONG; directFlag:TLONG; handle:PNUTInfo):TLONG;cdecl;external External_library name 'NWSCreatePortal';
848
procedure NWSDestroyPortal(portalNumber:TLONG; handle:PNUTInfo);cdecl;external External_library name 'NWSDestroyPortal';
850
procedure NWSPositionPortalCursor(line:TLONG; column:TLONG; portal:PPCB);cdecl;external External_library name 'NWSPositionPortalCursor';
852
procedure NWSEnablePortalCursor(portal:PPCB);cdecl;external External_library name 'NWSEnablePortalCursor';
854
procedure NWSDisablePortalCursor(portal:PPCB);cdecl;external External_library name 'NWSDisablePortalCursor';
856
procedure NWSDeselectPortal(handle:PNUTInfo);cdecl;external External_library name 'NWSDeselectPortal';
858
procedure NWSSelectPortal(portalNumber:TLONG; handle:PNUTInfo);cdecl;external External_library name 'NWSSelectPortal';
860
function NWSComputePortalPosition(centerLine:TLONG; centerColumn:TLONG; height:TLONG; width:TLONG; line:PLONG;
861
column:PLONG; handle:PNUTInfo):longint;cdecl;external External_library name 'NWSComputePortalPosition';
863
procedure NWSClearPortal(portal:PPCB);cdecl;external External_library name 'NWSClearPortal';
865
type TFreeRoutine = procedure (memoryPointer:pointer); cdecl;
867
procedure NWSInitList(handle:PNUTInfo; freeRoutine:TFreeRoutine);cdecl;external External_library name 'NWSInitList';
869
function NWSPushList(handle:PNUTInfo):TLONG;cdecl;external External_library name 'NWSPushList';
871
function NWSPopList(handleNWS:PNUTInfo):TLONG;cdecl;external External_library name 'NWSPopList';
873
function NWSSaveList(listIndex:TLONG; handle:PNUTInfo):TLONG;cdecl;external External_library name 'NWSSaveList';
875
function NWSRestoreList(listIndex:TLONG; handle:PNUTInfo):TLONG;cdecl;external External_library name 'NWSRestoreList';
877
procedure NWSDestroyList(handle:PNUTInfo);cdecl;external External_library name 'NWSDestroyList';
879
procedure NWSDestroyMenu(handle:PNUTInfo);cdecl;external External_library name 'NWSDestroyMenu';
881
procedure NWSDestroyForm(handle:PNUTInfo);cdecl;external External_library name 'NWSDestroyForm';
883
function NWSAppendToList(text:PBYTE; otherInfo:pointer; handle:PNUTInfo):PLIST;cdecl;external External_library name 'NWSAppendToList';
885
function NWSDeleteFromList(el:PLIST; handle:PNUTInfo):PLIST;cdecl;external External_library name 'NWSDeleteFromList';
887
function NWSInsertInList(text:PBYTE; otherInfo:PBYTE; atElement:PLIST; handle:PNUTInfo):PLIST;cdecl;external External_library name 'NWSInsertInList';
889
function NWSGetListElementText(element:PLIST):PBYTE;cdecl;external External_library name 'NWSGetListElementText';
891
function NWSGetListHead(handle:PNUTInfo):PLIST;cdecl;external External_library name 'NWSGetListHead';
893
function NWSGetListTail(handle:PNUTInfo):PLIST;cdecl;external External_library name 'NWSGetListTail';
895
procedure NWSUnmarkList(handle:PNUTInfo);cdecl;external External_library name 'NWSUnmarkList';
897
procedure NWSSetList(listPtr:PLISTPTR; handle:PNUTInfo);cdecl;external External_library name 'NWSSetList';
899
procedure NWSGetList(listPtr:PLISTPTR; handle:PNUTInfo);cdecl;external External_library name 'NWSGetList';
901
function NWSIsAnyMarked(handle:PNUTInfo):TLONG;cdecl;external External_library name 'NWSIsAnyMarked';
903
procedure NWSPushMarks(handle:PNUTInfo);cdecl;external External_library name 'NWSPushMarks';
905
procedure NWSPopMarks(handle:PNUTInfo);cdecl;external External_library name 'NWSPopMarks';
907
procedure NWSSortList(handle:PNUTInfo);cdecl;external External_library name 'NWSSortList';
909
procedure NWSInitMenu(handle:PNUTInfo);cdecl;external External_library name 'NWSInitMenu';
911
procedure NWSInitForm(handle:PNUTInfo);cdecl;external External_library name 'NWSInitForm';
913
function NWSGetSortCharacter(charIndex:TLONG):TLONG;cdecl;external External_library name 'NWSGetSortCharacter';
915
function NWSGetLineDrawCharacter(charIndex:TLONG):TLONG;cdecl;external External_library name 'NWSGetLineDrawCharacter';
917
function NWSStrcat(_string:PBYTE; newStuff:PBYTE):TLONG;cdecl;external External_library name 'NWSStrcat';
919
procedure NWSMemmove(dest:pointer; source:pointer; len:longint);cdecl;external External_library name 'NWSMemmove';
921
function NWSToupper(ch:TBYTE):TBYTE;cdecl;external External_library name 'NWSToupper';
923
function NWSIsdigit(ch:TBYTE):longint;cdecl;external External_library name 'NWSIsdigit';
925
function NWSIsxdigit(ch:TBYTE):longint;cdecl;external External_library name 'NWSIsxdigit';
927
function NWSAsciiToInt(data:PBYTE):longint;cdecl;external External_library name 'NWSAsciiToInt';
929
function NWSAsciiToLONG(data:PBYTE):TLONG;cdecl;external External_library name 'NWSAsciiToLONG';
931
function NWSAsciiHexToInt(data:PBYTE):longint;cdecl;external External_library name 'NWSAsciiHexToInt';
933
procedure NWSWaitForEscape(handle:PNUTInfo);cdecl;external External_library name 'NWSWaitForEscape';
935
function NWSWaitForEscapeOrCancel(handle:PNUTInfo):longint;cdecl;external External_library name 'NWSWaitForEscapeOrCancel';
937
procedure NWSGetKey(_type:PLONG; value:PBYTE; handle:PNUTInfo);cdecl;external External_library name 'NWSGetKey';
939
function NWSKeyStatus(handle:PNUTInfo):TLONG;cdecl;external External_library name 'NWSKeyStatus';
941
function NWSUngetKey(_type:TLONG; value:TLONG; handle:PNUTInfo):TLONG;cdecl;external External_library name 'NWSUngetKey';
943
procedure NWSEnableFunctionKey(key:TLONG; handle:PNUTInfo);cdecl;external External_library name 'NWSEnableFunctionKey';
945
procedure NWSDisableFunctionKey(key:TLONG; handle:PNUTInfo);cdecl;external External_library name 'NWSDisableFunctionKey';
947
procedure NWSDisableInterruptKey(key:TLONG; handle:PNUTInfo);cdecl;external External_library name 'NWSDisableInterruptKey';
949
type TInterruptProc = procedure (handle:pointer); cdecl;
951
procedure NWSEnableInterruptKey(key:TLONG; interruptProc:TInterruptProc; handle:PNUTInfo);cdecl;external External_library name 'NWSEnableInterruptKey';
953
procedure NWSSaveFunctionKeyList(keyList:PBYTE; handle:PNUTInfo);cdecl;external External_library name 'NWSSaveFunctionKeyList';
955
procedure NWSEnableFunctionKeyList(keyList:PBYTE; handle:PNUTInfo);cdecl;external External_library name 'NWSEnableFunctionKeyList';
957
procedure NWSSaveInterruptList(interruptList:PINTERRUPT; handle:PNUTInfo);cdecl;external External_library name 'NWSSaveInterruptList';
959
procedure NWSEnableInterruptList(interruptList:PINTERRUPT; handle:PNUTInfo);cdecl;external External_library name 'NWSEnableInterruptList';
961
procedure NWSDisableAllInterruptKeys(handle:PNUTInfo);cdecl;external External_library name 'NWSDisableAllInterruptKeys';
963
procedure NWSDisableAllFunctionKeys(handle:PNUTInfo);cdecl;external External_library name 'NWSDisableAllFunctionKeys';
965
procedure NWSEnableAllFunctionKeys(handle:PNUTInfo);cdecl;external External_library name 'NWSEnableAllFunctionKeys';
967
function NWSDisplayTextInPortal(line:TLONG; indentLevel:TLONG; text:PBYTE; attribute:TLONG; portal:PPCB):longint;cdecl;external External_library name 'NWSDisplayTextInPortal';
969
function NWSDisplayInformation(header:TLONG; pauseFlag:TLONG; centerLine:TLONG; centerColumn:TLONG; palette:TLONG;
970
attribute:TLONG; displayText:PBYTE; handle:PNUTInfo):TLONG;cdecl;external External_library name 'NWSDisplayInformation';
972
procedure NWSStartWait(centerLine:TLONG; centerColumn:TLONG; handle:PNUTInfo);cdecl;external External_library name 'NWSStartWait';
974
procedure NWSEndWait(handle:PNUTInfo);cdecl;external External_library name 'NWSEndWait';
976
function NWSAlert(centerLine:TLONG; centerColumn:TLONG; handle:PNUTInfo; message:TLONG; args:array of const):TLONG;cdecl;external External_library name 'NWSAlert';
978
function NWSAlert(centerLine:TLONG; centerColumn:TLONG; handle:PNUTInfo; message:TLONG):TLONG;cdecl;external External_library name 'NWSAlert';
980
function NWSAlertWithHelp(centerLine:TLONG; centerColumn:TLONG; handle:PNUTInfo; message:TLONG; helpContext:TLONG;
981
args:array of const):TLONG;cdecl;external External_library name 'NWSAlertWithHelp';
983
function NWSAlertWithHelp(centerLine:TLONG; centerColumn:TLONG; handle:PNUTInfo; message:TLONG; helpContext:TLONG):TLONG;cdecl;external External_library name 'NWSAlertWithHelp';
985
function NWSTrace(handle:PNUTInfo; message:PBYTE; args:array of const):TLONG;cdecl;external External_library name 'NWSTrace';
987
function NWSTrace(handle:PNUTInfo; message:PBYTE):TLONG;cdecl;external External_library name 'NWSTrace';
989
procedure NWSDisplayErrorText(message:TLONG; severity:TLONG; handle:PNUTInfo; args:array of const);cdecl;external External_library name 'NWSDisplayErrorText';
991
procedure NWSDisplayErrorText(message:TLONG; severity:TLONG; handle:PNUTInfo);cdecl;external External_library name 'NWSDisplayErrorText';
993
procedure NWSDisplayErrorCondition(procedureName:PBYTE; errorCode:longint; severity:TLONG; errorList:PPROCERROR; handle:PNUTInfo;
994
args:array of const);cdecl;external External_library name 'NWSDisplayErrorCondition';
996
procedure NWSDisplayErrorCondition(procedureName:PBYTE; errorCode:longint; severity:TLONG; errorList:PPROCERROR; handle:PNUTInfo);cdecl;external External_library name 'NWSDisplayErrorCondition';
998
function NWSAppendToMenu(message:TLONG; option:TLONG; handle:PNUTInfo):PLIST;cdecl;external External_library name 'NWSAppendToMenu';
1000
type TActionFunc = function (option:longint; parameter:pointer) : longint; cdecl;
1002
function NWSMenu(header:TLONG; centerLine:TLONG; centerColumn:TLONG; defaultElement:PLIST; action:TActionFunc;
1003
handle:PNUTInfo; actionParameter:pointer):longint;cdecl;external External_library name 'NWSMenu';
1005
function NWSConfirm(header:TLONG; centerLine:TLONG; centerColumn:TLONG; defaultChoice:TLONG; action:TActionFunc;
1006
handle:PNUTInfo; actionParameter:pointer):longint;cdecl;external External_library name 'NWSConfirm';
1008
function NWSPushHelpContext(helpContext:TLONG; handle:PNUTInfo):longint;cdecl;external External_library name 'NWSPushHelpContext';
1010
function NWSPopHelpContext(handle:PNUTInfo):longint;cdecl;external External_library name 'NWSPopHelpContext';
1012
type TFormatFunc=function (element:PLIST; skew:TLONG; displayLine:PBYTE; width:TLONG):TLONG; cdecl;
1013
TNWSListActionFunc=function (keyPressed:TLONG; elementSelected:PPLIST; itemLineNumber:PLONG; actionParameter:pointer):longint; cdecl;
1015
function NWSList(header:TLONG; centerLine:TLONG; centerColumn:TLONG; height:TLONG; width:TLONG;
1016
validKeyFlags:TLONG; element:PPLIST; handle:PNUTInfo; format:TFormatFunc; action:TNWSListActionFunc;
1017
actionParameter:pointer):TLONG;cdecl;external External_library name 'NWSList';
1019
type TInsertFunc = function (text:PBYTE; otherInfo:Ppointer; parameters:pointer):longint; cdecl;
1020
TFreeProcedure=function (otherInfo:pointer):longint; cdecl;
1022
function NWSInsertInPortalList(currentElement:PPLIST; currentLine:PLONG; InsertProcedure:TInsertFunc; FreeProcedure:TFreeProcedure; handle:PNUTInfo;
1023
parameters:pointer):longint;cdecl;external External_library name 'NWSInsertInPortalList';
1025
type TModifyProcedure=function (text:PBYTE; parameters:pointer):longint; cdecl;
1027
function NWSModifyInPortalList(currentElement:PPLIST; currentLine:PLONG; ModifyProcedure:TModifyProcedure; handle:PNUTInfo; parameters:pointer):longint;cdecl;external External_library name 'NWSModifyInPortalList';
1029
type TDeleteFunc = function (el:PLIST; handle:PNUTInfo; parameters:pointer):PLIST; cdecl;
1030
function NWSDeleteFromPortalList(currentElement:PPLIST; currentLine:PLONG; DeleteProcedure:TDeleteFunc; deleteCurrentHeader:TLONG; deleteMarkedHeader:TLONG;
1031
handle:PNUTInfo; parameters:pointer):longint;cdecl;external External_library name 'NWSDeleteFromPortalList';
1033
type TNWSEditInsertFunc=function (buffer:PBYTE; maxLen:TLONG; parameters:pointer):longint; cdecl;
1034
TNWSEditActionFunc=function (action:TLONG; buffer:PBYTE; parameters:pointer):longint; cdecl;
1036
function NWSEditString(centerLine:TLONG; centerColumn:TLONG; editHeight:TLONG; editWidth:TLONG; header:TLONG;
1037
prompt:TLONG; buf:PBYTE; maxLen:TLONG; _type:TLONG; handle:PNUTInfo;
1038
insertProc:TNWSEditInsertFunc; actionProc:TNWSEditActionFunc; parameters:pointer):longint;cdecl;external External_library name 'NWSEditString';
1040
function NWSAppendIntegerField(line:TLONG; column:TLONG; fflag:TLONG; data:Plongint; minimum:longint;
1041
maximum:longint; help:TLONG; handle:PNUTInfo):PFIELD;cdecl;external External_library name 'NWSAppendIntegerField';
1043
function NWSAppendUnsignedIntegerField(line:TLONG; column:TLONG; fflag:TLONG; data:PLONG; minimum:TLONG;
1044
maximum:TLONG; help:TLONG; handle:PNUTInfo):PFIELD;cdecl;external External_library name 'NWSAppendUnsignedIntegerField';
1046
function NWSAppendHexField(line:TLONG; column:TLONG; fflag:TLONG; data:Plongint; minimum:longint;
1047
maximum:longint; help:TLONG; handle:PNUTInfo):PFIELD;cdecl;external External_library name 'NWSAppendHexField';
1049
procedure NWSDisplayPreHelp(line:TLONG; column:TLONG; message:TLONG; handle:PNUTInfo);cdecl;external External_library name 'NWSDisplayPreHelp';
1051
procedure NWSRemovePreHelp(handle:PNUTInfo);cdecl;external External_library name 'NWSRemovePreHelp';
1053
function NWSGetADisk(volName:PBYTE; prompt:PBYTE; handle:PNUTInfo):TLONG;cdecl;external External_library name 'NWSGetADisk';
1055
procedure NWSInitListPtr(listPtr:PLISTPTR);cdecl;external External_library name 'NWSInitListPtr';
1057
function NWSEditForm(headernum:TLONG; line:TLONG; col:TLONG; portalHeight:TLONG; portalWidth:TLONG;
1058
virtualHeight:TLONG; virtualWidth:TLONG; ESCverify:TLONG; forceverify:TLONG; confirmMessage:TLONG;
1059
handle:PNUTInfo):longint;cdecl;external External_library name 'NWSEditForm';
1061
function NWSEditPortalFormField(header:TLONG; cline:TLONG; ccol:TLONG; formHeight:TLONG; formWidth:TLONG;
1062
controlFlags:TLONG; formHelp:TLONG; confirmMessage:TLONG; startField:PFIELD; handle:PNUTInfo):longint;cdecl;external External_library name 'NWSEditPortalFormField';
1064
function NWSEditPortalForm(header:TLONG; centerLine:TLONG; centerColumn:TLONG; formHeight:TLONG; formWidth:TLONG;
1065
controlFlags:TLONG; formHelp:TLONG; confirmMessage:TLONG; handle:PNUTInfo):longint;cdecl;external External_library name 'NWSEditPortalForm';
1067
type TfFormat = procedure (field:Pfielddef; text:PBYTE; buffLen:TLONG); cdecl;
1068
TfControl = function (field:Pfielddef; selectKey:longint; fieldChanged:Plongint; handle:PNUTInfo):TLONG; cdecl;
1069
TfVerify = function (field:Pfielddef; data:PBYTE; handle:PNUTInfo):longint; cdecl;
1070
TfRelease = procedure (field:Pfielddef); cdecl;
1072
{ Data & Xtra field release routine }
1073
function NWSAppendToForm(
1085
fActivateKeys:TLONG;
1087
handle:PNUTInfo):PFIELD;cdecl;external External_library name 'NWSAppendToForm';
1089
function NWSAppendPromptField(line:TLONG; column:TLONG; promptnum:TLONG; handle:PNUTInfo):PFIELD;cdecl;external External_library name 'NWSAppendPromptField';
1091
function NWSAppendCommentField(line:TLONG; column:TLONG; prompt:PBYTE; handle:PNUTInfo):PFIELD;cdecl;external External_library name 'NWSAppendCommentField';
1093
function NWSAppendStringField(line:TLONG; column:TLONG; width:TLONG; fflag:TLONG; data:PBYTE;
1094
cset:PBYTE; help:TLONG; handle:PNUTInfo):PFIELD;cdecl;external External_library name 'NWSAppendStringField';
1096
function NWSAppendBoolField(line:TLONG; column:TLONG; fflag:TLONG; data:PBYTE; help:TLONG;
1097
handle:PNUTInfo):PFIELD;cdecl;external External_library name 'NWSAppendBoolField';
1099
function NWSAppendGenericBoolField(line:TLONG; column:TLONG; fflag:TLONG; data:PBYTE; help:TLONG;
1100
yesString:PBYTE; noString:PBYTE; handle:PNUTInfo):PFIELD;cdecl;external External_library name 'NWSAppendGenericBoolField';
1102
type TSpotActionFunc = function (fp:PFIELD; selectKey:longint; changedField:Plongint; handle:PNUTInfo):TLONG; cdecl;
1103
function NWSAppendHotSpotField(line:TLONG; column:TLONG; fflag:TLONG;
1104
displayString:PBYTE;
1105
SpotAction:TSpotActionFunc;
1106
handle:PNUTInfo):PFIELD;cdecl;external External_library name 'NWSAppendHotSpotField';
1108
function NWSInitMenuField(headermsg:TLONG; cLine:TLONG; cCol:TLONG;
1109
action:TActionFunc ;
1111
args:array of const):PMFCONTROL;cdecl;external External_library name 'NWSInitMenuField';
1113
function NWSInitMenuField(headermsg:TLONG; cLine:TLONG; cCol:TLONG;
1114
action:TActionFunc; nutInfo:PNUTInfo):PMFCONTROL;cdecl;external External_library name 'NWSInitMenuField';
1116
function NWSAppendToMenuField(m:PMFCONTROL; optiontext:TLONG; option:longint; nutInfo:PNUTInfo):longint;cdecl;external External_library name 'NWSAppendToMenuField';
1118
function NWSAppendMenuField(line:TLONG; column:TLONG; fflag:TLONG; data:Plongint; m:PMFCONTROL;
1119
help:TLONG; nutInfo:PNUTInfo):PFIELD;cdecl;external External_library name 'NWSAppendMenuField';
1121
{ length of document }
1122
function NWSEditText(centerLine:TLONG; centerColumn:TLONG; height:TLONG; width:TLONG; headerNumber:TLONG;
1123
textBuffer:PBYTE; maxBufferLength:TLONG; confirmMessage:TLONG; forceConfirm:TLONG; handle:PNUTInfo):longint;cdecl;external External_library name 'NWSEditText';
1125
function NWSViewText(centerLine:TLONG; centerColumn:TLONG; height:TLONG; width:TLONG; headerNumber:TLONG;
1126
textBuffer:PBYTE; maxBufferLength:TLONG; handle:PNUTInfo):longint;cdecl;external External_library name 'NWSViewText';
1128
procedure NWSDisplayHelpScreen(offset:TLONG; handle:PNUTInfo);cdecl;external External_library name 'NWSDisplayHelpScreen';
1130
function NWSAlloc(numberOfBytes:TLONG; handle:PNUTInfo):pointer;cdecl;external External_library name 'NWSAlloc';
1132
procedure NWSFree(address:pointer; handle:PNUTInfo);cdecl;external External_library name 'NWSFree';
1134
function NWSDisplayTextJustifiedInPortal(justify:TLONG; line:TLONG; column:TLONG; textWidth:TLONG; text:PBYTE;
1135
attribute:TLONG; portal:PPCB):longint;cdecl;external External_library name 'NWSDisplayTextJustifiedInPortal';
1137
function NWSDisplayInformationInPortal(header:TLONG; portalJustifyLine:TLONG; portalJustifyColumn:TLONG; portalJustifyType:TLONG; portalPalette:TLONG;
1138
portalBorderType:TLONG; portalMaxWidth:TLONG; portalMaxHeight:TLONG; portalMinWidth:TLONG; portalMinHeight:TLONG;
1139
textLRJustifyType:TLONG; textLRIndent:TLONG; textTBJustifyType:TLONG; textTBIndent:TLONG; textAttribute:TLONG;
1140
textMinimizeStyle:TLONG; text:PBYTE; handle:PNUTInfo):longint;cdecl;external External_library name 'NWSDisplayInformationInPortal';
1142
procedure NWSRestoreNut(handle:PNUTInfo);cdecl;external External_library name 'NWSRestoreNut';
1144
procedure NWSDrawPortalBorder(portal:PPCB);cdecl;external External_library name 'NWSDrawPortalBorder';
1146
procedure NWSUpdatePortal(portal:PPCB);cdecl;external External_library name 'NWSUpdatePortal';
1148
type TSSFEntryProc = procedure (para1:PFIELD; para2:pointer; para3:PNUTInfo); cdecl;
1149
TSSFCustomDataReleaseProc = procedure (para1:pointer; para2:PNUTInfo); cdecl;
1150
TSSFFormat=procedure (para1:PFIELD; text:PBYTE; para3:TLONG); cdecl;
1151
TSSFControlFunc = function (para1:PFIELD; para2:longint; para3:Plongint; para4:PNUTInfo):TLONG; cdecl;
1152
TSSFVerifyFunc = function (para1:PFIELD; para2:PBYTE; para3:PNUTInfo):longint; cdecl;
1153
TSSFReleaseProc = procedure (para1:PFIELD); cdecl;
1155
procedure NWSSetFieldFunctionPtr(fp:PFIELD;
1156
Format : TSSFFormat;
1157
Control: TSSFControlFunc;
1158
Verify : TSSFVerifyFunc;
1159
Release: TSSFReleaseProc;
1160
Entry : TSSFEntryProc;
1162
: TSSFCustomDataReleaseProc);cdecl;external External_library name 'NWSSetFieldFunctionPtr';
1164
procedure NWSGetFieldFunctionPtr(
1166
var Format : TSSFFormat;
1167
var Control : TSSFControlFunc;
1168
var Verify : TSSFVerifyFunc;
1169
var Release : TSSFReleaseProc;
1170
var Entry : TSSFEntryProc;
1171
var customDataRelease:TSSFCustomDataReleaseProc);cdecl;external External_library name 'NWSGetFieldFunctionPtr';
1173
type TCompareFunc = function (el1:PLIST; el2:PLIST):longint; cdecl;
1174
procedure NWSSetDefaultCompare(handle:PNUTInfo;
1175
defaultCompareFunction:TCompareFunc);cdecl;external External_library name 'NWSSetDefaultCompare';
1177
procedure NWSGetDefaultCompare(handle:PNUTInfo; var defaultCompareFunction:TCompareFunc);cdecl;external External_library name 'NWSGetDefaultCompare';
1179
type TlistSortFunction = procedure (head:PLIST; tail:PLIST; handle:PNUTInfo); cdecl;
1180
{ added in version 402 }
1181
procedure NWSSetListSortFunction(handle:PNUTInfo;
1182
listSortFunction:TlistSortFunction);cdecl;external External_library name 'NWSSetListSortFunction';
1184
{ added in version 402 }
1185
procedure NWSGetListSortFunction(handle:PNUTInfo;
1186
var listSortFunction:TlistSortFunction);cdecl;external External_library name 'NWSGetListSortFunction';
1188
procedure NWSSetScreenPalette(newPalette:TLONG; handle:PNUTInfo);cdecl;external External_library name 'NWSSetScreenPalette';
1190
function NWSGetScreenPalette(handle:PNUTInfo):TLONG;cdecl;external External_library name 'NWSGetScreenPalette';
1192
procedure NWSGetPCB(var _pPcb:PPCB; portalNumber:TLONG; handle:PNUTInfo);cdecl;external External_library name 'NWSGetPCB';
1194
type TentryProcedure = procedure (element:PLIST; displayLine:TLONG; handle:PNUTInfo); cdecl;
1195
procedure NWSSetListNotifyProcedure(el:PLIST;
1196
entryProcedure:TentryProcedure);cdecl;external External_library name 'NWSSetListNotifyProcedure';
1198
procedure NWSGetListNotifyProcedure(el:PLIST;
1199
var entryProcedure:TentryProcedure);cdecl;external External_library name 'NWSGetListNotifyProcedure';
1201
type TcdReleaseProc = procedure (theData:pointer; handle:PNUTInfo); cdecl;
1202
procedure NWSSetHandleCustomData(handle:PNUTInfo;
1204
customDataRelease:TcdReleaseProc);cdecl;external External_library name 'NWSSetHandleCustomData';
1206
procedure NWSGetHandleCustomData(handle:PNUTInfo;
1207
customData:Ppointer;
1208
customDataRelease:TcdReleaseProc);cdecl;external External_library name 'NWSGetHandleCustomData';
1210
procedure NWSSetErrorLabelDisplayFlag(flag:TLONG;
1211
handle:PNUTInfo);cdecl;external External_library name 'NWSSetErrorLabelDisplayFlag';
1213
procedure NWSSetHelpHelp(helpIndex:TLONG;
1214
handle:PNUTInfo);cdecl;external External_library name 'NWSSetHelpHelp';
1216
{ max length of passwordString, including NULL }
1217
function NWSPromptForPassword(passwordHeader:TLONG; line:TLONG; column:TLONG; maxPasswordLen:TLONG; passwordString:PBYTE;
1218
verifyEntry:TLONG; handle:PNUTInfo):TLONG;cdecl;external External_library name 'NWSPromptForPassword';
1221
{ ptr to field text }
1224
{ force password verification }
1225
{ fill character for field }
1226
function NWSAppendPasswordField(line:TLONG; column:TLONG; width:TLONG; fflag:TLONG; data:PBYTE;
1227
maxDataLen:TLONG; help:TLONG; verifyEntry:TLONG; passwordPortalHeader:TLONG; maskCharacter:TLONG;
1228
handle:PNUTInfo):PFIELD;cdecl;external External_library name 'NWSAppendPasswordField';
1230
{ field display width in form }
1231
{ field flags (NORMAL_FIELD, etc.) }
1232
{ ptr to field text }
1233
{ max len of data, allowing for null terminator }
1234
{ valid characters, if using EF_SET }
1235
{ NWSEditString flags (EF_UPPER etc.) }
1236
function NWSAppendScrollableStringField(line:TLONG; column:TLONG; width:TLONG; fflag:TLONG; data:PBYTE;
1237
maxLen:TLONG; cset:PBYTE; editFlags:TLONG; help:TLONG; handle:PNUTInfo):PFIELD;cdecl;external External_library name 'NWSAppendScrollableStringField';
1239
type TSSFInsertFunc = function (_string:PBYTE; maxLen:TLONG; parameters:pointer):longint; cdecl;
1240
procedure NWSSetScrollableFieldInsertProc(fp:PFIELD; insertProc:TSSFInsertFunc);cdecl;external External_library name 'NWSSetScrollableFieldInsertProc';
1242
{ Returns 0 for success, -1 if none selected }
1243
{ if not NULL, returns portal number }
1244
function NWSGetCurrentPortal(nutInfo:PNUTInfo; portalNumber:PLONG; var portal:PPCB):TLONG;cdecl;external External_library name 'NWSGetCurrentPortal';
1246
{ if not NULL, returns PCB pointer }
1247
function NWSWaitForKeyAndValue(handle:PNUTInfo;
1249
keyType:array of TLONG;
1250
keyValue:array of TLONG):longint;cdecl;external External_library name 'NWSWaitForKeyAndValue';
1252
procedure NWSShowLineAttribute(line:TLONG;
1257
screenID:PScreenStruct);cdecl;external External_library name 'NWSShowLineAttribute';
1259
procedure NWSShowLine(line:TLONG; column:TLONG; text:PBYTE; length:TLONG; screenID:PScreenStruct);cdecl;external External_library name 'NWSShowLine';
1261
procedure NWSScrollZone(line:TLONG; column:TLONG; height:TLONG; width:TLONG; attribute:TLONG;
1262
count:TLONG; direction:TLONG; screenID:PScreenStruct);cdecl;external External_library name 'NWSScrollZone';
1264
procedure NWSSaveZone(line:TLONG; column:TLONG; height:TLONG; width:TLONG; buffer:PBYTE;
1265
screenID:PScreenStruct);cdecl;external External_library name 'NWSSaveZone';
1267
procedure NWSRestoreZone(line:TLONG; column:TLONG; height:TLONG; width:TLONG; buffer:PBYTE;
1268
screenID:PScreenStruct);cdecl;external External_library name 'NWSRestoreZone';
1270
procedure NWSRestoreDisplay(screenID:PScreenStruct);cdecl;external External_library name 'NWSRestoreDisplay';
1272
procedure NWSPositionCursor(line:TLONG; column:TLONG; screenID:PScreenStruct);cdecl;external External_library name 'NWSPositionCursor';
1274
procedure NWSGetNUTVersion(majorVersion:PLONG; minorVersion:PLONG; revision:PLONG);cdecl;external External_library name 'NWSGetNUTVersion';
1276
procedure NWSSetFormRepaintFlag(value:TLONG; handle:PNUTInfo);cdecl;external External_library name 'NWSSetFormRepaintFlag';
1278
procedure NWSSetFormNoWrap(handle:PNUTInfo);cdecl;external External_library name 'NWSSetFormNoWrap';
1280
function NWSViewTextWithScrollBars(centerLine:TLONG; centerColumn:TLONG; height:TLONG; width:TLONG; headerNumber:TLONG;
1281
textBuffer:PBYTE; maxBufferLength:TLONG; scrollBarFlag:TLONG; handle:PNUTInfo):longint;cdecl;external External_library name 'NWSViewTextWithScrollBars';
1283
{ length of document }
1284
function NWSEditTextWithScrollBars(centerLine:TLONG; centerColumn:TLONG; height:TLONG; width:TLONG; headerNumber:TLONG;
1285
textBuffer:PBYTE; maxBufferLength:TLONG; confirmMessage:TLONG; forceConfirm:TLONG; scrollBarFlag:TLONG;
1286
handle:PNUTInfo):longint;cdecl;external External_library name 'NWSEditTextWithScrollBars';
1291
{ was #define dname def_expr }
1292
function F_H1 : longint;
1293
{ return type might be wrong }
1295
F_H1:=NWSGetLineDrawCharacter(0);
1298
{ was #define dname def_expr }
1299
function F_H2 : longint;
1300
{ return type might be wrong }
1302
F_H2:=NWSGetLineDrawCharacter(1);
1305
{ was #define dname def_expr }
1306
function F_V1 : longint;
1307
{ return type might be wrong }
1309
F_V1:=NWSGetLineDrawCharacter(2);
1312
{ was #define dname def_expr }
1313
function F_V2 : longint;
1314
{ return type might be wrong }
1316
F_V2:=NWSGetLineDrawCharacter(3);
1319
{ was #define dname def_expr }
1320
function F_UL1 : longint;
1321
{ return type might be wrong }
1323
F_UL1:=NWSGetLineDrawCharacter(4);
1326
{ was #define dname def_expr }
1327
function F_UR1 : longint;
1328
{ return type might be wrong }
1330
F_UR1:=NWSGetLineDrawCharacter(5);
1333
{ was #define dname def_expr }
1334
function F_LL1 : longint;
1335
{ return type might be wrong }
1337
F_LL1:=NWSGetLineDrawCharacter(6);
1340
{ was #define dname def_expr }
1341
function F_LR1 : longint;
1342
{ return type might be wrong }
1344
F_LR1:=NWSGetLineDrawCharacter(7);
1347
{ was #define dname def_expr }
1348
function F_UL2 : longint;
1349
{ return type might be wrong }
1351
F_UL2:=NWSGetLineDrawCharacter(8);
1354
{ was #define dname def_expr }
1355
function F_UR2 : longint;
1356
{ return type might be wrong }
1358
F_UR2:=NWSGetLineDrawCharacter(9);
1361
{ was #define dname def_expr }
1362
function F_LL2 : longint;
1363
{ return type might be wrong }
1365
F_LL2:=NWSGetLineDrawCharacter(10);
1368
{ was #define dname def_expr }
1369
function F_LR2 : longint;
1370
{ return type might be wrong }
1372
F_LR2:=NWSGetLineDrawCharacter(11);
1375
{ was #define dname def_expr }
1376
function F_UT1 : longint;
1377
{ return type might be wrong }
1379
F_UT1:=NWSGetLineDrawCharacter(12);
1382
{ was #define dname def_expr }
1383
function F_DT1 : longint;
1384
{ return type might be wrong }
1386
F_DT1:=NWSGetLineDrawCharacter(13);
1389
{ was #define dname def_expr }
1390
function F_LT1 : longint;
1391
{ return type might be wrong }
1393
F_LT1:=NWSGetLineDrawCharacter(14);
1396
{ was #define dname def_expr }
1397
function F_RT1 : longint;
1398
{ return type might be wrong }
1400
F_RT1:=NWSGetLineDrawCharacter(15);
1403
{ was #define dname def_expr }
1404
function F_UT2 : longint;
1405
{ return type might be wrong }
1407
F_UT2:=NWSGetLineDrawCharacter(24);
1410
{ was #define dname def_expr }
1411
function F_DT2 : longint;
1412
{ return type might be wrong }
1414
F_DT2:=NWSGetLineDrawCharacter(25);
1417
{ was #define dname def_expr }
1418
function F_LT2 : longint;
1419
{ return type might be wrong }
1421
F_LT2:=NWSGetLineDrawCharacter(26);
1424
{ was #define dname def_expr }
1425
function F_RT2 : longint;
1426
{ return type might be wrong }
1428
F_RT2:=NWSGetLineDrawCharacter(27);
1431
{ was #define dname def_expr }
1432
function F_X1 : longint;
1433
{ return type might be wrong }
1435
F_X1:=NWSGetLineDrawCharacter(36);
1438
{ was #define dname def_expr }
1439
function F_X2 : longint;
1440
{ return type might be wrong }
1442
F_X2:=NWSGetLineDrawCharacter(39);
1445
{ was #define dname def_expr }
1446
function F_UP : longint;
1447
{ return type might be wrong }
1449
F_UP:=NWSGetLineDrawCharacter(40);
1452
{ was #define dname def_expr }
1453
function F_DOWN : longint;
1454
{ return type might be wrong }
1456
F_DOWN:=NWSGetLineDrawCharacter(41);
1459
{ was #define dname def_expr }
1460
function F_LEFT : longint;
1461
{ return type might be wrong }
1463
F_LEFT:=NWSGetLineDrawCharacter(42);
1466
{ was #define dname def_expr }
1467
function F_RIGHT : longint;
1468
{ return type might be wrong }
1470
F_RIGHT:=NWSGetLineDrawCharacter(43);
1473
{ was #define dname def_expr }
1474
function F_BG1 : longint;
1475
{ return type might be wrong }
1477
F_BG1:=NWSGetLineDrawCharacter(44);
1480
{ was #define dname def_expr }
1481
function F_BG2 : longint;
1482
{ return type might be wrong }
1484
F_BG2:=NWSGetLineDrawCharacter(45);
1487
{ was #define dname def_expr }
1488
function F_BG3 : longint;
1489
{ return type might be wrong }
1491
F_BG3:=NWSGetLineDrawCharacter(46);
1494
{ was #define dname def_expr }
1495
function F_BG4 : longint;
1496
{ return type might be wrong }
1498
F_BG4:=NWSGetLineDrawCharacter(47);
1501
{ was #define dname(params) para_def_expr }
1502
{ argument types are unknown }
1503
{ return type might be wrong }
1504
function IS_DYNAMIC_MESSAGE(a : longint) : boolean;
1506
IS_DYNAMIC_MESSAGE:=(a > $fff0) and (a < $ffff);
1514
Revision 1.1 2003/02/16 17:45:08 armin
1515
* added nwsnut, nwconio and nwthreads for netware
b'\\ No newline at end of file'