compile insert PS_TreeListBox_Equates /* ** Copyright (C) 2013-2020 Revelation Software Inc. All Rights Reserved ** This insert is proprietary and is not to be used by or disclosed to others, nor is it to be copied without written permission from Revelation Technologies, Inc. Author : Wile C Coyote - Super Genius Date : Dec 2014 Purpose : Constants for working with PS TREELISTBOX object structures Comments ======== TREELISTBOX is the v10 name for the v9 heirarichal listbox. It can now be created as a control in it's own right, rather than as a listbox with a style setting. Note that it still shares many of it's properties with with the standard LISTBOX. NOTE: When the v10 PS loads a v9 form containing a LISTBOX with the PSS_LISTBOX_HIERARCHY$ PS style bit set it actually creates a TREELISTBOX control (though the type name returns LISTBOX for backwards compatibility) Amended Date Reason ======= ==== ====== Mr C 06 May 20 Added SELPOSX property equates djh 16 Mar 16 Added $ to PSS_TREELISTBOX_ARROWBUTTONS Mr C 14 Dec 15 Added PSSX_TREELISTBOX_ENSUREHIERARCHY$ Mr C 14 Sep 15 Added more PS styles */ /////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////// #ifndef _PS_TREELISTBOX_EQUATES_ #define _PS_TREELISTBOX_EQUATES_ /////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////// $insert ps_ListBox_Equates /////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////// // PS Style equates equ PSS_TREELISTBOX_BUTTONS$ to 0x00000020; * // TREEBUTTONS property equ PSS_TREELISTBOX_ARROWBUTTONS$ to 0x00000040; * // TREEBUTTONS property equ PSS_TREELISTBOX_HIERARCHY$ to 0x00000100; * // from v9. not needed in v10 equ PSS_TREELISTBOX_IGNOREBUTTONINDENT$ to 0x00000200; * // BUTTONINDENTALWAYS property (inverse) equ PSS_TREELISTBOX_SHOWHEADERBUTTONS$ to 0x00000800; * // SHOWHEADERBUTTONS property equ PSS_TREELISTBOX_INITCOLLAPSED$ to 0x04000000; * // INITCOLLAPSED property // PS Extended styles equ PSSX_TREELISTBOX_ENSUREHIERARCHY$ to 0x00000004; * // ENSUREHIERARCHY property /////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////// // SELPOSX property // // <1> Position of the selected item in the fully expanded list // <2> Indent of the selected item // <3> Number of sub-items in the next level // // 0 : None // > 0 : Number of visible (expanded) items // < 0 : Number of hidden (collapsed) items // // <4> Position in visible list (i.e. SELPOS) // <5> Position of predecessor (immediately preceding "branch") equ PS_SLPX_FULLPOS$ to 1 equ PS_SLPX_INDENT$ to 2 equ PS_SLPX_CHILDREN$ to 3 equ PS_SLPX_VISPOS$ to 4 equ PS_SLPX_PARENTPOS$ to 5 /////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////// // TREEBUTTONS property equ PSTRBN_HIDDEN$ to 0 equ PSTRBN_STANDARD$ to 1 equ PSTRBN_ARROWS$ to 2 /////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////// #endif /////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////