Discussion:
[power-pro] Menu & middle mouse button
pprotcmd pprotcmd@yandex.ru [power-pro]
2018-05-29 19:19:49 UTC
Permalink
Simple script:

local F = cl.Create("Test", 1)
local Item = F.Insert(0)

with Item
.AddLeft("win.debug(1)")
.AddRight("win.debug(2)")
.AddMiddle("win.debug(3)")
.SetLabel("Test")
endwith

F.Show

quit

So, command list is shown as bar. All three button presses are processed properly.
But if to change bar for menu, that is, change

F.Show

for

F.ShowMenu

then the middle mouse button does nothing and the "3" text is never displayed.
Why? Is it described in manuals?
--
Yours sincerely,

Vochomurka
pprotcmd@yandex.ru [power-pro]
2018-05-29 18:32:16 UTC
Permalink
Simple script:

local F = cl.Create("Test", 1)
local Item = F.Insert(0)

with Item
.AddLeft("win.debug(1)")
.AddRight("win.debug(2)")
.AddMiddle("win.debug(3)")
.SetLabel("Test")
endwith

F.Show

quit

So, command list is shown as bar. All three button presses are processed properly.
But if to change bar for menu, that is, change

F.Show

for

F.ShowMenu

then the middle mouse button does nothing and the "3" text is never displayed.
Why? Is it described in manuals?
brucexs@yahoo.com [power-pro]
2018-05-29 21:31:37 UTC
Permalink
Sorry, middle mouse button does not work with menus. Powerpro uses the windows standard api for menus and it does not support middle mouse clicks, only left and right.

I agree the help is not clear on this. This is a obscure sentence in setup|all menus tab help for right click selecting its own which says something to the effect of middle may also be used but is not reliable.


To be honest, I suspect that was written pre-win32 (yes 32!) when I tried to implement some kind of workaround for the windows limitation, but it does not work these days, even if it might have worked for win16..
brucexs@yahoo.com [power-pro]
2018-05-29 21:33:04 UTC
Permalink
BTW, as a workaround, you could try a vertical orientation bar.

Loading...