flat assembler
Message board for the users of flat assembler.

Index > IDE Development > how to call tab's context menu with no mouse

Author
Thread Post new topic Reply to topic
idle



Joined: 06 Jan 2011
Posts: 359
Location: Ukraine
idle
Post 08 Jun 2011, 09:55
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17447
Location: In your JS exploiting you and your system
revolution
Since you didn't say which OS I am assuming you are using Windows here. Clicking a mouse button will send a message to the underlying window. You can also send the same message at any time. WM_RBUTTONDOWN
Post 08 Jun 2011, 10:17
View user's profile Send private message Visit poster's website Reply with quote
idle



Joined: 06 Jan 2011
Posts: 359
Location: Ukraine
idle
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
    
Post 08 Jun 2011, 10:26
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17447
Location: In your JS exploiting you and your system
revolution
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.
Post 08 Jun 2011, 10:31
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 7750
Location: Kraków, Poland
Tomasz Grysztar
revolution: to open the menu bar F10 should suffice.

As for the "Assign to compiler" option, it is Shift+F9 in fasmw.
Post 08 Jun 2011, 10:34
View user's profile Send private message Visit poster's website Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17447
Location: In your JS exploiting you and your system
revolution
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?
Post 08 Jun 2011, 10:41
View user's profile Send private message Visit poster's website Reply with quote
idle



Joined: 06 Jan 2011
Posts: 359
Location: Ukraine
idle
our mouse is ill
she is half-deaf
her right ear hears nothing

it's all right now
Post 08 Jun 2011, 10:49
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.