You could enumerate through all of the siblings of a node to get the count. While you're enumerating, take note of the node whose Selected property is True, and that's your current item. From that, you can build your "x of y" index.

Aaron

On 12/11/2010 8:41 PM, J.J. Meddaugh wrote:
Hello. I have one more issue with making this treeview speak consistently. I'm replacing the OnFieldData with my own text which is fine, but it also is replacing the item index. So I need a way for this index to still speak. What would be the easiest way of getting the index and total for the current node so I can speak it if the user has the setting enabled? It seems a bit strange that the item index gets replaced with my text but the treeview depth is still spoken.

--
Aaron Smith
Product Support Specialist * Web Development
GW Micro, Inc. * 725 Airport North Office Park, Fort Wayne, IN 46825
260-489-3671 * gwmicro.com

To insure that you receive proper support, please include all past
correspondence (where applicable), and any relevant information
pertinent to your situation when submitting a problem report to the GW
Micro Technical Support Team.

Reply via email to