Skip to content

toToggleOnDblClick and remove node in OnNodedblClick event #1365

@Dzyszla

Description

@Dzyszla

I have some custom code in OnNodeDblClick. There is some modal window, and next remove items from tree.

Then sometimes got access violation in method TBaseVirtualTree.AdjustTotalHeight on line:

      if not (vsVisible in Run.States) or (Run = FRoot) or
        (Run.Parent = nil) or not (vsExpanded in Run.Parent.States) then

Callstack:

Image

Maybe event procedure for OnNOdeDblClick should return some parameter like handled and if true, then stop trying execute other code base on doubleclick?

Metadata

Metadata

Assignees

Labels

EnhancementOpen for DiscussionThere are several possibilites to address the issue and anyone is invited for comments.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions