compile insert PS_Edit_Equates
/* 
   ** Copyright (C) 2013 Revelation Software Inc. All Rights Reserved **
   
   Author   : Wile C Coyote - Super Genius
   Date     : May 2013
   Purpose  : Constants for working with PS EDITLINE/EDITBOX object structures
   
   
   Comments
   ========
   
   
   Amended  Date        Reason
   =======  ====        ======
   Mr C     25 Nov 21   Added RICHEDITBOX equates
   djh      12 Jan 18   fix equate POS_EDB_TABSTOPS$ to point to POS_COLWIDE$ instead of PSPOS_COLWIDE$
   Mr C     16 Nov 17   Added PSS_EDIT_V9_DISABLEDHARD$
   Mr C     07 Sep 16   Fixed missing equate "$" suffixes
   Mr C     07 Jul 16   Include msWin_Edit_Equates
   Mr C     02 Feb 16   Added SHOWBALLOONTIP constants
	Mr C     30 Dec 15   Added oiWin_Equates
   Mr C     20 Dec 15   Corrected Hard/Soft disabled styling
   Mr C     04 Oct 15   Added more PS
   Mr C     29 Sep 15   Updated PASSWORDSTYLE property styles
   Mr C     08 Apr 15   Tidy up 
   Mr C     24 Mar 15   Moved ACCEPTRETURN and ACCEPTTAB
   Mr C     23 Mar 15   Added AUTOCOMPLETE equates
*/
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
#ifndef _PS_EDIT_EQUATES_
#define _PS_EDIT_EQUATES_
///////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////

   $insert msWin_Edit_Equates
	$insert oiwin_Equates
   $insert ps_Equates
   $insert ps_Style_X_Equates
   
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////

   // Properties held in window style bits in PSPOS_SDKSTYLE$ <0,0,1>
   //
   // ES_LEFT            -> TEXTALIGN property      (all)
   // ES_RIGHT           -> TEXTALIGN property      (all)
   // ES_CENTER          -> TEXTALIGN property      (all)
   // ES_UPPERCASE       -> TEXTCASE property       (all)
   // ES_LOWERCASE       -> TEXTCASE property       (all)
   // ES_PASSWORD        -> Not used in v10         (EDITLINE)
   // ES_AUTOVSCROLL     -> AUTOSCROLL property     (EDITBOX)
   // ES_AUTOHSCROLL     -> WORDWRAP property       (EDITBOX)
   // ES_NOHIDESEL       -> HIDESELECTION property  (all)
   // ES_READONLY        -> READONLY property       (all)
   // ES_WANTRETURN      -> ACCEPTRETURN property   (all)
   
///////////////////////////////////////////////////////////////////////////////   
///////////////////////////////////////////////////////////////////////////////

   // PS Style equates
   equ PSS_EDIT_TABOUTEXCEED$         to 0x00000020               ; // TABOUTEXCEED property
   equ PSS_EDIT_SOFTDISABLED$         to 0x00080000               ; // ENABLED property
   
   // From v9 FormDes (obsolete)
   equ PSS_EDIT_V9_DISABLEDHARD$      to 0x00000040
   
   // PS Style equates for EDITLINEs
   equ PSS_EDIT_ACCEPTTAB$            to 0x00000001               ; // ACCEPTTAB property 
   equ PSS_EDIT_AUTOSELECT$           to 0x00000008               ; // AUTOSELECT property
   equ PSS_EDIT_SELECTBYGROUP$        to 0x00000200               ; // EDITMASKGROUPSEL property
   equ PSS_EDIT_SETMASKEDONLY$        to 0x00000400               ; // SETMASKEDCHARSONLY property
   equ PSS_EDIT_GETMASKEDONLY$        to 0x00000800               ; // GETMASKEDCHARSONLY property
     
   equ PSSX_EDIT_PASSWORD$            to 0x00000100;              ; // PASSWORDSTYLE property
   
   // PS style equates for EDITBOXs
   equ PSS_EDIT_AUTOINDENT$           to 0x00000200               ; // AUTOINDENT property
   equ PSS_EDIT_TEXTVALVM$            to 0x00000400               ; // TEXTVALVM property
   
   // PS style equates for RICHEDITBOXs
   equ PSS_RCH_USETEXTVALFORDEFPROP$  to 0x00000100               ; // USETEXTVALFORDEFPROP property
   equ PSS_RCH_SPELLCHECK$            to 0x00000800               ; // SPELLCHECK property
   equ PSS_RCH_SINGLELINE$            to 0x08000000               ; // SINGLELINE property
   
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////

   // SYSREPOSWINS structure overrides
   
   // all
   equ POS_EDX_LIMIT$               to POS_CHARCOUNT$
   
   // EDITLINE
   equ POS_EDL_AUTOCOMP_LIST$       to POS_LIST$         ; // @svm delimited custom list
   equ POS_EDL_AUTOCOMP_CFG$        to POS_VALUE$        ; // <0,0,1> source; <0,0,2> mode
   equ POS_EDL_CUEBANNER$           to POS_TEXT_1$   
   equ POS_EDL_EDITMASK$            to POS_TEXT_2$       ; // <0,0,1> mask; <0,0,2> template; <0,0,3> maskchar
   equ POS_EDL_VALIDCHARS$          to POS_TEXT_3$ 
   equ POS_EDL_EXITCHARS$           to POS_TEXT_4$
   equ POS_EDL_PASSWORDPEEKTIME$    to POS_NUMCOLS$
   
   // EDITBOX
   equ POS_EDB_TABSTOPS$            to POS_COLWIDE$      ; // @svm delimited
   
   // RICHEDITBOX
   equ POS_RCH_MARGINS$             to POS_TEXT_5$       ; // <0,0,1> Left margin; <0,0,2> Right Margin

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

   // SYSREPOSWINEXES structure overrides
   
   // all
   equ PSPOS_EDX_LIMIT$               to PSPOS_CHARCOUNT$
   
   // EDITLINE
   equ PSPOS_EDL_AUTOCOMP_LIST$       to PSPOS_LIST$         ; // @svm delimited custom list
   equ PSPOS_EDL_AUTOCOMP_CFG$        to PSPOS_VALUE$        ; // <0,0,1> source; <0,0,2> mode
   equ PSPOS_EDL_CUEBANNER$           to PSPOS_TEXT_1$   
   equ PSPOS_EDL_EDITMASK$            to PSPOS_TEXT_2$       ; // <0,0,1> mask; <0,0,2> template; <0,0,3> maskchar
   equ PSPOS_EDL_VALIDCHARS$          to PSPOS_TEXT_3$ 
   equ PSPOS_EDL_EXITCHARS$           to PSPOS_TEXT_4$
   equ PSPOS_EDL_PASSWORDPEEKTIME$    to PSPOS_NUMCOLS$
   
   // EDITBOX
   equ PSPOS_EDB_TABSTOPS$            to PSPOS_COLWIDE$     ; // @svm delimited
   
   // RICHEDITBOX
   equ PSPOS_RCH_MARGINS$             to PSPOS_TEXT_5$      ; // <0,0,1> Left margin; <0,0,2> Right Margin
   
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////

   // // OI EDIT controls have a "tri-bool" enabled state:
   //
   // -1 - means "hard disabled", which is the normal Windows OS disabled
   //  0 - means soft disabled, which the control looks enabled but all 
   //      keyboard and mouse interaction is blocked.
   //  1 - means enabled.

   // ENABLED property values
   
   equ PS_EDL_ENABLED$                to 1
   equ PS_EDL_SOFTDISABLED$           to 0
   equ PS_EDL_HARDDISABLED$           to -1
   
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////

   // TEXTCASE property 
   
   equ PS_EDX_TEXTCASE_MIXED$         to 0
   equ PS_EDX_TEXTCASE_LOWER$         to 1
   equ PS_EDX_TEXTCASE_UPPER$         to 2
   
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////

   // SHOWBALLOONTIP method
   //
   //   call exec_Method( ctrlEntID, "SHOWBALLOONTIP", title, message, iconID )
   
   // Icon IDs
   equ PS_EDX_TTI_NONE$              to 0
   equ PS_EDX_TTI_INFO$              to 1
   equ PS_EDX_TTI_WARNING$           to 2
   equ PS_EDX_TTI_ERROR$             to 3
   equ PS_EDX_TTI_INFO_LARGE$        to 4
   equ PS_EDX_TTI_WARNING_LARGE$     to 5
   equ PS_EDX_TTI_ERROR_LARGE$       to 6

///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
   
   // AUTOCOMPLETEMODE property
   
   equ PS_EDL_ACM_DISABLED$           to 0 
   equ PS_EDL_ACM_APPEND$             to 1
   equ PS_EDL_ACM_SUGGEST$            to 2 ; // dropdown...
   equ PS_EDL_ACM_ALL$                to 3 ; // append and dropdown
   
   // AUTOCOMPLETESOURCE property   
   
   equ PS_EDL_ACS_CUSTOM$             to 0 ; // Use AUTOCOMPLETELIST
   equ PS_EDL_ACS_FILELIST$           to 1
   equ PS_EDL_ACS_DIRLIST$            to 2
   equ PS_EDL_ACS_HISTORY$            to 3
   equ PS_EDL_ACS_MRULIST$            to 4
   equ PS_EDL_ACS_SHELL$              to 5
   
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////

   // RICHEDIT MARGINS property
   
   equ PS_RCH_DFLT_MARGIN$            to 5
   equ PS_RCH_MIN_MARGIN$             to 0
   equ PS_RCH_MAX_MARGIN$             to 100
   
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
#endif
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
