Jump to content

Treeview doubleclick item runs a function...


Recommended Posts

Is the only way to do what I described using the position of the mouse on the control?I want to use it for childs in a Treeview, is there any way I could assign a double click function to all the childs created?only difference everytime will be a few variables...I haven't really understood the way with the posotion of the mouse, can someone help?maybe explain...

s!mpL3 LAN Messenger

Current version 2.9.9.1 [04/07/2019]

s!mpL3 LAN Messenger.zip

s!mpL3

Link to comment
Share on other sites

See the example for _GUICtrlTreeView_Create() in the helpfile, it shows how to make treeview "react" when clicked.

Edited by AdmiralAlkex
Link to comment
Share on other sites

Thanks allot, I've made some progress...What I want now is when I double click on the item it will return it's name, it's text, I can't get it to get the child's text, I'm using the example _GUICtrlTreeView_ClickItem, can someone edit it's code so that it returns a child's text (I'm using a variable so I need it to return the name each one I doubleclick has)

s!mpL3 LAN Messenger

Current version 2.9.9.1 [04/07/2019]

s!mpL3 LAN Messenger.zip

s!mpL3

Link to comment
Share on other sites

I haven't worked much with treeviews but I would guess it should be like this:

_GUICtrlTreeView_GetText($treeview, _GUICtrlTreeView_GetSelection($treeview))
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...