compile insert PS_PropertyGrid_Equates
/* 
   ** Copyright (C) 2013-2016 Revelation Software Inc. All Rights Reserved **
   
   Author   : Wile C Coyote - Super Genius
   Date     : May 2013
   Purpose  : Constants for working with PS PROPGRID object structures
   
   
   Comments
   ========
   
   
   Amended  Date        Reason
   =======  ====        ======
   Mr C     12 Aug 17   Added ContextFlag constants
   Mr C     04 Aug 17   Added PSS_PROPGRID_AUTOEXPAND$
   Mr C     04 Apr 17   Added PSSX_PGD_ROWSTRIPE$
   Mr C     16 Jan 17   Update comments
   Mr C     06 Sep 16   Added FileDlg item type equates
   Mr C     02 Apr 16   Added PSPG_POS_DISPLAYNAME$
   Mr C     17 Feb 16   Updated comments
   Mr C     21 Nov 16   Added EMPTYTEXT constants
   Mr C     31 Aug 15   Added COLWIDTH
   Mr C     27 Aug 15   Added PSPG_POS_OPTIONVALUES$
   Mr C     26 Feb 15   Added PS_PGIT_PASSWORD$ and related styles
   Mr C     24 Feb 15   Added PSS_PROPGRID_HIDECATEGORIES$
   djh      10 May 17   Add items to LIST property for use in LIST PGO but not used in wins record
*/
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
#ifndef _PS_PROPERTYGRID_EQUATES_
#define _PS_PROPERTYGRID_EQUATES_
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////

   $insert ps_Equates
   $insert OIWIN_Equates
   
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////

   // "Internal" PROPGRID types (see RevGrid_PropertyItemTypes.h)
   
// Basic Property item types are    : 0x0000 to 0x00FF
// Property Item Modifier flags are : 0x0100 to 0x4000

   equ PS_PGIT_FLAG_BUTTON$     to 0x0100;
   equ PS_PGIT_FLAG_COMBO$      to 0x0200;
   equ PS_PGIT_FLAG_DLG$        to 0x0400;

   equ PS_PGIT_STATIC$          to 0x0000;
   equ PS_PGIT_EDIT$            to 0x0001;
   equ PS_PGIT_COLOR$           to 0x0002;
   equ PS_PGIT_GRADIENT$        to 0x0003;
   equ PS_PGIT_FONT$            to 0x0005;
   equ PS_PGIT_CHECK$           to 0x0006;
   equ PS_PGIT_FILE$            to 0x0007;
   equ PS_PGIT_FOLDER$          to 0x0008;
   // equ PS_PGIT_IP$              to 0x0009;
   equ PS_PGIT_DATE$            to 0x000A;
   equ PS_PGIT_TIME$            to 0x000B;
   equ PS_PGIT_DATETIME$        to 0x000C;
   equ PS_PGIT_COLOREDIT$       to 0x000D;
   
   equ PS_PGIT_CATEGORY$        to 0x00FF;

   equ PS_PGIT_COMBO$           to ( PS_PGIT_STATIC$    + PS_PGIT_FLAG_COMBO$ );
   equ PS_PGIT_EDITCOMBO$       to ( PS_PGIT_EDIT$      + PS_PGIT_FLAG_COMBO$ );
   equ PS_PGIT_BUTTON$          to ( PS_PGIT_STATIC$    + PS_PGIT_FLAG_BUTTON$ );
   equ PS_PGIT_EDITBUTTON$      to ( PS_PGIT_EDIT$      + PS_PGIT_FLAG_BUTTON$ );
   equ PS_PGIT_COLORBUTTON$     to ( PS_PGIT_COLOR$     + PS_PGIT_FLAG_BUTTON$ );
   equ PS_PGIT_COLORCOMBO$      to ( PS_PGIT_COLOR$     + PS_PGIT_FLAG_COMBO$ );
   equ PS_PGIT_COLORDLG$        to ( PS_PGIT_COLOR$     + PS_PGIT_FLAG_DLG$ );
   equ PS_PGIT_COLOREDITCOMBO$  to ( PS_PGIT_COLOREDIT$ + PS_PGIT_FLAG_COMBO$ );
   equ PS_PGIT_COLOREDITDLG$    to ( PS_PGIT_COLOREDIT$ + PS_PGIT_FLAG_DLG$ );
   equ PS_PGIT_COLOREDITBTN$    to ( PS_PGIT_COLOREDIT$ + PS_PGIT_FLAG_BUTTON$ );
   equ PS_PGIT_GRADIENTBUTTON$  to ( PS_PGIT_GRADIENT$  + PS_PGIT_FLAG_BUTTON$ );
   equ PS_PGIT_FONTBUTTON$      to ( PS_PGIT_FONT$      + PS_PGIT_FLAG_BUTTON$ );
   equ PS_PGIT_FONTDLG$         to ( PS_PGIT_FONT$      + PS_PGIT_FLAG_DLG$ );
   equ PS_PGIT_FILEDLG$         to ( PS_PGIT_FILE$      + PS_PGIT_FLAG_DLG$ );
   equ PS_PGIT_FOLDERDLG$       to ( PS_PGIT_FOLDER$    + PS_PGIT_FLAG_DLG$ );
   
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
   
   // Property Item "ItemStyle" equates - these styles can apply to the 
   // following types
   //
   //    PGIT_EDIT$
   //    PGIT_EDITCOMBO$
   //    PGIT_EDITBUTTON$
   //    PGIT_FILE$
   //    PGIT_FOLDER$
   
   equ PGIS_CENTER$             to 0x0001;   * // ES_CENTER
   equ PGIS_RIGHT$              to 0x0002;   * // ES_RIGHT
   equ PGIS_UPPERCASE$          to 0x0008;   * // ES_UPPERCASE
   equ PGIS_LOWERCASE$          to 0x0010;   * // ES_LOWERCASE
   
   // Property item Color equates - these styles can apply to the following
   // types
   //
   //    PGIT_COLOR$
   //    PGIT_COLORBUTTON$
   //    PGIT_COLORCOMBO$
   //    PGIT_COLORDLG$
   
   equ PGIS_COLORKEYMODE$       to 0x0100;
   
   // Property Item "PasswordStyle" equates - these styles can apply to the 
   // following types
   //
   //    PGIT_STATIC$
   //    PGIT_BUTTON$
   //    PGIT_EDIT$
   //    PGIT_EDITBUTTON$
   
   equ PGIS_PASSWORD$           to 0x0020;   * // ES_PASSWORD
   equ PGIS_PASSWORDPEEK$       to 0x0040;   * // Only for password styles
   
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////

   // Options attribute for a FileDlg (PS_PGIT_FILEDLG$) type.  
   // @svm delimited
   //
   //    <0,0,1> Dialog Title
   //    <0,0,2> Extension Filter string
   //    <0,0,3> Default extension string
   //    <0,0,4> OpenFileName Flags
   
   equ PGFD_OPT_TITLE$          to 1
   equ PGFD_OPT_EXTFILTER$      to 2
   equ PGFD_OPT_DEFEXT$         to 3
   equ PGFD_OPT_FLAGS$          to 4

///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////

   // Properties held in window style bits in PSPOS_SDKSTYLE$ <0,0,1>
   //
   // N/a - all styles overridden by the grid control itself ...
   
///////////////////////////////////////////////////////////////////////////////   
///////////////////////////////////////////////////////////////////////////////

   // PS Style equates
   equ PSS_PROPGRID_AUTOEXPAND$         to 0x00000080 ; * // AUTOEXPAND property
   equ PSS_PROPGRID_DESCDRAWHTML$       to 0x00000100 ; * // DESCRIPTIONDRAWHTML property
   equ PSS_PROPGRID_HIDECATEGORIES$     to 0x00000200 ; * // Inverse SHOWCATEGORIES property
   equ PSS_PROPGRID_SHOWDESCRIPTIONS$   to 0x00000400 ; * // SHOWDESCRIPTIONS property
   equ PSS_PROPGRID_SHOWTOOLTIPS$       to 0x00000800 ; * // TOOLTIPS property
   
   // PS Extended style equates
   equ PSSX_PGD_ROWSTRIPE$              to 0x00000100 ; * // ROWSTRIPE property
   
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////

   // SYSREPOSWINEXES structure overrides
   equ POS_PGD_LIST$             to POS_LIST$        ; * @svm delimited
   equ POS_PGD_OPTIONSKEY$       to POS_TEXT_1$
   equ POS_PGD_COLWIDTH$         to POS_COLWIDE$     ; * <0,0,1> only
   equ POS_PGD_EMPTYTEXT$        to POS_TEXT_14$ 

   // SYSREPOSWINEXES structure overrides
   equ PSPOS_PGD_LIST$           to PSPOS_LIST$      ; * @svm delimited
   equ PSPOS_PGD_OPTIONSKEY$     to PSPOS_TEXT_1$
   equ PSPOS_PGD_COLWIDTH$       to PSPOS_COLWIDE$   ; * <0,0,1> only
   equ PSPOS_PGD_EMPTYTEXT$      to PSPOS_TEXT_14$

///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////

   // Stored LIST property - @svm/@tm delimited
   //
   // At runtime this property is @vm/@svm delimited
   //
   // <0,0,0,1>  Category
   // <0,0,0,2>  Name
   // <0,0,0,3>  Type
   // <0,0,0,4>  Value
   // <0,0,0,5>  Options (@stm) delimited
   // <0,0,0,6>  Description
   // <0,0,0,7>  Disabled  (TRUE$/FALSE$)
   // <0,0,0,8>  ItemStyle (see PGIS_ equates above)
   // <0,0,0,9>  Iconv
   // <0,0,0,10> ErrorText
   // <0,0,0,11> Default Value
   // <0,0,0,12> Internal Option values (@stm) delimited
   // <0,0,0,13> Text To display (overrides Name)
   // <0,0,0,14> Misc value
   //    
   // Same layout for PROPERTY_BY_POS message, except we're @fm/@vm delimited,
   // as we are for the LIST/LISTX propeties that we use at runtime.
   
   equ PSPG_POS_CATEGORY$              to 1
   equ PSPG_POS_NAME$                  to 2
   equ PSPG_POS_TYPE$                  to 3
   equ PSPG_POS_VALUE$                 to 4
   equ PSPG_POS_OPTIONS$               to 5
   equ PSPG_POS_DESCRIPTION$           to 6
   equ PSPG_POS_DISABLED$              to 7
   equ PSPG_POS_EDITSTYLE$             to 8   ; * // deprecated - do not use
   equ PSPG_POS_ITEMSTYLE$             to 8
   equ PSPG_POS_ICONV$                 to 9
   equ PSPG_POS_ERRORTEXT$             to 10
   equ PSPG_POS_DEFVALUE$              to 11
   equ PSPG_POS_OPTIONVALUES$          to 12
   equ PSPG_POS_DISPLAYNAME$           to 13
   equ PSPG_POS_MISCVALUE$             to 14
   
   // These items are just placeholders for ItemStyles but are not part of the LIST property layout
   equ PSPG_POS_COLORKEY$              to 15
   equ PSPG_POS_TEXTALIGN$             to 16
   equ PSPG_POS_TEXTCASE$              to 17
   equ PSPG_POS_PASSWORD$              to 18
   equ PSPG_POS_PASSWORDPEEK$          to 19
   
   // These items are just placeholders for Options but are not part of the LIST property layout
   equ PSPG_POS_DIALOGTITLE$           to 20
   equ PSPG_POS_EXTFILESTRING$         to 21
   equ PSPG_POS_DEFEXTSTRING$          to 22
   equ PSPG_POS_OPENFILENAMEFLGS$      to 23
   
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////

   // PROPCHANGED context - these are normal used within the context of the IDE
   
   equ PPL_PRPCHG_CONTEXT_USEREDIT$    to 0x0000 ; // From user-edit
   equ PPL_PRPCHG_CONTEXT_FROMOPTIONS$ to 0x0001 ; // From PROPOPTIONS
   equ PPL_PRPCHG_CONTEXT_FROMCODE$    to 0x0002 ; // From code
   equ PPL_PRPCHG_CONTEXT_NOVALIDERR$  to 0x0010 ; // Don't raise a VALIDERR event.
   equ PPL_PRPCHG_CONTEXT_SYNCMODE$    to 0x0020 ; // All events must be fired synchronously
   
   /* Not implemented
   equ PPL_PRPCHG_CONTEXT_NOSETPGL$    to 0x2000 ; // Don't apply the change to the PGL
   equ PPL_PRPCHG_CONTEXT_NOSETDS$     to 0x4000 ; // Don't apply the change to the DS
   equ PPL_PRPCHG_CONTEXT_NOSETPROP$   to 0x8000 ; // Don't apply the change to the design control
   */ 

                                                                                            
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
#endif
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
