Home > Back-end >  Delphi multistage menu add onclick event every level of the problem
Delphi multistage menu add onclick event every level of the problem

Time:09-24

Consult everybody, I in the primary and the secondary menu defines the onclick event. The runtime automatically when the mouse moved to the level of the menu trigger level menu onclick event, in the absence of the mouse to click. Normal should expand the secondary menu, I don't know what reason?

CodePudding user response:

What is the problem that the building Lord, is click event does not affect the submenu

CodePudding user response:

The menu is a tree structure,
Usually have a list of sub menu, such as "system - open the file menu," menu "system" without incident, only the secondary menu "open file" event,
If you violate this rule,

CodePudding user response:

Support answer upstairs

CodePudding user response:

Level 1 menu don't write events

CodePudding user response:

I see the meaning of the building Lord,
"The mouse moved to the level when the menu is automatically triggered the level menu onclick event"
The building when the mouse moved to the previous menu, the code to trigger the onclick event, but not on the node,

The onclick event have to do is add one line of code:
The NODE, Expand

Why doesn't automatically, because what you said to trigger the onclick event should only be performed his onclick method, did not upload the CLICK the background,
  • Related