Also version independent Q&A can be placed here.
I would like to get some help from the community. I need to call a context menu when F11 is keydown, in context menu keyboard accelerator I add F11 but it's not working I don't know. So I attemp to catch the event using the On VTM_KeyDown but I'm not sure how to call ContextMenu
If wParam = VK_F12 OR wParam = VK_F11
Call SalMessageBox ('F12','', MB_Ok)
Call SalSendMsg ( hWndItem, SAM_ContextMenu, wParam, lParam )
I also tried to use VisWinLoadAccelerator but never call the context menu
Call SalSendClassMessage ( SAM_Create, wParam, lParam)
Set hKey = VisWinLoadAccelerator( hWndItem, SAM_ContextMenu, KDS_None, VK_F11, 0)
Anyway if I click using rigth button the context menu is triggered. In summary anyone who can help me to call context menu when F11 is press and the behavior will be the as if rigth button was clicked.
Note: I have installed CTD 3.0
- Founder/Site Admin
- Posts: 387
- Joined: 24 Feb 2017, 09:12
- Location: Gouda, The Netherlands
Who is online
Users browsing this forum: Ccbot [Crawler] and 0 guests