/*
 * Xailer source code:
 *
 * Constants.ch
 * Header file for Xailer
 *
 * Copyright 2003, 2007 Jose F. Gimenez
 * Copyright 2003, 2007 Xailer.com
 * All rights reserved
 *
 */

//------------------------------------------------------------------------------

#ifndef _CONSTANTS_CH_
#define _CONSTANTS_CH_

#define CR    Chr( 13 )
#define LF    Chr( 10 )
#define CRLF  ( CR + LF )
#define TAB   Chr( 9 )

#define TB_ID_FIRST 30000

//------------------------------------------------------------------------------

#ifndef __C__

   /* Rect coordinates */
   #xtranslate rtLEFT     =>  1
   #xtranslate rtTOP      =>  2
   #xtranslate rtRIGHT    =>  3
   #xtranslate rtBOTTOM   =>  4
   #translate RectWidth( <aRect> )  => ( <aRect>\[ rtRIGHT \] - <aRect>\[ rtLEFT \] )
   #translate RectHeight( <aRect> ) => ( <aRect>\[ rtBOTTOM \] - <aRect>\[ rtTOP \] )

#else

   #define rtLEFT       1
   #define rtTOP        2
   #define rtRIGHT      3
   #define rtBOTTOM     4

#endif

//------------------------------------------------------------------------------

#ifndef __C__

   /* Alignment Style for TLabel and SetTextAlign() */
   #xtranslate taLEFT     =>  0
   #xtranslate taRIGHT    =>  2
   #xtranslate taCENTER   =>  6
   #xtranslate taTOP      =>  0
   #xtranslate taBOTTOM   =>  8
   #xtranslate taBASELINE => 24

#else

   #define taLEFT       0
   #define taRIGHT      2
   #define taCENTER     6
   #define taTOP        0
   #define taBOTTOM     8
   #define taBASELINE  24

#endif

//------------------------------------------------------------------------------

#ifndef __C__

   /* Vertical Alignment Style for TLabel */
   #xtranslate vaTOP     => 0
   #xtranslate vaCENTER  => 1
   #xtranslate vaBOTTOM  => 2

#else

   #define vaTOP     0
   #define vaCENTER  1
   #define vaBOTTOM  2

#endif

//------------------------------------------------------------------------------

#ifndef __C__

   /* Bevel (Border) Style */
   #xtranslate bvNONE        => 0
   #xtranslate bvHALFRAISED  => 1
   #xtranslate bvHALFSUNKEN  => 2
   #xtranslate bvRAISED      => 3
   #xtranslate bvSUNKEN      => 4
   #xtranslate bvBORDER      => 2
   #xtranslate bvBUMP        => 5
   #xtranslate bvETCHED      => 6
   #xtranslate bvFLAT        => 7
   #xtranslate bvWIN10       => 8

#else

   #define bvNONE        0
   #define bvHALFRAISED  1
   #define bvHALFSUNKEN  2
   #define bvRAISED      3
   #define bvSUNKEN      4
   #define bvBORDER      2
   #define bvBUMP        5
   #define bvETCHED      6
   #define bvFLAT        7
   #define bvWIN10       8

#endif

//------------------------------------------------------------------------------

#ifndef __C__

   /* Border Sides */
   #xtranslate bsNONE            => 0
   #xtranslate bsLEFT            => 1
   #xtranslate bsTOP             => 2
   #xtranslate bsLEFTTOP         => 3
   #xtranslate bsRIGHT           => 4
   #xtranslate bsLEFTRIGHT       => 5
   #xtranslate bsTOPRIGHT        => 6
   #xtranslate bsLEFTTOPRIGHT    => 7
   #xtranslate bsBOTTOM          => 8
   #xtranslate bsLEFTBOTTOM      => 9
   #xtranslate bsTOPBOTTOM       => 10
   #xtranslate bsLEFTTOPBOTTOM   => 11
   #xtranslate bsRIGHTBOTTOM     => 12
   #xtranslate bsLEFTRIGHTBOTTOM => 13
   #xtranslate bsTOPRIGHTBOTTOM  => 14
   #xtranslate bsALL             => 15

#else

   #define bsNONE             0
   #define bsLEFT             1
   #define bsTOP              2
   #define bsLEFTTOP          3
   #define bsRIGHT            4
   #define bsLEFTRIGHT        5
   #define bsTOPRIGHT         6
   #define bsLEFTTOPRIGHT     7
   #define bsBOTTOM           8
   #define bsLEFTBOTTOM       9
   #define bsLTOPBOTTOM       10
   #define bsLEFTTOPBOTTOM    11
   #define bsRIGHTBOTTOM      12
   #define bsLEFTRIGHTBOTTOM  13
   #define bsTOPRIGHTBOTTOM   14
   #define bsALL              15

#endif

//------------------------------------------------------------------------------

#ifndef __C__

   /* Border Style for TForm */
   #xtranslate bsCUSTOM      => -1
   #xtranslate bsNONE        =>  0
   #xtranslate bsSINGLE      =>  1
   #xtranslate bsSIZEABLE    =>  2
   #xtranslate bsDIALOG      =>  3
   #xtranslate bsTOOLWINDOW  =>  4
   #xtranslate bsSIZETOOLWIN =>  5
   #xtranslate bsSPLASH      =>  6

#else

   #define bsCUSTOM      -1
   #define bsNONE         0
   #define bsSINGLE       1
   #define bsSIZEABLE     2
   #define bsDIALOG       3
   #define bsTOOLWINDOW   4
   #define bsSIZETOOLWIN  5
   #define bsSPLASH       6

#endif

//------------------------------------------------------------------------------

#ifndef __C__

   /* Layout Styles for Background Bitmaps */
   #xtranslate blCOPY            => 0
   #xtranslate blTOPLEFT         => 0
   #xtranslate blTOPRIGHT        => 1
   #xtranslate blBOTTOMLEFT      => 2
   #xtranslate blBOTTOMRIGHT     => 3
   #xtranslate blCENTER          => 4
   #xtranslate blFIT             => 5
   #xtranslate blFITSMOOTH       => ( blFIT + blSMOOTH )
   #xtranslate blTILED           => 6
   #xtranslate blSTRETCH         => 7
   #xtranslate blSTRETCHSMOOTH   => ( blSTRETCH + blSMOOTH )
   #xtranslate blFILL            => 8
   #xtranslate blFILLSMOOTH      => ( blFILL + blSMOOTH )
   #xtranslate blSMOOTH          => 0x80

#else

   #define blCOPY             0
   #define blTOPLEFT          0
   #define blTOPRIGHT         1
   #define blBOTTOMLEFT       2
   #define blBOTTOMRIGHT      3
   #define blCENTER           4
   #define blFIT              5
   #define blFITSMOOTH        ( blFIT | blSMOOTH )
   #define blTILED            6
   #define blSTRETCH          7
   #define blSTRETCHSMOOTH    ( blSTRETCH | blSMOOTH )
   #define blFILL             8
   #define blFILLSMOOTH       ( blFILL | blSMOOTH )
   #define blSMOOTH           0x80

#endif

//------------------------------------------------------------------------------

#ifndef __C__

   /* Styles for nGradient */
   #xtranslate grNONE            => 0
   #xtranslate grHORIZONTAL      => 1
   #xtranslate grVERTICAL        => 2

#else

   #define grNONE             0
   #define grHORIZONTAL       1
   #define grVERTICAL         2

#endif

//------------------------------------------------------------------------------

#ifndef __C__

   /* nAlign for all controls */
   #xtranslate alNONE         => 0
   #xtranslate alLEFT         => 1
   #xtranslate alTOP          => 2
   #xtranslate alRIGHT        => 3
   #xtranslate alBOTTOM       => 4
   #xtranslate alCLIENT       => 5

#else

   #define alNONE     0
   #define alLEFT     1
   #define alTOP      2
   #define alRIGHT    3
   #define alBOTTOM   4
   #define alCLIENT   5

#endif

//------------------------------------------------------------------------------

#ifndef __C__

   /* nAnchors for all controls */
   #xtranslate akNONE             => 0
   #xtranslate akLEFT             => 1
   #xtranslate akTOP              => 2
   #xtranslate akRIGHT            => 4
   #xtranslate akBOTTOM           => 8

   /* Combinated anchors */
   #xtranslate akLEFTTOP          => 3
   #xtranslate akLEFTRIGHT        => 5
   #xtranslate akLEFTBOTTOM       => 9

   #xtranslate akTOPLEFT          => 3
   #xtranslate akTOPRIGHT         => 6
   #xtranslate akTOPBOTTOM        => 10

   #xtranslate akRIGHTLEFT        => 5
   #xtranslate akRIGHTTOP         => 6
   #xtranslate akRIGHTBOTTOM      => 12

   #xtranslate akBOTTOMLEFT       => 9
   #xtranslate akBOTTOMTOP        => 10
   #xtranslate akBOTTOMRIGHT      => 12

   #xtranslate akLEFTTOPRIGHT     => 7
   #xtranslate akLEFTRIGHTTOP     => 7
   #xtranslate akTOPLEFTRIGHT     => 7
   #xtranslate akTOPRIGHTLEFT     => 7
   #xtranslate akRIGHTLEFTTOP     => 7
   #xtranslate akRIGHTTOPLEFT     => 7

   #xtranslate akBOTTOMTOPRIGHT   => 14
   #xtranslate akBOTTOMRIGHTTOP   => 14
   #xtranslate akTOPBOTTOMRIGHT   => 14
   #xtranslate akTOPRIGHTBOTTOM   => 14
   #xtranslate akRIGHTBOTTOMTOP   => 14
   #xtranslate akRIGHTTOPBOTTOM   => 14

   #xtranslate akBOTTOMTOPLEFT    => 11
   #xtranslate akBOTTOMLEFTTOP    => 11
   #xtranslate akTOPBOTTOMLEFT    => 11
   #xtranslate akTOPLEFTBOTTOM    => 11
   #xtranslate akLEFTBOTTOMTOP    => 11
   #xtranslate akLEFTTOPBOTTOM    => 11

   #xtranslate akBOTTOMRIGHTLEFT  => 13
   #xtranslate akBOTTOMLEFTRIGHT  => 13
   #xtranslate akRIGHTBOTTOMLEFT  => 13
   #xtranslate akRIGHTLEFTBOTTOM  => 13
   #xtranslate akLEFTBOTTOMRIGHT  => 13
   #xtranslate akLEFTRIGHTBOTTOM  => 13

   #xtranslate akALL              => 15

#else

   #define akNONE     0
   #define akLEFT     1
   #define akTOP      2
   #define akRIGHT    4
   #define akBOTTOM   8
   #define akTOPLEFT  3

#endif

//------------------------------------------------------------------------------

#ifndef __C__

   /* Orientation Style for TTabCtrl */
   #xtranslate orTOP        => 0
   #xtranslate orBOTTOM     => 1
   #xtranslate orLEFT       => 2
   #xtranslate orRIGHT      => 3
   #xtranslate orHORIZONTAL => 4
   #xtranslate orVERTICAL   => 5

#else

   #define orTOP        0
   #define orBOTTOM     1
   #define orLEFT       2
   #define orRIGHT      3
   #define orHORIZONTAL 4
   #define orVERTICAL   5

#endif

//------------------------------------------------------------------------------

#ifndef __C__

   /* Styles for TComboBox */
   #xtranslate csDROPDOWN      => 0
   #xtranslate csDROPDOWNLIST  => 1

#endif

//------------------------------------------------------------------------------

#ifndef __C__

   /* Order styles for THeader */
   #xtranslate hsNONE        =>  0
   #xtranslate hsASCENDING   =>  1
   #xtranslate hsDESCENDING  => -1

#endif

//------------------------------------------------------------------------------

#ifndef __C__

   /* Styles for lines on TBrowse */
   #xtranslate blNOLINES     => 0
   #xtranslate blBLACK       => 1
   #xtranslate blDARKGRAY    => 2
   #xtranslate blFORECOLOR   => 3
   #xtranslate blLIGHTGRAY   => 4
   #xtranslate blINSET       => 5
   #xtranslate blRAISED      => 6

   /* Styles for marquee on TBrowse */
   #xtranslate bmNOMARQUEE   => 0
   #xtranslate bmDOTEDCELL   => 1
   #xtranslate bmSOLIDCELL   => 2
   #xtranslate bmHIGHLCELL   => 3
   #xtranslate bmHIGHLROWRC  => 4
   #xtranslate bmHIGHLROW    => 5
   #xtranslate bmHIGHLROWMS  => 6

   /* Styles for edition on TBrowse */
   #xtranslate beNONE             => 0
   #xtranslate beGET              => 1
   #xtranslate beGET_BUTTON       => 2
   #xtranslate beGET_LISTBOX      => 3
   #xtranslate beBUTTON           => 4
   #xtranslate beLISTBOX          => 5
   #xtranslate beGET_CALENDAR     => 6
   #xtranslate beCALENDAR         => 7
   #xtranslate beGET_MEMO         => 8
   #xtranslate beMEMO             => 9

   #xtranslate beREAD             => 0
   #xtranslate beEDIT             => 1
   #xtranslate beAPPEND           => 2
   #xtranslate beINSERT           => 3

   /* Styles for column sorting on TBrowse */
   #xtranslate bsNONE          =>  0
   #xtranslate bsASCENDING     =>  1
   #xtranslate bsDESCENDING    => -1

   /* Styles for scrollbars TBrowse */
   #xtranslate bsAUTO   => Nil
   #xtranslate bsYES    => .T.
   #xtranslate bsNO     => .F.

   /* Extended Styles for column alignment on TBrowse */
   #xtranslate taHEADER            => 240
   #xtranslate taLEFTHEADERRIGHT   => 32 // nOr( taLEFT, 0x20 )
   #xtranslate taLEFTHEADERCENTER  => 64 // nOr( taLEFT, 0x40 )
   #xtranslate taRIGHTHEADERLEFT   => 18 // nOr( taRIGHT, 0x10 )
   #xtranslate taRIGHTHEADERCENTER => 66 // nOr( taRIGHT, 0x40 )
   #xtranslate taCENTERHEADERLEFT  => 22 // nOr( taCENTER, 0x10 )
   #xtranslate taCENTERHEADERRIGHT => 38 // nOr( taCENTER, 0x20 )

#else

   /* Styles for lines on TBrowse */
   #define blNOLINES      0
   #define blBLACK        1
   #define blDARKGRAY     2
   #define blFORECOLOR    3
   #define blLIGHTGRAY    4
   #define blINSET        5
   #define blRAISED       6

   /* Styles for edition on TBrowse */
   #define beREAD         0
   #define beEDIT         1
   #define beAPPEND       2
   #define beINSERT       3

#endif

//------------------------------------------------------------------------------

/* Mensajes privados de Xailer */
#define WM_XAILER                         WM_USER + 1

//------------------------------------------------------------------------------

#ifndef __C__

   /* nModalResult for buttons */
   #xtranslate mrNONE     => 0
   #xtranslate mrOK       => IDOK
   #xtranslate mrCANCEL   => IDCANCEL
   #xtranslate mrABORT    => IDABORT
   #xtranslate mrRETRY    => IDRETRY
   #xtranslate mrIGNORE   => IDIGNORE
   #xtranslate mrYES      => IDYES
   #xtranslate mrNO       => IDNO
   #xtranslate mrCLOSE    => IDCLOSE
   #xtranslate mrHELP     => IDHELP
   #xtranslate mrTRYAGAIN => IDTRYAGAIN
   #xtranslate mrCONTINUE => IDCONTINUE
   #xtranslate mrALL      => -1
   #xtranslate mrNOTOALL  => -2
   #xtranslate mrYESTOALL => -3

#endif

//------------------------------------------------------------------------------

#ifndef __C__

   /* nShowMode for TForm */
   #xtranslate smNORMAL   => SW_NORMAL
   #xtranslate smMAXIMIZE => SW_MAXIMIZE
   #xtranslate smMINIMIZE => SW_MINIMIZE

#endif

//------------------------------------------------------------------------------

#ifndef __C__

   /* nFormType for TForm */
   #xtranslate ftNORMAL    => 0
   #xtranslate ftMDIFRAME  => 1
   #xtranslate ftMDICHILD  => 2

#else

   #define ftNORMAL     0
   #define ftMDIFRAME   1
   #define ftMDICHILD   2

#endif

//------------------------------------------------------------------------------

#ifndef __C__

   /* Printer orientation for TPrinter */
   #xtranslate poPORTRAIT  => 1
   #xtranslate poLANDSCAPE => 2

   /* Print quality */
   #xtranslate pqHIGH      => -4
   #xtranslate pqMEDIUM    => -3
   #xtranslate pqLOW       => -2
   #xtranslate pqDRAFT     => -1

#endif

//------------------------------------------------------------------------------

#ifndef __C__

   /* nMapMode for TCanvas */
   #xtranslate mmPIXELS    => 0
   #xtranslate mmHIMETRICS => 1
   #xtranslate mmHIENGLISH => 2
   #xtranslate mmSIMULCHAR => 3

#endif

//------------------------------------------------------------------------------

#ifndef __C__

   /* nMapMode for TCanvas */
   #xtranslate pfNONE   => 0
   #xtranslate pfALL    => 1
   #xtranslate pfWIDTH  => 2
   #xtranslate pfHEIGHT => 3

#endif

//------------------------------------------------------------------------------

#ifndef __C__

   /* nTooltipIcon */
   #xtranslate tiNOICON  => 0
   #xtranslate tiINFO    => 1
   #xtranslate tiWARNING => 2
   #xtranslate tiERROR   => 3

#endif

//------------------------------------------------------------------------------

#ifndef __C__

   /* TRichEdit class */

   /* Alignment style for paragraphs */
   #xtranslate rpLEFT         => 1
   #xtranslate rpRIGHT        => 2
   #xtranslate rpCENTER       => 3
   #xtranslate rpJUSTIFY      => 4

   /* Numbering options */
   #xtranslate rpNONE         => 0
   #xtranslate rpARABIC       => 2
   #xtranslate rpLCLETTER     => 3
   #xtranslate rpUCLETTER     => 4
   #xtranslate rpLCROMAN      => 5
   #xtranslate rpUCROMAN      => 6

   /* Numbering style */
   #xtranslate rpPAREN        => 0
   #xtranslate rpPARENS       => 256
   #xtranslate rpPERIOD       => 512
   #xtranslate rpPLAIN        => 768
   #xtranslate rpMINUS        => 2048

   /* Line spacing style */
   #xtranslate rlSINGLE       => 1
   #xtranslate rlONEHALF      => 2
   #xtranslate rlDOUBLE       => 3
   #xtranslate rlTWOHALF      => 4
   #xtranslate rlTRIPLE       => 5
   #xtranslate rlEXACT        => 6

   /* Underline types */
   #xtranslate ruNONE         => 0
   #xtranslate ruLINE         => 1
   #xtranslate ruWORD         => 2
   #xtranslate ruDOUBLE       => 3
   #xtranslate ruDOTTED       => 4
   #xtranslate ruDASH         => 5
   #xtranslate ruDASHDOT      => 6
   #xtranslate ruDASHDOTDOT   => 7
   #xtranslate ruWAVE         => 8
   #xtranslate ruTHICK        => 9

   /* Underline colors */
   #xtranslate rcBLACK        => 1
   #xtranslate rcBLUE         => 2
   #xtranslate rcAQUA         => 3
   #xtranslate rcLIME         => 4
   #xtranslate rcFUCHSIA      => 5
   #xtranslate rcRED          => 6
   #xtranslate rcYELLOW       => 7
   #xtranslate rcWHITE        => 8
   #xtranslate rcNAVY         => 9
   #xtranslate rcTEAL         => 10
   #xtranslate rcGREEN        => 11
   #xtranslate rcPURPLE       => 12
   #xtranslate rcMAROON       => 13
   #xtranslate rcOLIVE        => 14
   #xtranslate rcGRAY         => 15
   #xtranslate rcSILVER       => 16

   /* Stream formats */
   #xtranslate rfTEXT         => 1
   #xtranslate rfRTF          => 2

   /* Converters formats */
   #xtranslate rcNONE         => 0
   #xtranslate rcHTML         => 1
   #xtranslate rcHTML_EX      => 2
   #xtranslate rcWRITE        => 3
   #xtranslate rcWORDX        => 4
   #xtranslate rcWORD         => 5

   /* Move the insertion point */
   #xtranslate rmCHARACTER    => 1
   #xtranslate rmWORD         => 2
   #xtranslate rmSENTENCE     => 3
   #xtranslate rmPARAGRAPH    => 4
   #xtranslate rmLINE         => 5

   /* Units */
   #xtranslate ruTWIPS        => 0
   #xtranslate ruCENTIMETERS  => 1
   #xtranslate ruINCHES       => 2
   #xtranslate ruPIXELS       => 3

#else

   /* TRichEdit class */

   /* Alignment style for paragraphs */
   #define rpLEFT         1
   #define rpRIGHT        2
   #define rpCENTER       3
   #define rpJUSTIFY      4

   /* Numbering options */
   #define rpNONE         0
   #define rpARABIC       2
   #define rpLCLETTER     3
   #define rpUCLETTER     4
   #define rpLCROMAN      5
   #define rpUCROMAN      6

   /* Numbering style */
   #define rpPAREN        0
   #define rpPARENS       256
   #define rpPERIOD       512
   #define rpPLAIN        768
   #define rpMINUS        2048

   /* Line spacing style */
   #define rlSINGLE       1
   #define rlONEHALF      2
   #define rlDOUBLE       3
   #define rlTWOHALF      4
   #define rlTRIPLE       5
   #define rlEXACT        6

   /* Underline types */
   #define ruNONE         0
   #define ruLINE         1
   #define ruWORD         2
   #define ruDOUBLE       3
   #define ruDOTTED       4
   #define ruDASH         5
   #define ruDASHDOT      6
   #define ruDASHDOTDOT   7
   #define ruWAVE         8
   #define ruTHICK        9

   /* Underline colors */
   #define rcBLACK        1
   #define rcBLUE         2
   #define rcAQUA         3
   #define rcLIME         4
   #define rcFUCHSIA      5
   #define rcRED          6
   #define rcYELLOW       7
   #define rcWHITE        8
   #define rcNAVY         9
   #define rcTEAL         10
   #define rcGREEN        11
   #define rcPURPLE       12
   #define rcMAROON       13
   #define rcOLIVE        14
   #define rcGRAY         15
   #define rcSILVER       16

   /* Stream formats */
   #define rfTEXT         1
   #define rfRTF          2

   /* Converters formats */
   #define rcNONE         0
   #define rcHTML         1
   #define rcHTML_EX      2
   #define rcWRITE        3
   #define rcWORDX        4
   #define rcWORD         5

   /* Move the insertion point */
   #define rmCHARACTER    1
   #define rmWORD         2
   #define rmSENTENCE     3
   #define rmPARAGRAPH    4
   #define rmLINE         5

   /* Units */
   #define ruTWIPS        0
   #define ruCENTIMETERS  1
   #define ruINCHES       2
   #define ruPIXELS       3

#endif

//------------------------------------------------------------------------------

#ifndef __C__

   /* Styles for DbfDataSource */

   #xtranslate dmDBT         => 1   // DB_MEMO_DBT
   #xtranslate dmFPT_FP      => 2.1 // DB_MEMO_FPT + DB_MEMOVER_STD
   #xtranslate dmFPT_SIX     => 2.2 // DB_MEMO_FPT + DB_MEMOVER_SIX
   #xtranslate dmFPT_FLEX    => 2.3 // DB_MEMO_FPT + DB_MEMOVER_FLEX
   #xtranslate dmSMT         => 3   // DB_MEMO_SMT

   #xtranslate dlDEFAULT   => 0 // DB_DBFLOCK_DEFAULT
   #xtranslate dlCLIP      => 1 // DB_DBFLOCK_CLIP
   #xtranslate dlCL53      => 2 // DB_DBFLOCK_CL53
   #xtranslate dlVFP       => 3 // DB_DBFLOCK_VFP
   #xtranslate dlCL53EXT   => 4 // DB_DBFLOCK_CL53EXT
   #xtranslate dlXHB64     => 5 // DB_DBFLOCK_XHB64

   /* Styles for CdxDataSource */
   #xtranslate ctDBFSTD     => 1 //DB_DBF_STD
   #xtranslate ctDBFVFP     => 2 //DB_DBF_VFP

   /* Styles for AdsDataSource objects */
   #xtranslate afNTX        => 1
   #xtranslate afCDX        => 2
   #xtranslate afADT        => 3
//   #xtranslate asDEFAULT    => 0
   #xtranslate asLOCAL      => 1
   #xtranslate asREMOTE     => 2
   #xtranslate asAIS        => 4
   #xtranslate asREMOTE_AIS => 6
   #xtranslate asANY        => 7
   #xtranslate acANSI       => 1
   #xtranslate acOEM        => 2

   #xtranslate afVFP        => 4
   #xtranslate asDEFAULT    => 1

#endif

//------------------------------------------------------------------------------

#ifndef __C__

   /* Styles for DBComboBox objects */
   #xtranslate dtDEFAULT    => 0
   #xtranslate dtINDEX      => 1
   #xtranslate dtSTRING     => 2
   #xtranslate dtBOUND      => 3

#endif

//------------------------------------------------------------------------------

/* Constantes para XailerVersion() */

#define xaVerVersion          1
#define xaVerCopyright        2
#define xaVerCopyrightNotice  3
#define xaVerCompiler         4
#define xaVerCCompiler        5
#define xaVerPlatform         6
#define xaVerMajor            7
#define xaVerMinor            8
#define xaVerRevision         9
#define xaVerBuild            10
#define xaVerWeb              11
#define xaVerMail             12
#define xaVerNews             13
#define xaVerShort            14    // X.YZ   X=mayor, Y=minor, Z=release
#define xaVerDate             15
#define xaVerMonth            16
#define xaVerYear             17

//------------------------------------------------------------------------------

/* Constantes para THelp */
#define htHLP           0
#define htHTML          1
#define htXHTML         2

//------------------------------------------------------------------------------

#ifndef __C__

   /* Constantes para TTrackBar */
   #xtranslate tbtTOP      => 4
   #xtranslate tbtBOTTOM   => 0
   #xtranslate tbtLEFT     => 4
   #xtranslate tbtRIGHT    => 0
   #xtranslate tbtBOTH     => 8
   #xtranslate tbsTOP      => 0
   #xtranslate tbsLEFT     => 1
   #xtranslate tbsBOTTOM   => 2
   #xtranslate tbsRIGHT    => 3

#endif

//------------------------------------------------------------------------------

#ifndef __C__

   /* Constantes para lAutoSelect de TEdit */
   #xtranslate asDONTCARE     => Nil
   #xtranslate asSELECTALL    => .T.
   #xtranslate asSELECTNONE   => .F.

#endif

//------------------------------------------------------------------------------

#ifndef __C__

   /* Constantes para nCommonAvi de TSysAnimate */
   #xtranslate aviNONE              => 0
   #xtranslate aviFIND              => 150
   #xtranslate aviFINDFILES         => 151
   #xtranslate aviFINDCOMPUTER      => 152
   #xtranslate aviCOPYFILES         => 160
   #xtranslate aviCOPYFILE          => 161
   #xtranslate aviRECYCLEFILE       => 162
   #xtranslate aviDELETEFILE        => 163
   #xtranslate aviXPINTERNETSEARCH  => 166
   #xtranslate aviXPDOWNLOADFILE    => 170

#endif

//------------------------------------------------------------------------------

#ifndef __C__

   /* Constantes para nFolder de TBrowseForFolderDlg */
   #xtranslate ssfNONE              => -1
   #xtranslate ssfALTSTARTUP        => 0x1d
   #xtranslate ssfAPPDATA           => 0x1a
   #xtranslate ssfBITBUCKET         => 0xa
   #xtranslate ssfCOMMONALTSTARTUP  => 0x1e
   #xtranslate ssfCOMMONAPPDATA     => 0x23
   #xtranslate ssfCOMMONDESKTOPDIR  => 0x19
   #xtranslate ssfCOMMONFAVORITES   => 0x1f
   #xtranslate ssfCOMMONPROGRAMS    => 0x17
   #xtranslate ssfCOMMONSTARTMENU   => 0x16
   #xtranslate ssfCOMMONSTARTUP     => 0x18
   #xtranslate ssfCONTROLS          => 0x3
   #xtranslate ssfCOOKIES           => 0x21
   #xtranslate ssfDESKTOP           => 0x0
   #xtranslate ssfDESKTOPDIRECTORY  => 0x10
   #xtranslate ssfDRIVES            => 0x11
   #xtranslate ssfFAVORITES         => 0x6
   #xtranslate ssfFONTS             => 0x14
   #xtranslate ssfHISTORY           => 0x22
   #xtranslate ssfINTERNETCACHE     => 0x20
   #xtranslate ssfLOCALAPPDATA      => 0x1c
   #xtranslate ssfMYPICTURES        => 0x27
   #xtranslate ssfNETHOOD           => 0x13
   #xtranslate ssfNETWORK           => 0x12
   #xtranslate ssfPERSONAL          => 0x5
   #xtranslate ssfPRINTERS          => 0x4
   #xtranslate ssfPRINTHOOD         => 0x1b
   #xtranslate ssfPROFILE           => 0x28
   #xtranslate ssfPROGRAMFILES      => 0x26
   #xtranslate ssfPROGRAMS          => 0x2
   #xtranslate ssfRECENT            => 0x8
   #xtranslate ssfSENDTO            => 0x9
   #xtranslate ssfSTARTMENU         => 0xb
   #xtranslate ssfSTARTUP           => 0x7
   #xtranslate ssfSYSTEM            => 0x25
   #xtranslate ssfTEMPLATES         => 0x15
   #xtranslate ssfWINDOWS           => 0x24

#endif

//------------------------------------------------------------------------------

#ifndef __C__

   /* Constantes para nAction de TFileOperationDlg */
   #xtranslate foNONE      => 0
   #xtranslate foMOVE      => 0x0001
   #xtranslate foCOPY      => 0x0002
   #xtranslate foDELETE    => 0x0003
   #xtranslate foRENAME    => 0x0004

#endif

//------------------------------------------------------------------------------

#ifndef __C__

   /* Constantes para nCharCase de TEdit */
   #xtranslate ecNONE      => 0
   #xtranslate ecUPPERCASE => 1
   #xtranslate ecLOWERCASE => 2

#endif

//------------------------------------------------------------------------------

#ifndef __C__

   /* Constantes para nCharSet de TChooseFontDlg y TFont */
   #xtranslate csANSI         => ANSI_CHARSET
   #xtranslate csDEFAULT      => DEFAULT_CHARSET
   #xtranslate csSYMBOL       => SYMBOL_CHARSET
   #xtranslate csSHIFTJIS     => SHIFTJIS_CHARSET
   #xtranslate csGB2312       => GB2312_CHARSET
   #xtranslate csHANGEUL      => HANGEUL_CHARSET
   #xtranslate csCHINESEBIG5  => CHINESEBIG5_CHARSET
   #xtranslate csOEM          => OEM_CHARSET

#endif

//------------------------------------------------------------------------------

#ifndef __C__

   /* Constantes para lSizeGrip de TStatusBar */
   #xtranslate sgAUTO   => Nil
   #xtranslate sgYES    => .T.
   #xtranslate sgNO     => .F.

   /* Constantes para nBorderStyle de TStatusPanel */
   #xtranslate sbDEFAULT   => 0
   #xtranslate sbNOBORDER  => 0x0100
   #xtranslate sbRAISED    => 0x0200

   /* Constantes para nResizeStyle de TStatusPanel */
   #xtranslate sbNONE      => 0
   #xtranslate sbAUTO      => 1

   /* Constantes para nType de TStatusPanel */
   #xtranslate sbTEXT         => 0
   #xtranslate sbDATE         => 1
   #xtranslate sbTIME         => 2
   #xtranslate sbKEYCAPS      => 3
   #xtranslate sbKEYINSERT    => 4
   #xtranslate sbKEYNUMLOCK   => 5

#endif

//------------------------------------------------------------------------------

#ifndef __C__

   /* Constantes para nCompressionLevel de TZipFile */
   #xtranslate pkSTORE     => 0
   #xtranslate pk1         => 1
   #xtranslate pk2         => 2
   #xtranslate pk3         => 3
   #xtranslate pk4         => 4
   #xtranslate pkDEFLATE   => 5
   #xtranslate pk6         => 6
   #xtranslate pk7         => 7
   #xtranslate pk8         => 8
   #xtranslate pkBEST      => 9

   /* Constantes para nSpanMode de TZipFile */
   #xtranslate pkNOSPAN    => 0
   #xtranslate pkSPAN      => 1

#endif

//------------------------------------------------------------------------------

#ifndef __C__

   /* Constantes para nfontType de TFontCombobox */
   #xtranslate ftDEVICE          => DEVICE_FONTTYPE
   #xtranslate ftRASTER          => RASTER_FONTTYPE
   #xtranslate ftTRUETYPE        => TRUETYPE_FONTTYPE
   #xtranslate ftDEVICERASTER    => nOr( DEVICE_FONTTYPE, RASTER_FONTTYPE )
   #xtranslate ftDEVICETRUETYPE  => nOr( DEVICE_FONTTYPE, TRUETYPE_FONTTYPE )
   #xtranslate ftRASTERTRUETYPE  => nOr( RASTER_FONTTYPE, TRUETYPE_FONTTYPE )
   #xtranslate ftALL             => nOr( DEVICE_FONTTYPE, RASTER_FONTTYPE, TRUETYPE_FONTTYPE )

#endif

//------------------------------------------------------------------------------

#ifndef __C__

   /* Constantes para nFormatType de TDatePicker */
   #xtranslate dfSHORTDATE         => 0
   #xtranslate dfSHORTDATECENTURY  => 1
   #xtranslate dfLONGDATEFORMAT    => 2
   #xtranslate dfCUSTOMFORMAT      => 3

#endif

//------------------------------------------------------------------------------

/* Constantes para TOptionList */

#ifndef __C__

   #xtranslate otSEPARATOR    => -1
   #xtranslate otBUTTON       => 0
   #xtranslate otCHECK        => 1
   #xtranslate otRADIO        => 2
   #xtranslate otTEXT         => 3

   #xtranslate hsUNDERLINE    => 0
   #xtranslate hsMENU         => 1
   #xtranslate hsMENUXP       => 2
   #xtranslate hsMENU2003     => 3

#else

   #define otSEPARATOR  -1
   #define otBUTTON     0
   #define otCHECK      1
   #define otRADIO      2
   #define otTEXT       3

   #define hsUNDERLINE  0
   #define hsMENU       1
   #define hsMENUXP     2
   #define hsMENU2003   3

#endif

//------------------------------------------------------------------------------

/* Constantes para TMenu */

#ifndef __C__

   #xtranslate msDEFAULT      => 0
   #xtranslate msOFFICEXP     => 1
   #xtranslate msOFFICE2003   => 2
   #xtranslate msOFFICE2007   => 3
   #xtranslate msOFFICE2007EX => 4
   #xtranslate msCUSTOM       => 5

#else

   #define msDEFAULT       0
   #define msOFFICEXP      1
   #define msOFFICE2003    2
   #define msOFFICE2007    3
   #define msOFFICE2007EX  4
   #define msCUSTOM        5

#endif

//------------------------------------------------------------------------------

/* Constantes para TRebarBand */

#ifndef __C__

   #xtranslate rgDEFAULT   => Nil
   #xtranslate rgALWAYS    => .T.
   #xtranslate rgNEVER     => .F.

#endif

//------------------------------------------------------------------------------

/* Constantes para TMapi */

#ifndef __C__

   #define mapiORIGINATOR        0
   #define mapiTO                1
   #define mapiCC                2
   #define mapiBCC               3

#endif

//------------------------------------------------------------------------------

/* Constantes para TMessageBox */

#ifndef __C__

   /* Constantes para nStyle */
   #xtranslate mbOK                 => MB_OK
   #xtranslate mbOKCANCEL           => MB_OKCANCEL
   #xtranslate mbABORTRETRYIGNORE   => MB_ABORTRETRYIGNORE
   #xtranslate mbYESNOCANCEL        => MB_YESNOCANCEL
   #xtranslate mbYESNO              => MB_YESNO
   #xtranslate mbRETRYCANCEL        => MB_RETRYCANCEL
   #xtranslate mbCANCELTRYCONTINUE  => MB_CANCELTRYCONTINUE

   /* Constantes para nDefaultButton */
   #xtranslate mbDEFBUTTON1   => MB_DEFBUTTON1
   #xtranslate mbDEFBUTTON2   => MB_DEFBUTTON2
   #xtranslate mbDEFBUTTON3   => MB_DEFBUTTON3
   #xtranslate mbDEFBUTTON4   => MB_DEFBUTTON4

#endif

//------------------------------------------------------------------------------

/* Sistema de notificaciones entre componentes */

#define XANOTIFY_IMAGELIST_ADDFIRST 1
#define XANOTIFY_IMAGELIST_EMPTY    2

//------------------------------------------------------------------------------

/* Recuperación de valor de campo en TDataSet */

#define dsAUTO                0
#define dsFIELD               1
#define dsVAR                 2
#define dsOBJECT              3

//------------------------------------------------------------------------------

/* Properties de TDataSet */

#ifndef __C__

   // CursorLocationEnum
   #translate adUseClient     => 3
   #translate adUseNone       => 1
   #translate adUseServer     => 2

   // CursorTypeEnum
   #translate adOpenDynamic      => 2
   #translate adOpenForwardOnly  => 0
   #translate adOpenKeySet       => 1
   #translate adOpenStatic       => 3
   #translate adOpenUnspecified  => -1

   // LockTypeEnum
   #translate adLockBatchOptimistic => 4
   #translate adLockOptimistic      => 3
   #translate adLockPessimistic     => 2
   #translate adLockReadOnly        => 1
   #translate adLockUnspecified     => -1

   // SqlParams direction
   #xtranslate adParamInput          => 1
   #xtranslate adParamInputOutput    => 3
   #xtranslate adParamOutput         => 2
   #xtranslate adParamReturnValue    => 4
   #xtranslate adParamUnknown        => 0

   // SqlParams types
   #xtranslate adEmpty => 0               // No value
   #xtranslate adBigInt => 20             // Indicates an eight-byte signed integer (DBTYPE_I8).
   #xtranslate adBinary => 128            //	Indicates a binary value (DBTYPE_BYTES).
   #xtranslate adBoolean	=> 11	         // Indicates a Boolean value (DBTYPE_BOOL).
   #xtranslate adBSTR	=> 8              // Indicates a null-terminated character string (Unicode) (DBTYPE_BSTR).
   #xtranslate adChar	=> 129            // Indicates a string value (DBTYPE_STR).
   #xtranslate adCurrency => 6	         // Indicates a currency value (DBTYPE_CY). Currency is a fixed-point number with four digits to the right of the decimal point. It is stored in an eight-byte signed integer scaled by 10,000.
   #xtranslate adDate => 7                // Indicates a date value (DBTYPE_DATE). A date is stored as a double, the whole part of which is the number of days since December 30, 1899, and the fractional part of which is the fraction of a day.
   #xtranslate adDBDate => 133	         // Indicates a date value (yyyymmdd) (DBTYPE_DBDATE).
   #xtranslate adDBTime => 134	         // Indicates a time value (hhmmss) (DBTYPE_DBTIME).
   #xtranslate adDBTimeStamp => 135       // Indicates a date/time stamp (yyyymmddhhmmss plus a fraction in billionths) (DBTYPE_DBTIMESTAMP).
   #xtranslate adDecimal	=> 14	         // Indicates an exact numeric value with a fixed precision and scale (DBTYPE_DECIMAL).
   #xtranslate adDouble => 5              // Indicates a double-precision floating-point value (DBTYPE_R8).
   #xtranslate adInteger => 3             //	Indicates a four-byte signed integer (DBTYPE_I4).
   #xtranslate adLongVarBinary	=> 205   // Indicates a long binary value.
   #xtranslate adLongVarChar => 201	      // Indicates a long string value.
   #xtranslate adLongVarWChar => 203	   // Indicates a long null-terminated Unicode string value.
   #xtranslate adNumeric	=> 131         //	Indicates an exact numeric value with a fixed precision and scale (DBTYPE_NUMERIC).
   #xtranslate adSingle => 4	            // Indicates a single-precision floating-point value (DBTYPE_R4).
   #xtranslate adSmallInt => 2	         // Indicates a two-byte signed integer (DBTYPE_I2).
   #xtranslate adTinyInt	=> 16    	   // Indicates a one-byte signed integer (DBTYPE_I1).
   #xtranslate adUnsignedBigInt => 21     // Indicates an eight-byte unsigned integer (DBTYPE_UI8).
   #xtranslate adUnsignedInt => 19	      // Indicates a four-byte unsigned integer (DBTYPE_UI4).
   #xtranslate adUnsignedSmallInt	=> 18 // Indicates a two-byte unsigned integer (DBTYPE_UI2).
   #xtranslate adUnsignedTinyInt => 17    // Indicates a one-byte unsigned integer (DBTYPE_UI1).
   #xtranslate adVarBinary => 204         // Indicates a binary value.
   #xtranslate adVarChar	=> 200         // Indicates a string value.
   #xtranslate adVarNumeric => 139        // Indicates a numeric value.
   #xtranslate adVarWChar => 202	         // Indicates a null-terminated Unicode character string.
   #xtranslate adWChar => 130	            // Indicates a null-terminated Unicode character string (DBTYPE_WSTR).

#endif

//------------------------------------------------------------------------------

/* Properties de TAdoDataSource */

#ifndef __C__

   // IsolationLevelEnum
   #translate adXactUnspecified     =>  -1
   #translate adXactChaos           =>  16
   #translate adXactBrowse          =>  256
   #translate adXactReadUncommitted =>  256
   #translate adXactCursorStability =>  4096
   #translate adXactReadCommitted   =>  4096
   #translate adXactRepeatableRead  =>  65536
   #translate adXactIsolated        =>  1048576
   #translate adXactSerializable    =>  1048576

   // Connection attributes
   #translate adXactNone            =>  0
   #translate adXactAbortRetaining  =>  262144
   #translate adXactCommitRetaining =>  131072

   // ConnectModeEnum
   #translate adModeUnknown         =>  0
   #translate adModeRead            =>  1
   #translate adModeWrite           =>  2
   #translate adModeReadWrite       =>  3
   #translate adModeShareDenyRead   =>  4
   #translate adModeShareDenyWrite  =>  8
   #translate adModeShareExclusive  =>  12
   #translate adModeShareDenyNone   =>  -16

#endif

//------------------------------------------------------------------------------

/* Constantes para TFormatDriveDlg */

#ifndef __C__

   #xtranslate shfQUICK		=> 0
   #xtranslate shfFULL		=> 1
   #xtranslate shfSYSONLY	=> 2

#endif

//------------------------------------------------------------------------------

/* Ole null value */

#ifndef __C__

   #xtranslate OLE_NULL    => __OleVariantNew( 1 )

#endif

//------------------------------------------------------------------------------

#ifndef __C__

   /* nPort in TInternet and TFtp */
   #xtranslate inetHTTP    => 80
   #xtranslate inetHTTPS   => 443
   #xtranslate inetFTP     => 21
   #xtranslate inetGOPHER  => 70
   #xtranslate inetSOCKS   => 1080

   /* nService in TInternet and TFtp */
   #xtranslate inetSERVICEHTTP   => 3
   #xtranslate inetSERVICEFTP    => 1
   #xtranslate inetSERVICEGOPHER => 2

   /* nTransferType in TFtp */
   #xtranslate ftpASCII    => 1
   #xtranslate ftpBINARY   => 2

#endif

//------------------------------------------------------------------------------

/* Constantes para TLabelBuddy */

#ifndef __C__

   #xtranslate baLEFT         => 0
   #xtranslate baLEFTTOP      => 1
   #xtranslate baLEFTBOTTOM   => 2
   #xtranslate baRIGHT        => 3
   #xtranslate baRIGHTTOP     => 4
   #xtranslate baRIGHTBOTTOM  => 5
   #xtranslate baTOPLEFT      => 6
   #xtranslate baTOPCENTER    => 7
   #xtranslate baTOPRIGHT     => 8
   #xtranslate baBOTTOMLEFT   => 9
   #xtranslate baBOTTOMCENTER => 10
   #xtranslate baBOTTOMRIGHT  => 11

#endif

//------------------------------------------------------------------------------

/* Constantes para TListView */

#ifndef __C__

   #xtranslate lvICON        => 0
   #xtranslate lvSMALLICON   => 1
   #xtranslate lvLIST        => 2
   #xtranslate lvTILE        => 3
   #xtranslate lvDETAILS     => 4

   #xtranslate lsNORMAL      => 0
   #xtranslate lsCOLLAPSED   => 1
   #xtranslate lsHIDDEN      => 2

#else

   #define lsNORMAL      	0
   #define lsCOLLAPSED   	1
   #define lsHIDDEN      	2

#endif

//------------------------------------------------------------------------------

/* Constantes para TEditBtn */

#ifndef __C__

   #xtranslate ebBITMAP => 1
   #xtranslate ebDOTS   => 2
   #xtranslate ebCOMBO  => 3
   #xtranslate ebARROW  => 4
   #xtranslate ebPROMPT => 5

#else

   #define ebBITMAP  1
   #define ebDOTS    2
   #define ebCOMBO   3
   #define ebARROW   4
   #define ebPROMPT  5

#endif

//------------------------------------------------------------------------------

/* Constantes para TTabs */

#ifndef __C__

   #xtranslate tfNONE => 0
   #xtranslate tfTABS => 1
   #xtranslate tfALL  => 2

   #define tsNORMAL     0
   #define tsSELECTED   1
   #define tsHOT        2
   #define tsDISABLED   3

#else

   #define tfNONE    0
   #define tfTABS    1
   #define tfALL     2

#endif

//------------------------------------------------------------------------------

/* Constantes para Application:SetProgress() */

#ifndef __C__

   #xtranslate psNOPROGRESS      => 0
   #xtranslate psNORMAL          => 1
   #xtranslate psPAUSED          => 2
   #xtranslate psERROR           => 3
   #xtranslate psINDETERMINATE   => 4

#else

   #define psNOPROGRESS       0
   #define psNORMAL           1
   #define psPAUSED           2
   #define psERROR            3
   #define psINDETERMINATE    4

#endif

//------------------------------------------------------------------------------

/* Constantes para TBtnBmp */

#ifndef __C__

   /* nFlatStyle for TBtnBmp */
   #xtranslate fsNONE       => 0
   #xtranslate fsRECTANGLE  => 1
   #xtranslate fsRAISED     => 2

#else

   /* nFlatStyle for TBtnBmp */
   #define fsNONE       0
   #define fsRECTANGLE  1
   #define fsRAISED     2

#endif

/* Constantes para TWebDataSource */

#ifndef __C__

   /* nDBType for TWebDataSource */
   #xtranslate dtMYSQL     => 0
   #xtranslate dtSQLITE    => 1
   #xtranslate dtPOSTGRES  => 2
   #xtranslate dtORACLE    => 3
   #xtranslate dtSQLSERVER => 4
   #xtranslate dtFIREBIRD  => 5

#else

   /* nDBType for TWebDataSource */
   #define dtMYSQL      0
   #define dtSQLITE     1
   #define dtPOSTGRES   2
   #define dtORACLE     3
   #define dtSQLSERVER  4
   #define dtFIREBIRD   5

#endif

//------------------------------------------------------------------------------

/* Constantes para XA_SetBmpDisableMode() */

#define dmSUNKEN  0
#define dmGRAYED  1

//------------------------------------------------------------------------------

/* Constantes para CreateThumbnail() y TPicture:MakeThumbnail() */

#define gfUNKNOWN   -1
#define gfBMP        0
#define gfJPEG       1
#define gfGIF        2
#define gfPNG        3
#define gfTIFF       4
#define gfICON       5
#define gfMETAFILE   6
#define gfWEBP       7

//------------------------------------------------------------------------------

/* Constantes para TRegistry:nRoot */

#ifndef __C__

   #xtranslate hkCURRENTUSER     => HKEY_CURRENT_USER
   #xtranslate hkLOCALMACHINE    => HKEY_LOCAL_MACHINE
   #xtranslate hkCLASSESROOT     => HKEY_CLASSES_ROOT
   #xtranslate hkUSERS           => HKEY_USERS
   #xtranslate hkCURRENTCONFIG   => HKEY_CURRENT_CONFIG
   #xtranslate hkPERFORMANCEDATA => HKEY_PERFORMANCE_DATA

#endif

//------------------------------------------------------------------------------

/* Constantes para Fast-Report */

#ifndef __C__
   #xtranslate simMessageBoxes => 0
   #xtranslate simReThrow => 1
   #xtranslate simSilent => 2
   #xtranslate ppAll => 0
   #xtranslate ppEven => 1
   #xtranslate ppOdd => 2
   #xtranslate zmDefault => 0
   #xtranslate zmWholePage => 1
   #xtranslate zmPageWidth => 2
   #xtranslate zmManyPages => 3
   #xtranslate frxCurrencyString => 1
   #xtranslate frxCurrencyFormat => 2
   #xtranslate frxNegCurrFormat => 3
   #xtranslate frxThousandSeparator => 4
   #xtranslate frxDecimalSeparator => 5
   #xtranslate frxCurrencyDecimals => 6
   #xtranslate frxDateSeparator => 7
   #xtranslate frxShortDateFormat => 8
   #xtranslate frxLongDateFormat => 9
   #xtranslate frxTimeSeparator => 10
   #xtranslate frxTimeAMString => 11
   #xtranslate frxTimePMString => 12
   #xtranslate frxShortTimeFormat => 13
   #xtranslate frxLongTimeFormat => 14
   #xtranslate frxShortMonthNames => 15
   #xtranslate frxLongMonthNames => 16
   #xtranslate frxShortDayNames => 17
   #xtranslate frxLongDayNames => 18
   #xtranslate frxTwoDigitYearCenturyWindow => 20
   #xtranslate frxListSeparator => 21

#else
   #define simMessageBoxes 0
   #define simReThrow 1
   #define simSilent 2
   #define ppAll  0
   #define ppEven 1
   #define ppOdd  2
   #define zmDefault 0
   #define zmWholePage 1
   #define zmPageWidth 2
   #define zmManyPages 3
   #define frxCurrencyString 1
   #define frxCurrencyFormat 2
   #define frxNegCurrFormat 3
   #define frxThousandSeparator 4
   #define frxDecimalSeparator 5
   #define frxCurrencyDecimals 6
   #define frxDateSeparator 7
   #define frxShortDateFormat 8
   #define frxLongDateFormat 9
   #define frxTimeSeparator 10
   #define frxTimeAMString 11
   #define frxTimePMString 12
   #define frxShortTimeFormat 13
   #define frxLongTimeFormat 14
   #define frxShortMonthNames 15
   #define frxLongMonthNames 16
   #define frxShortDayNames 17
   #define frxLongDayNames 18
   #define frxTwoDigitYearCenturyWindow 20
   #define frxListSeparator 21
#endif

#endif

//------------------------------------------------------------------------------

/* Constantes para TWIAScan */

#ifndef __C__
   #xtranslate imColor   => 1
   #xtranslate imGray    => 2
   #xtranslate imBW      => 4
#endif

//------------------------------------------------------------------------------

/* Constantes para TCardBox */

#ifndef __C__
   #xtranslate ctLABEL      => 0
   #xtranslate ctLABELEX    => 1
   #xtranslate ctPICTURE    => 2
   #xtranslate ctIMAGEINDEX => 3
#endif

//------------------------------------------------------------------------------

/* Constantes para TEditMod */

#ifndef __C__
   #xtranslate esNONE      => 0
   #xtranslate esSEARCH    => 1
   #xtranslate esCLEAR     => 2
   #xtranslate esPASSWORD  => 3
   #xtranslate esVERTDOTS  => 4
   #xtranslate esHORZDOTS  => 5
   #xtranslate esCOMBO     => 6
   #xtranslate esARROW     => 7
   #xtranslate esUSER      => 9
   #xtranslate esUPDOWN    => 10
#else
   #define esNONE       0
   #define esSEARCH     1
   #define esCLEAR      2
   #define esPASSWORD   3
   #define esVERTDOTS   4
   #define esHORZDOTS   5
   #define esCOMBO      6
   #define esARROW      7
   #define esUSER       9
   #define esUPDOWN     10
#endif

//------------------------------------------------------------------------------

/* Constantes para TButtonEx */

#ifndef __C__
   #xtranslate bsDEFAULT   => 0
   #xtranslate bsWINDOWS7  => 1
   #xtranslate bsMODERN    => 2
   #xtranslate bsMETRO     => 2

   #xtranslate beNONE      => 0
   #xtranslate beSLIDE     => 1
#else
   #define bsDEFAULT    0
   #define bsWINDOWS7   1
   #define bsMODERN     2
   #define bsMETRO      bsMODERN

   #define beNONE       0
   #define beSLIDE      1
#endif

//------------------------------------------------------------------------------

/* Constantes para TScreenKeyboard */

#ifndef __C__
   #xtranslate klCUSTOM       => 0
   #xtranslate klALPHA        => 1
   #xtranslate klALPHAINT     => 2
   #xtranslate klCALCULATOR   => 3
#endif

//------------------------------------------------------------------------------

/* Constantes para TFormTablet */

#ifndef __C__
   #xtranslate aniNONE     => 0
   #xtranslate aniLEFT     => 1
   #xtranslate aniTOP      => 2
   #xtranslate aniRIGHT    => 4
   #xtranslate aniBOTTOM   => 8
   #xtranslate aniCENTER   => 15
#else
   #define aniNONE      0
   #define aniLEFT      1
   #define aniTOP       2
   #define aniRIGHT     4
   #define aniBOTTOM    8
   #define aniCENTER    15
#endif

//------------------------------------------------------------------------------

/* Constantes para TBarcode */

#ifndef __C__
   #xtranslate zbNONE         =>  0
   #xtranslate zbEAN13        =>  1
   #xtranslate zbEAN8         =>  2
   #xtranslate zbUPCA         =>  3
   #xtranslate zbUPCE         =>  4
   #xtranslate zbCODE128      =>  5
   #xtranslate zbCODE93       =>  6
   #xtranslate zbCODE39       =>  7
   #xtranslate zbCODE11       =>  8
   #xtranslate zbCODABAR      =>  9
   #xtranslate zbITF          =>  10
   #xtranslate zbMSI          =>  11
   #xtranslate zbEAN2         =>  100
   #xtranslate zbEAN5         =>  101
   #xtranslate zbPDF417       =>  257
   #xtranslate zbDATAMATRIX   =>  258
   #xtranslate zbQRCODE       =>  259
#else
   #define zbNONE              0
   #define zbEAN13             1
   #define zbEAN8              2
   #define zbUPCA              3
   #define zbUPCE              4
   #define zbCODE128           5
   #define zbCODE93            6
   #define zbCODE39            7
   #define zbCODE11            8
   #define zbCODABAR           9
   #define zbITF               10
   #define zbMSI               11
   #define zbEAN2              100
   #define zbEAN5              101
   #define zbPDF417            257
   #define zbDATAMATRIX        258
   #define zbQRCODE            259
#endif

//------------------------------------------------------------------------------

/* Constantes para TWinService */

#ifndef __C__
   #xtranslate ssSTOPPED            => 1
   #xtranslate ssSTART_PENDING      => 2
   #xtranslate ssSTOP_PENDING       => 3
   #xtranslate ssRUNNING            => 4
   #xtranslate ssCONTINUE_PENDING   => 5
   #xtranslate ssPAUSE_PENDING      => 6
   #xtranslate ssPAUSED             => 7
#else
   #define ssSTOPPED            1
   #define ssSTART_PENDING      2
   #define ssSTOP_PENDING       3
   #define ssRUNNING            4
   #define ssCONTINUE_PENDING   5
   #define ssPAUSE_PENDING      6
   #define ssPAUSED             7
#endif

//------------------------------------------------------------------------------

/* Box style for TGroupBoxMOd */

#ifndef __C__
   #xtranslate trNONE     => 0
   #xtranslate trFRAME    => 1
   #xtranslate trFILL     => 2
   #xtranslate trALL      => 3
#else
   #define trNONE     0
   #define trFRAME    1
   #define trFILL     2
   #define trALL      3
#endif

//------------------------------------------------------------------------------
/* Sumatra Pdf viewer and printer*/

#ifndef __C__
   #xtranslate vmSinglePage          =>  0
   #xtranslate vmContinousSinglePage =>  1
   #xtranslate vmFacing              =>  2
   #xtranslate vmContinousFacing     =>  3
   #xtranslate vmBookView            =>  4
   #xtranslate vmContinousBookView   =>  5

   #xtranslate izFitWidth    =>  0
   #xtranslate izFitPage     => -1
   #xtranslate izFitContent  => -2
   #xtranslate izPercent10   => 10
   #xtranslate izPercent25   => 25
   #xtranslate izPercent50   => 50
   #xtranslate izPercent100  => 100
   #xtranslate izPercent125  => 125
   #xtranslate izPercent150  => 150

   #xtranslate ptALL  =>  0
   #xtranslate ptEven =>  1
   #xtranslate ptOdd  =>  2

   #xtranslate psDefault =>  0
   #xtranslate psFit     =>  1
   #xtranslate psShrink  =>  2
   #xtranslate psNoScale =>  3

   #xtranslate psA4     =>  1
   #xtranslate psA5     =>  2
   #xtranslate psA3     =>  3
   #xtranslate psA2     =>  4
   #xtranslate psLetter =>  5

   #xtranslate psFit     =>  1
   #xtranslate psShrink  =>  2
   #xtranslate psNoScale =>  3

   #xtranslate pcDefault    =>  0
   #xtranslate pcColor      =>  1
   #xtranslate pcMonochrome =>  2

   #xtranslate pdDefault     =>  0
   #xtranslate pdSimplex     =>  1
   #xtranslate pdDuplex      =>  2
   #xtranslate pdDuplexShort =>  3
   #xtranslate pdDuplexLong  =>  4

   #xtranslate poDefault     =>  0
   #xtranslate poPortrait    =>  1
   #xtranslate poLandscape   =>  2

#endif

//------------------------------------------------------------------------------

/* Constantes para TWebView */

#ifndef __C__
   #xtranslate wvAllowScripts       => 1
   #xtranslate wvAllowWebMessages   => 2
   #xtranslate wvAllowDevTools      => 3
   #xtranslate wvStatusBar          => 4
   #xtranslate wvContextMenu        => 5
#else
   #define wvAllowScripts           1
   #define wvAllowWebMessages       2
   #define wvAllowDevTools          3
   #define wvStatusBar              4
   #define wvContextMenu            5
#endif

//------------------------------------------------------------------------------

/* Constantes para TCalendarMod */

#ifndef __C__
   #xtranslate dmMonth     => 0
   #xtranslate dmYear      => 1
   #xtranslate dmDecade    => 2

   #xtranslate smSingle    => 0
   #xtranslate smMultiple  => 1
   #xtranslate smNone      => 3
#endif

//------------------------------------------------------------------------------

/* Constantes para TCursor */

#ifndef __C__
   #xtranslate psSolid       => 0
   #xtranslate psDash        => 1
   #xtranslate psDot         => 2
   #xtranslate psDashDot     => 3
   #xtranslate psDashDotDot  => 4
   #xtranslate psNull        => 5
   #xtranslate psInsideFrame => 6
#endif

//------------------------------------------------------------------------------

/* Constantes para TShape */

#ifndef __C__
   #xtranslate stHORZLINE        => 0
   #xtranslate stVERTLINE        => 1
   #xtranslate stRECTANGLE       => 2
   #xtranslate stPOLYGON         => 3
   #xtranslate stCURVEDPOLYGON   => 4
   #xtranslate stSTAR            => 5
   #xtranslate stCURVEDSTAR      => 6
   #xtranslate stELLIPSE         => 7
#else
   #define stHORZLINE      0
   #define stVERTLINE      1
   #define stRECTANGLE     2
   #define stPOLYGON       3
   #define stCURVEDPOLYGON 4
   #define stSTAR          5
   #define stCURVEDSTAR    6
   #define stELLIPSE       7
#endif

//------------------------------------------------------------------------------
