Sign in to follow this  
Followers 0
dazza

Bug in TreeView? (or my ignorance)

7 posts in this topic

I have a TreeView with images.

When I select an item, or use the arrows keys to expand and travel down the TreeView, the selected image changes to image 0 (in my ImageList). When I move off it, the image reverts back to its initial (and correct) number.

Can I turn this off? :)

Share this post


Link to post
Share on other sites



And.. after unsuccessfully looking through the help files... how do I get all children ticked (as the treeview has tick boxes) if the parent is ticked?

Share this post


Link to post
Share on other sites

And.. after unsuccessfully looking through the help files... how do I get all children ticked (as the treeview has tick boxes) if the parent is ticked?

Ya I had this same problem working on my telebot I had a crazy idea to put my teleport "hotspots" in a tree view to have them branch off certain areas i nthew game like Org--->strangle horn ..etc But when trying to read the selected item the numbers were changing >< ..Sorry I dont have the answer to this.. I also gave up o nmy idea because I realized a list box did the job much better .. :) But im interested to see if anyone has an answer for this... Good luck man


*WoW Dev Projects: AFK Tele Bot development journalSimple Player Pointer Scanner + Z-Teleport*My Projects: coming soon.Check out my WoW Dev wiki for patch 3.0.9!http://www.wowdev.wikidot.com

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Ok, I'll attack this from another angle.

My Treeview is called $Treeview. In this code:

While 1
   $msg = GUIGetMsg()
   If $msg = $Treeview then
     ;do stuff
   EndIf
Wend

How do I trap whether I mouse-clicked or arrow-keyed in the Treeview control?

:)

Edited by dazza

Share this post


Link to post
Share on other sites

Anyone... please...

Share this post


Link to post
Share on other sites

Please have a look at _GUICtrlTreeView_Create in the Autoit Help File. There you'll find a good example.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

Perfect! I should have spotted that!

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