Where does OnRightClick() function is called ?

Asked by Mudit Joshi

Can anyone tell where does SCH_EDIT_FRAME::OnRightClick() function is called in eeschema.

I am trying to understand how the OnRightClick() function is working and how it shows different options for different items. But, I am not able to find where and how this function is being called whenever we click right mouse button.

Thanks in advance.

Question information

Language:
English Edit question
Status:
Solved
For:
KiCad Edit question
Assignee:
No assignee Edit question
Solved by:
Maciej Suminski
Solved:
Last query:
Last reply:
Revision history for this message
Best Maciej Suminski (orsonmmz) said :
#1

It is called by EDA_DRAW_PANEL::OnRightClick() (common/draw_panel.cpp:908 in the current master), which in turn is called by EDA_DRAW_PANEL::OnMouseEvent().

Revision history for this message
Mudit Joshi (joshi-ji) said :
#2

Thanks Maciej Suminski, that solved my question.