Archicad C++ API
About Archicad add-on development using the C++ API.

How to detect mouse right click of list box header?

Newbie
Participant

Hello,

 

I am trying to find any API function to detect right button click of mouse on the list box header.

Is there anyone could share suggestion?

 

1 REPLY 1
Miklos Vegh
Graphisoft
Graphisoft

The right mouse click usually invokes a context menu request. In case of the listbox control a right click in the header results a notification in the attached observer:

virtual void	ListBoxContextMenuRequested (const ListBoxContextMenuEvent& ev, bool* processed);

The ListBoxContextMenuEvent contains information about the clicked header item.

If the processed parameter is set to true then the default context menu will not be shown.