Home > database >  The popmenu problem in pb
The popmenu problem in pb

Time:09-29

Ask: why is the toolbar menu and popmenu do not share the same item?
For example m_master. Item set the new [2], modify, delete action items, such as general as popmenu need to open another m_master. Item [3] as a right 銉 popup menu for it, but today I will be the two menu all share the same action items (m_master. Item [2]), the problem is: if only use the toolbar menu or use popmenu operation is no problem, but if after used interchangeably, the toolbar menu will fail and no matter how to click no reaction ~ ~

CodePudding user response:

This should be no problem,
The pop-up menu, it is best to define a new menu instance
For example:
M_main lm_main
Lm_main=create m_main
M_master. Item [3]. PopMenu (x, y)

If not you can add a breakpoint in the clicked menu to track it

CodePudding user response:

Do not use global variables m_master. Item [3]

CodePudding user response:

No problem I tested the
Is in the achievement not to create a menu object
M_master lm_temp
Lm_temp=create m_master
M_master. Item [2]. Popmenu

CodePudding user response:

Dizzy, didn't see it on the ground floor, zha and I the same idea

CodePudding user response:

Redefine an instance variable is to be able to solve this problem, but it is not my goal, I want to know the reason? The toolbar menu and use alternately popmenu why did not effect the toolbar menu?

CodePudding user response:

Under the pb10.5 tried, no problem
  • Related