> I cannot access mouse button pressed for context
> menus anyway, I suspect, as its actually explorer that does that menu
> handling.

Yes, I know.  But I'm not sure if I describe my idea clearly.
Of course Explorer's context menu is handled by explorers routines,
but this menu recognize Right click as well, but this executes always
Left command. It is fine.
But if there would be function that returns last pressed mouse button
(an example taken form windows internal keyboard buffer, ppro
temporary keyboard buffer or something... (???)) then it will be
possible to make simple chcecking this last pressed button in (left)
menu item command.
      Left command:
       if (lastpressedmousebutton == right)
          ;; right click commands here
       else
          ;; left click commands here
       endif
...so distinguish between Left and Right clicks in menus would be
possible - which is normally not.

BTW I see that you currently make some corrections to menu of processes.
It is possible to make that command "*Window <xxx> menu" returns
selected handle in variable like _file_ instead executing <xxx>
command on this process?
I try to make some kind of simple process explorer on caption RMB, but
now I must have many of embedded menus with processes list in form:
----------------------------------------
   Show
        *submenu: windows show menu hidden
        <list of processes here>
   Close
        *submenu: windows show menu hidden
        <list of processes here>
   Terminate
        *submenu: windows show menu hidden
        <list of processes here>
   Hide
        *submenu: windows show menu hidden
        <list of processes here>
   and so on....
----------------------------------------

I think that this will be more convenient in form of one menu with
processes names and action on selected process taken afterward:
----------------------------------------
   List of processes
        *submenu: windows show menu hidden
        <list of processes here>
               *displaying new action menu for selected process:
               Show
               Close
               Terminate
               Hide
               and so on....
                      *doing selected action on process
----------------------------------------

something like "*Windows Get menu hidden/traymin/etc." sets _file_ to
handle of selected process from menu.
What do you think about it?


Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to