How to detect mouse right click of list box header?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2023-07-24 12:30 PM
‎2023-07-24
12:30 PM
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?
Labels:
- Labels:
-
Add-On (C++)
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2023-08-08 11:17 AM
‎2023-08-08
11:17 AM
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.