Mouse handling in TTree
Posted: Mon Nov 25, 2024 7:06 pm
Hello!
In the TTree component I set the
I also have an
After selecting a function in the popup menu the TTree is someway still hooked to the mouse, so when i move the mouse (without pressing any mouse button) the entire workare moves as if I was "Right mouse button" moving.
Any idea how to prevent this?
I want the "right button move" function to work as usual, but when right clicking a
Best regards, Mikael
In the TTree component I set the
ScrollMouseButton
to mbRight
. If i right click on the TTree and drag it moves the entire workarea as expected.I also have an
OnClickShape
event where i check if it's a mbRight
button pressed and if that's the case i show a popup menu. After selecting a function in the popup menu the TTree is someway still hooked to the mouse, so when i move the mouse (without pressing any mouse button) the entire workare moves as if I was "Right mouse button" moving.
Any idea how to prevent this?
I want the "right button move" function to work as usual, but when right clicking a
TTreeNodeShape
there should be no movement.Best regards, Mikael