Article View: borland.public.vdbase.data.sql
Article #852Re: Tree Item Object
From: Romain Strieff [TeamB]
Date: Fri, 12 Jun 1998 00:00
Date: Fri, 12 Jun 1998 00:00
87 lines
3467 bytes
3467 bytes
In article <35813DAE.69D1@mlsys.it>, mlsys@mlsys.it grudgingly admits... > I need a description on all properties, event and methods of Tree Item > Object (A component of Tree View). > > In the standard help there are nothing about this object. > > Please tell me something about this, or tell me the URL where can I find > this information. > > It's in my Online help for 7.01 class TreeItem Topic group Related topics An item in a TreeView. Syntax [<oRef> =] new TreeItem(<parent> [,<name expC>]) <oRef> A variable or property�typically of <parent>�in which to store a reference to the newly created TreeItem object. <parent> The parent object�a TreeView object for top-level items, or another TreeItem�to which you�re binding the TreeItem object. <name expC> An optional name for the TreeItem object. If not specified, the TreeItem class will auto-generate a name for the object. Properties The following tables list the properties and methods of interest in the TreeItem class. (No particular events are associated with this class.) Property Default Description bold false Whether the text label is bold checked false Whether the item is visually marked as checked className TREEITEM Identifies the object as an instance of the TreeItem class expanded false Whether the item�s children are shown or hidden firstChild The first child tree item handle The Windows tree item handle (similar to hWnd) image Image displayed between checkbox and text label when item does not have focus level The tree level of the item nextSibling The next tree item with the same parent noOfChildren The number of child tree items prevSibling The previous tree item with the same parent selectedImage Image displayed between checkbox and text label when item has focus text The text label of the tree item Method Parameters Description ensureVisible() Expands the tree and scrolls the tree view if necessary to make the tree item visible select() Makes the tree item the selected item in the tree setAsFirstVisible() Expands the tree and scrolls the tree view if necessary to try to make the tree item the first (topmost) visible tree item sortChildren() Sorts the child tree items The following table lists the common properties, events, and methods of the TreeItem class: Property Event Method name parent none release() Description Each item in a tree view can contain text, an icon image that can change when the the item is selected, and a checkbox. You can replace the checkbox images with a different pair of images to represent any two- state condition. A TreeItem object can contain other TreeItem objects as child objects in a subtree, which can be expanded or collapsed. -- Romain Strieff [TeamB] Want quick help? Check previous Q and A at: http://forumsearch.borland.com:88/ and TIs at http://www.borland.com/VdBASE/vdbprod.html
Technical Details
Message-ID:
<MPG.feb64b8c21103aa98ae17@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<35813DAE.69D1@mlsys.it>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: ff5a1,96376944dfb296fc X-Google-Attributes: gidff5a1,public From: Romain@Do.not.reply.via.e-mail (Romain Strieff [TeamB]) Subject: Re: Tree Item Object Date: 1998/06/12 Message-ID: <MPG.feb64b8c21103aa98ae17@forums.borland.com> X-Deja-AN: 362039868 References: <35813DAE.69D1@mlsys.it> Organization: TeamB Reply-To: teamb@opto-pps.com Newsgroups: borland.public.vdbase.data.sql