Jump to content
Sign in to follow this  
Medic873

TreeView If Selected

Recommended Posts

Medic873

I have a lot of tree views in my gui and Im wanting to be where once the user clicks start it will take the TreeView item selected and say it = $item = "Url"

and then display it how can I have it where it says if this tree view is selected then change $item1 to this and if this tree view select then change it to this..

Thank you in advance

Share this post


Link to post
Share on other sites
Medic873

why dosnt this work and how can I get this to work properly

If GUICtrlRead($TreeView1_1) = 1 Then

$Url = "aub";

EndIf

Share this post


Link to post
Share on other sites
4ggr35510n

Without example, only 2 guess I can make:

Does If expression is checked just once or many times? Is it in infinite loop or assigned to a button?

Maybe try GuiCtrlRead($main_tree_view_id) for getting ID of item currently selected? Check GuiCtrlCreateTreeView helpfile example for this solution.

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.