Mouse handling in TTree

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Lenfors
Newbie
Newbie
Posts: 1
Joined: Wed Sep 25, 2024 12:00 am

Mouse handling in TTree

Post by Lenfors » Mon Nov 25, 2024 7:06 pm

Hello!

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

Post Reply