compile insert PS_ListBox_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 LISTBOX object structures
   
   
   Comments
   ========
   
   
   Amended  Date        Reason
   =======  ====        ======
   Mr C     05 May 20   Added PSS_LST_NOTIFYLASTITEM$ 
                        Added PSS_LST_ACCEPTLEFTRIGHT$
   Mr C     12 Dec 16   Added PSSX_LST_ROWSTRIPE$
                        Added HeaderStyles structure indexes
   Mr C     29 Sep 16   Added PSS_LST_ACCEPTRETURN$ constant
   Mr C     07 Sep 16   Added PSSX_LST_MAKEDRAGLIST constant
                        Added RowStripe Item Styles
   Mr C     10 Jun 16   Added ShowItemToolTips constants
   Mr C     04 Feb 16   Added PSPOS_LST_INITSTOREAGESIZE$ and PSPOS_LST_EDITKEY$
   Mr C     21 Nov 16   Added EMPTYTEXT constants
   Mr C     15 Sep 15   Added EditOptions
   Mr C     14 Sep 15   Added more PS Styles
   Mr C     13 Jul 15   Tided up names, added SELECTIONSTYLE
   Mr C     12 Feb 15   Added PSPOS_LST_ROWHEIGHT$
*/
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
#ifndef _PS_LISTBOX_EQUATES_
#define _PS_LISTBOX_EQUATES_
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////

   $insert msWin_ListBox_Equates
   $insert oiWin_Equates
   $insert ps_Equates

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

   // Properties held in window style bits in PSPOS_SDKSTYLE$ <0,0,1>
   //
   // LBS_EXTENDEDSEL        -> EXTENDEDSELECT property
   // LBS_MULTICOLUMN        -> MULTICOLUMN property
   // LBS_MULTIPLESEL        -> MULTIROWSELECT property
   // LBS_SORT               -> SORTED property
   // LBS_DISABLENOSCROLL    -> SHOWVSCROLL property
   // LBS_USETABSTOPS        -> USETABSTOPS property
   // LBS_OWNERDRAWVARIABLE  -> VARIABLEROWHIGHT property
   
///////////////////////////////////////////////////////////////////////////////   
///////////////////////////////////////////////////////////////////////////////

   // PS Style equates
   equ PSS_LST_HOTRACKITEMS$            to 0x00000001; // HOTTRACK property
   equ PSS_LST_CHECKBOXES$              to 0x00000002; // CHECKBOXES property
   equ PSS_LST_TRANSBMP$                to 0x00000008; // deprecated - backwards compat only
   equ PSS_LST_NOSELBMP$                to 0x00000080; // HIGHLIGHTTEXTONLY property
   equ PSS_LST_HIERARCHY$               to 0x00000100; // v9 == TREELISTBOX only
   equ PSS_LST_OVERLAPTABS$             to 0x00000400; // OVERLAPPINGTABS property
   equ PSS_LST_ACCEPTRETURN$            to 0x00020000; // ACCEPTRETURN property
   equ PSS_LST_ALLOWEDIT$               to 0x00040000; // READONLY property (inverse)
   equ PSS_LST_NOTIFYLASTITEM$          to 0x00080000; // NOTIFYLASTITEM property
   equ PSS_LST_ENABLEDROPEXPAND$        to 0x00400000; 
   equ PSS_LST_ENTERASDBLCLK$           to 0x01000000; // ENTERASDBLCLK property
   equ PSS_LST_ACCEPTLEFTRIGHT$         to 0x00200000; // ACCEPTLEFTRIGHT property
   equ PSS_LST_VCENTER$                 to 0x08000000; // Deprecated - always on in v10
   
   // Extended PS Style equates
   equ PSSX_LST_SHOWITEMTOOLTIPS$       to 0x00000010; // SHOWITEMTOOLTIPS property
   equ PSSX_LST_INPLACEITEMTOOLTIPS$    to 0x00000020; // SHOWITEMTOOLTIPS property
   equ PSSX_LST_SHOWVALUESFORTOOLTIPS$  to 0x00000040; // SHOWVALUESASTIPS property 
   equ PSSX_LST_ROWSTRIPE$              to 0x00000100; // ROWSTRIPE property
   equ PSSX_LST_LISTBOXSELECTIONSTYLE$  to 0x00000400; // SELECTIONSTYLE property
   equ PSSX_LST_TREEVIEWSELECTIONSTYLE$ to 0x00000800; // SELECTIONSTYLE property
   equ PSSX_LST_MAKEDRAGLIST$           to 0x00001000; // ALLOWDRAGREORDER property
   
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////

   // SYSREPOSWINS structure overrides
   equ POS_LST_LIST$                  to POS_LIST$        ; * @svm delimited
   equ POS_LST_VALUES$                to POS_VALUE$       ; * @svm delimited (AMV with PSPOS_LST_LIST$)
   equ POS_LST_TEXT$                  to POS_TEXT$           
   equ POS_LST_IMAGELIST$             to POS_IMGLIST_1$
   equ POS_LST_IMAGELIST_PROPS$       to POS_IMGLIST_1_PROPS$
   equ POS_LST_HORZEXTENT$            to POS_NUMCOLS$   
   equ POS_LST_TABSTOPS$              to POS_COLWIDE$
   equ POS_LST_COLWIDTH$              to POS_COLWIDE$     ; * <0,0,1> only for multi-col
                                                            ; * overrides tab stops...
   equ POS_LST_ITEMSSTYLES$           to POS_TEXT_1$      ; * @svm/@tm delimited -Normal,Hot,Disabled,Selected,HotSelected,SelNoFocus
   equ POS_LST_CHECK$                 to POS_TEXT_2$      ; * @svm delimited (AMV with PSPOS_LST_LIST$)
   equ POS_LST_ROWHEIGHT$             to POS_TEXT_3$ 
   equ POS_LST_EDITOPTIONS$           to POS_TEXT_4$      ; * @svm delimited - TextCase,ValidChars,MaxLimit 
   equ POS_LST_INITSTOREAGESIZE$      to POS_TEXT_5$      
   equ POS_LST_EDITKEY$               to POS_TEXT_6$
   equ POS_LST_HEADERSTYLES$          to POS_TEXT_7$      ; * @svm/@tm delimited -Normal,Hot,Disabled
   equ POS_LST_ROWSTRIPEITEMSTYLES$   to POS_TEXT_13$     ; * @svm/@tm delimited - Odd,Even
   equ POS_LST_EMPTYTEXT$             to POS_TEXT_14$

   // SYSREPOSWINEXES structure overrides
   equ PSPOS_LST_LIST$                to PSPOS_LIST$        ; * @svm delimited
   equ PSPOS_LST_VALUES$              to PSPOS_VALUE$       ; * @svm delimited (AMV with PSPOS_LST_LIST$)
   equ PSPOS_LST_TEXT$                to PSPOS_TEXT$           
   equ PSPOS_LST_IMAGELIST$           to PSPOS_IMGLIST_1$
   equ PSPOS_LST_IMAGELIST_PROPS$     to PSPOS_IMGLIST_1_PROPS$
   equ PSPOS_LST_HORZEXTENT$          to PSPOS_NUMCOLS$   
   equ PSPOS_LST_TABSTOPS$            to PSPOS_COLWIDE$
   equ PSPOS_LST_COLWIDTH$            to PSPOS_COLWIDE$     ; * <0,0,1> only for multi-col
                                                            ; * overrides tab stops...
   equ PSPOS_LST_ITEMSSTYLES$         to PSPOS_TEXT_1$      ; * @svm/@tm delimited -Normal,Hot,Disabled,Selected,HotSelected,SelNoFocus
   equ PSPOS_LST_CHECK$               to PSPOS_TEXT_2$      ; * @svm delimited (AMV with PSPOS_LST_LIST$)
   equ PSPOS_LST_ROWHEIGHT$           to PSPOS_TEXT_3$  
   equ PSPOS_LST_EDITOPTIONS$         to PSPOS_TEXT_4$      ; * @svm delimited - TextCase,ValidChars,MaxLimit
   equ PSPOS_LST_INITSTOREAGESIZE$    to PSPOS_TEXT_5$      
   equ PSPOS_LST_EDITKEY$             to PSPOS_TEXT_6$ 
   equ PSPOS_LST_HEADERSTYLES$        to PSPOS_TEXT_7$      ; * @svm/@tm delimited -Normal,Hot,Disabled
   equ PSPOS_LST_ROWSTRIPEITEMSTYLES$ to PSPOS_TEXT_13$     ; * @svm/@tm delimited - Odd,Even
   equ PSPOS_LST_EMPTYTEXT$           to PSPOS_TEXT_14$
                                                            
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////

   // SELECTIONSTYLE equates - determines if the non-header items in the 
   // listbox are painted in the classic Listbox style (solid fill), or in 
   // TreeView style (lighter color with border).  
   //
   // Note that with some renderers (Classic and XP) the ListBox and TreeView
   // items are painted in the same style so the SELECTIONSTYLE has no effect.
   
   equ LBRS_AUTO$                     to 0; // Use the renderer default
   equ LBRS_LISTBOX$                  to 1; // Render as normal ListBox items
   equ LBRS_TREEVIEW$                 to 2; // Render as per Treeview items
                                            // (if supported by the renderer)
                                            
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////

   // EDITOPTIONS equates - an @fm delimited array of options to apply to the
   //                       editor when editing items.
   //
   //   <1> TextCase   (see EditLine TEXTCASE property)
   //   <2> ValidChars (see EditLine VALIDCHARS property)
   //   <3> Max Limit  (see EditLine LIMIT property)
   
   equ LBEO_POS_TEXTCASE$            to 1
   equ LBEO_POS_VALIDCHARS$          to 2
   equ LBEO_POS_MAXLIMIT$            to 3
   
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////

   // SHOWITEMTOOLTIPS equates
   //
   //   0 - Disabled
   //   1 - Offset  (tooltip is shown offset to the cursor)
   //   2 - Inplace (tooltip is shown over the item)
   
   equ LBITT_DISABLED$               to 0
   equ LBITT_OFFSET$                 to 1
   equ LBITT_INPLACE$                to 2
                                            
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
                                                            
   // ITEM State equates - used with ITEMIMAGE/STYLE methods
   equ LBIS_NORMAL$                   to 1
   equ LBIS_HOT$                      to 2
   equ LBIS_DISABLED$                 to 3
   equ LBIS_SELECTED$                 to 4
   equ LBIS_HOTSELECTED$              to 5
   equ LBIS_SELNOFOCUS$               to 6
   
   // ITEMSTYLE structure - used with ITEMSTYLE method
   // 
   // <1> ForeColor
   // <2> BackColor From
   // <3> BackColor To
   // <4> BorderColor
   // <5> Bold
   // <6> Italic
   // <7> Underline
   // <8> Translucency (0-100) 
   
   equ LBIS_POS_FORECOLOR$           to 1 ; // COLORREF
   equ LBIS_POS_BACKCOLOR_FROM$      to 2 ; // COLORREF
   equ LBIS_POS_BACKCOLOR_TO$        to 3 ; // COLORREF
   equ LBIS_POS_BORDERCOLOR$         to 4 ; // COLORREF
   equ LBIS_POS_BOLD$                to 5 ; // Boolean
   equ LBIS_POS_ITALIC$              to 6 ; // Boolean
   equ LBIS_POS_UNDERLINE$           to 7 ; // Boolean
   equ LBIS_POS_TRANSLUCENCY$        to 8 ; // UInt (0-100)
   
   // Note that the NORMAL item style position in the PS structure is NOT 
   // used.
                                                            
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
#endif
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
