{$I OVC.INC}

{$B-} {Complete Boolean Evaluation}
{$I+} {Input/Output-Checking}
{$P+} {Open Parameters}
{$T-} {Typed @ Operator}
{$W-} {Windows Stack Frame}
{$X+} {Extended Syntax}

{$IFNDEF Win32}
{$G+} {286 Instructions}
{$N+} {Numeric Coprocessor}
{$C MOVEABLE,DEMANDLOAD,DISCARDABLE}
{$ENDIF}

{*********************************************************}
{*                  OVCCONST.PAS 2.00                    *}
{*     Copyright (c) TurboPower Software Co 1995-96      *}
{*                 All rights reserved.                  *}
{*********************************************************}

{$IFDEF Win32}
  {$R OVCCONST.R32}
{$ELSE}
  {$R OVCCONST.R16}
{$ENDIF}

unit OvcConst;
  {-command and resource constants}

interface

const
  {value used to offset string resource id's}
  BaseOffset      = 32768; {***}

const
  {offset for resource id's}
  CommandResOfs  = BaseOffset + 1000; {***}

  {command codes - corresponding text offset by CommandOfs, stored in rc file}
  {*** must be contiguous ***}
  ccFirstCmd               =  0; {first defined command}
  ccNone                   =  0; {no command or not a known command}
  ccBack                   =  1; {backspace one character}
  ccBotOfPage              =  2; {move caret to end of last page}
  ccBotRightCell           =  3; {move to the bottom right hand cell in a table}
  ccCompleteDate           =  4; {use default date for current date sub field}
  ccCompleteTime           =  5; {use default time for current time sub field}
  ccCopy                   =  6; {copy highlighted text to clipboard}
  ccCtrlChar               =  7; {accept control character}
  ccCut                    =  8; {copy highlighted text to clipboard and delete it}
  ccDec                    =  9; {decrement the current entry field value}
  ccDel                    = 10; {delete current character}
  ccDelBol                 = 11; {delete from caret to beginning of line}
  ccDelEol                 = 12; {delete from caret to end of line}
  ccDelLine                = 13; {delete entire line}
  ccDelWord                = 14; {delete word to right of caret}
  ccDown                   = 15; {cursor down}
  ccEnd                    = 16; {caret to end of line}
  ccExtendDown             = 17; {extend selection down one line}
  ccExtendEnd              = 18; {extend highlight to end of field}
  ccExtendHome             = 19; {extend highlight to start of field}
  ccExtendLeft             = 20; {extend highlight left one character}
  ccExtendPgDn             = 21; {extend selection down one page}
  ccExtendPgUp             = 22; {extend selection up one page}
  ccExtendRight            = 23; {extend highlight right one character}
  ccExtendUp               = 24; {extend selection up one line}
  ccExtBotOfPage           = 25; {extend selection to bottom of page}
  ccExtFirstPage           = 26; {extend selection to first page}
  ccExtLastPage            = 27; {extend selection to last page}
  ccExtTopOfPage           = 28; {extend selection to top of page}
  ccExtWordLeft            = 29; {extend highlight left one word}
  ccExtWordRight           = 30; {extend highlight right one word}
  ccFirstPage              = 31; {first page in table}
  ccGotoMarker0            = 32; {editor & viewer, go to a position marker}
  ccGotoMarker1            = 33; {editor & viewer, go to a position marker}
  ccGotoMarker2            = 34; {editor & viewer, go to a position marker}
  ccGotoMarker3            = 35; {editor & viewer, go to a position marker}
  ccGotoMarker4            = 36; {editor & viewer, go to a position marker}
  ccGotoMarker5            = 37; {editor & viewer, go to a position marker}
  ccGotoMarker6            = 38; {editor & viewer, go to a position marker}
  ccGotoMarker7            = 39; {editor & viewer, go to a position marker}
  ccGotoMarker8            = 40; {editor & viewer, go to a position marker}
  ccGotoMarker9            = 41; {editor & viewer, go to a position marker}
  ccHome                   = 42; {caret to beginning of line}
  ccInc                    = 43; {increment the current entry field value}
  ccIns                    = 44; {toggle insert mode}
  ccLastPage               = 45; {last page in table}
  ccLeft                   = 46; {caret left by one character}
  ccNewLine                = 47; {editor, create a new line}
  ccNextPage               = 48; {next page in table}
  ccPageLeft               = 49; {move left a page in the table}
  ccPageRight              = 50; {move right a page in the table}
  ccPaste                  = 51; {paste text from clipboard}
  ccPrevPage               = 52; {previous page in table}
  ccRedo                   = 53; {re-do aaathe last undone operation}
  ccRestore                = 54; {restore default and continue}
  ccRight                  = 55; {caret right by one character}
  ccScrollDown             = 56; {editor, scroll page up one line}
  ccScrollUp               = 57; {editor, scroll page down one line}
  ccSetMarker0             = 58; {editor & viewer, set a position marker}
  ccSetMarker1             = 59; {editor & viewer, set a position marker}
  ccSetMarker2             = 60; {editor & viewer, set a position marker}
  ccSetMarker3             = 61; {editor & viewer, set a position marker}
  ccSetMarker4             = 62; {editor & viewer, set a position marker}
  ccSetMarker5             = 63; {editor & viewer, set a position marker}
  ccSetMarker6             = 64; {editor & viewer, set a position marker}
  ccSetMarker7             = 65; {editor & viewer, set a position marker}
  ccSetMarker8             = 66; {editor & viewer, set a position marker}
  ccSetMarker9             = 67; {editor & viewer, set a position marker}
  ccTab                    = 68; {editor, for tab entry}
  ccTableEdit              = 69; {enter/exit table edit mode}
  ccTopLeftCell            = 70; {move to the top left cell in a table}
  ccTopOfPage              = 71; {move caret to beginning of first page}
  ccUndo                   = 72; {undo last operation}
  ccUp                     = 73; {cursor up}
  ccWordLeft               = 74; {caret left one word}
  ccWordRight              = 75; {caret right one word}

  ccLastCmd                = 75; {***} {last interfaced command}

  {internal}
  ccChar                   = 249; {regular character; generated internally}
  ccMouse                  = 250; {mouse selection; generated internally}
  ccMouseMove              = 251; {mouse move; generated internally}
  ccAccept                 = 252; {accept next key; internal}
  ccDblClk                 = 253; {mouse double click; generated internally}
  ccSuppress               = 254; {suppress next key; internal}
  ccPartial                = 255; {partial command; internal}

  {user defined commands start here}
  ccUserFirst              = 256;
  ccUser0                  = ccUserFirst + 0;
  ccUser1                  = ccUserFirst + 1;
  ccUser2                  = ccUserFirst + 2;
  ccUser3                  = ccUserFirst + 3;
  ccUser4                  = ccUserFirst + 4;
  ccUser5                  = ccUserFirst + 5;
  ccUser6                  = ccUserFirst + 6;
  ccUser7                  = ccUserFirst + 7;
  ccUser8                  = ccUserFirst + 8;
  ccUser9                  = ccUserFirst + 9;
  {...                     = ccUserFirst + 65535 - ccUserFirst}

{data type base offset}
const
  DataTypeOfs              =  BaseOffset + 1300; {***}

{entry field data type sub codes}
const
  fsubString               =  0; {field subclass codes}
  fsubChar                 =  1;
  fsubBoolean              =  2;
  fsubYesNo                =  3;
  fsubLongInt              =  4;
  fsubWord                 =  5;
  fsubInteger              =  6;
  fsubByte                 =  7;
  fsubShortInt             =  8;
  fsubReal                 =  9;
  fsubExtended             = 10;
  fsubDouble               = 11;
  fsubSingle               = 12;
  fsubComp                 = 13;
  fsubDate                 = 14;
  fsubTime                 = 15;


{constants for exception messages}
const
  ExceptOfs                = BaseOffset + 1400; {***}

  SCUnknownError           = ExceptOfs +  0;
  SCDuplicateCommand       = ExceptOfs +  1;
  SCTableNotFound          = ExceptOfs +  2;
  SCNotDoneYet             = ExceptOfs +  3;
  SCNoControllerAssigned   = ExceptOfs +  4;
  SCCantCreateCommandTable = ExceptOfs +  5;
  SCCantDelete             = ExceptOfs +  6;
  SCInvalidKeySequence     = ExceptOfs +  7;
  SCNotWordStarCommands    = ExceptOfs +  8;
  SCNoCommandSelected      = ExceptOfs +  9;
  SCDuplicateKeySequence   = ExceptOfs + 10;
  SCRangeError             = ExceptOfs + 11;
  SCInvalidNumber          = ExceptOfs + 12;
  SCRequiredField          = ExceptOfs + 13;
  SCInvalidDate            = ExceptOfs + 14;
  SCInvalidTime            = ExceptOfs + 15;
  SCBlanksInField          = ExceptOfs + 16;
  SCPartialEntry           = ExceptOfs + 17;
  SCRegionTooLarge         = ExceptOfs + 18;
  SCOutOfMemoryForCopy     = ExceptOfs + 19;
  SCInvalidParamValue      = ExceptOfs + 20;
  SCNoTimersAvail          = ExceptOfs + 21;
  SCTooManyEvents          = ExceptOfs + 22;
  SCBadTriggerHandle       = ExceptOfs + 23;
  SCOnSelectNotAssigned    = ExceptOfs + 24;
  SCInvalidPageIndex       = ExceptOfs + 25;
  SCInvalidDataType        = ExceptOfs + 26;
  SCInvalidTabFont         = ExceptOfs + 27;
  SCInvalidLabelFont       = ExceptOfs + 28;
  SCOutOfMemory            = ExceptOfs + 29;
  SCTooManyParas           = ExceptOfs + 30;
  SCCannotJoin             = ExceptOfs + 31;
  SCTooManyBytes           = ExceptOfs + 32;
  SCParaTooLong            = ExceptOfs + 33;
  SCInvalidPictureMask     = ExceptOfs + 34;
  SCInvalidRange           = ExceptOfs + 35;
  SCInvalidRealRange       = ExceptOfs + 36;
  SCInvalidExtendedRange   = ExceptOfs + 37;
  SCInvalidDoubleRange     = ExceptOfs + 38;
  SCInvalidSingleRange     = ExceptOfs + 39;
  SCInvalidCompRange       = ExceptOfs + 40;
  SCInvalidDateRange       = ExceptOfs + 41;
  SCInvalidTimeRange       = ExceptOfs + 42;
  SCInvalidRangeValue      = ExceptOfs + 43;
  SCRangeNotSupported      = ExceptOfs + 44;
  SCInvalidLineOrParaIndex = ExceptOfs + 45;
  SCNonFixedFont           = ExceptOfs + 46;
  SCInvalidFontParam       = ExceptOfs + 47;
  SCInvalidLineOrColumn    = ExceptOfs + 48;
  SCSAEGeneral             = ExceptOfs + 49;
  SCSAEAtMaxSize           = ExceptOfs + 50;
  SCSAEOutOfBounds         = ExceptOfs + 51;
  SCTableGeneral           = ExceptOfs + 52;
  SCTableMaxColumns        = ExceptOfs + 53;
  SCTableMaxRows           = ExceptOfs + 54;
  SCTableRowOutOfBounds    = ExceptOfs + 55;
  SCInvalidFieldType       = ExceptOfs + 56;
  SCBadAlarmHandle         = ExceptOfs + 57;
  SCOnIsSelectedNotAssigned= ExceptOfs + 58;
  SCInvalidDateForMask     = ExceptOfs + 59;
  SCTableToManyColumns     = ExceptOfs + 60;
  SCTableInvalidFieldIndex = ExceptOfs + 61;
  SCTableHeaderNotAssigned = ExceptOfs + 62;
  SCTableInvalidHeaderCell = ExceptOfs + 63;
  SCViewerIOError          = ExceptOfs + 64;
  SCViewerFileNotFound     = ExceptOfs + 65;
  SCViewerPathNotFound     = ExceptOfs + 66;
  SCViewerTooManyOpenFiles = ExceptOfs + 67;
  SCViewerFileAccessDenied = ExceptOfs + 68;

{general constants for string table resource entries}
const
  ConstOfs                 = BaseOffset + 1500; {***}

  SCNoneStr                = ConstOfs +  0;
  SCccUser                 = ConstOfs +  1;
  SCccUserNum              = ConstOfs +  2;
  SCDeleteTable            = ConstOfs +  3;
  SCRenameTable            = ConstOfs +  4;
  SCEnterTableName         = ConstOfs +  5;
  SCNewTable               = ConstOfs +  6;
  SCDefaultTableName       = ConstOfs +  7;
  SCWordStarTableName      = ConstOfs +  8;
  SCUnknownTable           = ConstOfs +  9;
  SCDefaultEntryErrorText  = ConstOfs + 10;
  SCGotItemWarning         = ConstOfs + 11;
  SCSampleListItem         = ConstOfs + 12;
  SCAlphaString            = ConstOfs + 13;
  SCTallLowChars           = ConstOfs + 14;
  SCDefault                = ConstOfs + 15;
  SCGridTableName          = ConstOfs + 16;

{misc constant values}
const
  MiscConstOfs             = BaseOffset + 1600; {***}
  SCYes                    = MiscConstOfs + 0;
  SCNo                     = MiscConstOfs + 1;
  SCTrue                   = MiscConstOfs + 2;
  SCFalse                  = MiscConstOfs + 3;

{constants for simple, picture, and numeric picture}
{mask samples used in the property editors}
const
  PictureMaskOfs           = BaseOffset + 1700; {***}

  {simple field mask characters}
  stsmFirst                = PictureMaskOfs +  0;
  stsmLast                 = stsmFirst + 23;

  {numeric field picture masks}
  stnmFirst                = PictureMaskOfs + 25;
  stnmLast                 = stnmFirst + 17;

  {picture field picture masks}
  stpmFirst                = PictureMaskOfs + 50;
  stpmLast                 = stpmFirst + 23;

const
  {viewer/editor line selection cursor}
  crLineCursor             = BaseOffset - 100;

  {design-time tab selecting cursor id}
  crTabCursor              = BaseOffset - 101;

  {constants for bitmap resources for db array editors}
  bmArrow                  = BaseOffset - 102;
  bmEdit                   = BaseOffset - 103;
  bmInsert                 = BaseOffset - 104;

  {row/column move cursors for the table}
  crRowMove                = BaseOffset - 105;
  crColumnMove             = BaseOffset - 106;

implementation
