AoRaToS Posted August 25, 2008 Share Posted August 25, 2008 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 More sharing options...
AdmiralAlkex Posted August 25, 2008 Share Posted August 25, 2008 (edited) See the example for _GUICtrlTreeView_Create() in the helpfile, it shows how to make treeview "react" when clicked. Edited August 25, 2008 by AdmiralAlkex .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
AoRaToS Posted August 25, 2008 Author Share Posted August 25, 2008 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 More sharing options...
AoRaToS Posted August 26, 2008 Author Share Posted August 26, 2008 Bump... Anyone that can help? How can I return the name(text) of a Treeview child when I doubleclick on it?I want to double click on a child--->run a function that uses the child name... 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 More sharing options...
AdmiralAlkex Posted August 26, 2008 Share Posted August 26, 2008 I haven't worked much with treeviews but I would guess it should be like this: _GUICtrlTreeView_GetText($treeview, _GUICtrlTreeView_GetSelection($treeview)) .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface 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