flat assembler
Message board for the users of flat assembler.
Index
> IDE Development > how to call tab's context menu with no mouse |
Author |
|
idle 08 Jun 2011, 09:55
|
|||
08 Jun 2011, 09:55 |
|
idle 08 Jun 2011, 10:26
Code: menu main_menu menuitem '&File',0,MFR_POPUP menuitem '&Assign to compiler',IDM_ASSIGN ; menuitem 'Open &folder',IDM_OPENFOLDER ; menuitem '&Close',IDM_CLOSE ; menuseparator menuitem '&New' _ 'Ctrl+N',IDM_NEW menuitem '&Open...' _ 'Ctrl+O',IDM_OPEN menuitem '&Save' _ 'Ctrl+S',IDM_SAVE menuitem 'Save &as...',IDM_SAVEAS menuseparator menuitem 'E&xit' _ 'Alt+X',IDM_EXIT,MFR_END |
|||
08 Jun 2011, 10:26 |
|
revolution 08 Jun 2011, 10:31
For that type of menu you would send WM_LBUTTONDOWN, since that is not a context menu. Just find the window for "file" button (contained within the menu bar) and send the message to it.
|
|||
08 Jun 2011, 10:31 |
|
Tomasz Grysztar 08 Jun 2011, 10:34
revolution: to open the menu bar F10 should suffice.
As for the "Assign to compiler" option, it is Shift+F9 in fasmw. |
|||
08 Jun 2011, 10:34 |
|
revolution 08 Jun 2011, 10:41
F10 only highlights the "file" (first menu item) button. It doesn't appear to activate the popup.
However I was assuming that idle was wanting to programmatically activate a menu. But perhaps idle meant that the user activates the menu without the mouse. Perhaps idle can clarify for us? |
|||
08 Jun 2011, 10:41 |
|
idle 08 Jun 2011, 10:49
our mouse is ill
she is half-deaf her right ear hears nothing it's all right now |
|||
08 Jun 2011, 10:49 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.