Sign in to follow this  
Followers 0
kalayaan

Reading TreeView text

10 posts in this topic

Hi,

I know it's been asked by redndahead (http://www.autoitscript.com/forum/index.php?showtopic=5053&hl=) but I don't think an answer has been found.

So how does one read what is selected in a treeview? GuiRead picks up the control ID but not the text.

Thanks.

Share this post


Link to post
Share on other sites



Hi,

I know it's been asked by redndahead (http://www.autoitscript.com/forum/index.php?showtopic=5053&hl=) but I don't think an answer has been found.

So how does one read what is selected in a treeview? GuiRead picks up the control ID but not the text.

Thanks.

<{POST_SNAPBACK}>

as the text cannot be changed only the Id is return so during the setting memorise it so you can reuse it is the only solution :)

Share this post


Link to post
Share on other sites

as the text cannot be changed only the Id is return so during the setting memorise it so you can reuse it is the only solution ;)

<{POST_SNAPBACK}>

:) bummer. i was trying to list the contents of a folder and the treeviewitems are created automatically. oh well. probable workaround may be to store the text in an array at creation and crossreference afterwards.

thanks anyway... :)

Share this post


Link to post
Share on other sites

:) bummer. i was trying to list the contents of a folder and the treeviewitems are created automatically. oh well. probable workaround may be to store the text in an array at creation and crossreference afterwards.

thanks anyway... :)

When I add generic treeview reading code (like ControlListView) you'll be able to do it that way.

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

When I add generic treeview reading code (like ControlListView) you'll be able to do it that way.

<{POST_SNAPBACK}>

No pressure, but when you are rearranging the controlcommand function is this when you are plannning on adding this? Sorry I just have put a project on hold until this is complete and it would be nice to know.

Thanks

red

Edited by redndahead

Share this post


Link to post
Share on other sites

No pressure, but when you are rearranging the controlcommand function is this when you are plannning on adding this?  Sorry I just have put a project on hold until this is complete and it would be nice to know.

Thanks

red

Oh ages away, not until after 3.0.103 is publically released.

Share this post


Link to post
Share on other sites

:) oh that's too bad

:) red

Share this post


Link to post
Share on other sites

Yeah yeah yeah excuses excuses :)

red

Share this post


Link to post
Share on other sites

Am in the same boat as Red. But, hey Red, wouldn't it be nice if the 103 was released with the listview control included to complete the GUI functionality? :idiot::D

Just my thought. :lol:

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0