dazza Posted February 13, 2009 Share Posted February 13, 2009 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 More sharing options...
dazza Posted February 13, 2009 Author Share Posted February 13, 2009 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? Link to comment Share on other sites More sharing options...
StrategicX Posted February 13, 2009 Share Posted February 13, 2009 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 More sharing options...
dazza Posted February 16, 2009 Author Share Posted February 16, 2009 (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 February 16, 2009 by dazza Link to comment Share on other sites More sharing options...
dazza Posted February 17, 2009 Author Share Posted February 17, 2009 Anyone... please... Link to comment Share on other sites More sharing options...
water Posted February 17, 2009 Share Posted February 17, 2009 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 - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
dazza Posted February 17, 2009 Author Share Posted February 17, 2009 Perfect! I should have spotted that! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now