TCustomTreeView.MouseUp procedure
Handles a mouse up event for the control.
Declaration
procedure MouseUp(Button: TMouseButton; Shift: TShiftState; X: Integer;
Y: Integer); overrideDescription
MouseUp is an overridden method in
TCustomTreeView used
to perform actions needed when a mouse up event occurs on the tree view
control. In TCustomTreeView, it ensures that a visible hint window is closed
before handling the mouse up event. It calls the inherited method to signal
the OnMouseUp event handler (when assigned).
If PopupMenu is assigned, a right-shifted right mouse button click causes the method to be exited to process the context menu request. (Nota bene: RShift + RButton specifically; the code does not handle LShift + RButton.)
For a Left mouse button up event, the control tries to select the tree node under the pointer or toggle the editor state on a already selected tree node. Use ReadOnly to enable or disable the tree node editor when the mouse up event is handled.
Values in the States property are updated prior to exiting from the method.
See also
An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.
