473,406 Members | 2,336 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

TreeView Onexpand and Ondoubleclick problem

Hi,
I have a treeview, wich displays directories and files.

when I double click on a directory node it
calls the OnBefore/afterExpand and my function expands it,
however this happens before the mouse button is released,
but when the muse button is released it calls ondouble click for the
node wich is now under the cursor and may wel be a new node wich
cuases much unwanted behavour as it opens a file at random..

is there any way to avoid this iritating behavour ?

thanks
Colin =^.^=
Jun 27 '08 #1
0 829

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Simon Wigzell | last post by:
The following code is stripped down to keep it simple. What I want is a double click call back on a table. The table will contain all kinds of text and graphics. I want double click rather than...
4
by: John Winterbottom | last post by:
I've a requirement for a treeview control to display a master-detail view. So instead of the old the old 'ActiveX + 1,000 lines of code' method that I've used in the past. I decided to try a...
6
by: Jack | last post by:
Hello, I would like some advice on how to disable the behavior of treeviews to expand and collapse when double clicked upon, but still allow the user to use the plus and minus on each node. ...
5
by: Boni | last post by:
Dear all, is it possible to implement a tree node so that double click on the tree node does some operation and double click on "+" of this tree node only expands tree without doing this...
0
by: Chris Johnson | last post by:
Good morning. I have recently begun a project using PyGTK, and part of my planned interface has a gtk.TreeView showing a portion of the filesystem. Now, rather than load the entire FS structure...
8
by: Matt MacDonald | last post by:
Hi All, I have a form that displays hierarchical categories in a treeview. Ok so far so good. What I was to do is have users be able to select a node in the treeview as part of filling out the...
2
by: csabadapp | last post by:
i have a treeview (id="trv") i would like to do something like this: trv.Attributes.Add("onexpand", "javascript:alert(this);"); i cannot make this work i would like to know if this is the...
1
by: =?Utf-8?B?U3dvb3No?= | last post by:
i have a treeview (id="trv") i would like to do something like this: trv.Attributes.Add("onexpand", "javascript:alert(this);"); i cannot make this work i would like to know if this is the...
1
by: sermet | last post by:
Hi everybody, I have an application that works for IE. I used treeview.htc to create a tree view. And I want my client side code to work with linux based operating systems. So the code should work...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.