Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DblClick in a TreeView
Message
From
25/12/2000 08:26:15
 
 
To
24/12/2000 10:18:02
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00456623
Message ID:
00456732
Views:
32
Cetin,
What I want to do is to:
Left click on a node expand or contract and build the node as needed(this part works fine)
Dbl Left Click on a node to not executed the single click code and to edit that item.
Right click on a node pop up a menu(this part works fine as well)

On My Computer if I hold the left mouse button down for more than one second and don't move it the click and mouse up don't fire. This may be a local problem for me. I have noticed some strange behaviour in explorer when I click on a node as well...

Thanks

>>Cetin,
>>
>>Back to the DblClick in a TreeView...
>>
>>I built a form that has a treeview and an imageslist. On the form I put a textbox for each of the following:
>>
>>MouseDown
>>NodeClick
>>Node
>>Click
>>DblClick
>>Button
>>Shift
>>MouseUp
>>
>>In each method I put code to increment the value in the text box for that method. i.e. in MouseDown method I put the following
>>
>>WITH ThisForm
>>.txtMouseDown.Value = (.txtMouseDown.Value + 1)
>>.txtButton.Value = Button
>>.txtShift.Value = Shift
>>ENDWITH
>>
>>What I found that MouseDown will fire AT LEAST once for each mouse click or dblclick. The speed in clicking varies the results. For example if you left click on a node and hold the button down for one second Click and MouseUp will not fire. Depending on the speed of a dblclick if DblClick will fire or not. NodeClick seems to be the second most relible method if fires 99% of the time click and dblclick about 50% of the time as I vary the speed of clicking with the mouse...
>>
>>Any Ideas?
>
>John,
>Right mousedown always fires at least once. Holding for one second or more still fires click and mouseup. However if you mousedown on anitem and move to mouse to another place and mouseup, click doesn't fire. It's similar behaviour with other controls. ie: Mousedown on a button move the mouse to somewhere outside the button and hold for sometime before releasing. Click doesn't fire. It's also not a VFP issue and occurs for all windows buttons.
>Nodeclick OTOH fires frequently and actually not a click event as it name refers. Nodeclick code is run even if you use only keyboard, and somewhat correpond to gotfocus :)
>When a dblclick occurs, click occur at a HIGH chance (apprx 80%) and code in click doesn't suppress dblclick code running despite docs say the reverse.
>What really you want to do ? I usually only use Nodeclick in treeview.
>Cetin
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform