Jump to content

Bug in TreeView? (or my ignorance)


dazza
 Share

Recommended Posts

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? :)

Link to comment
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

Link to comment
Share on other sites

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
Link to comment
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 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...