[Gambas-user] detect the "MenuKey" keypress

Gianluigi bagonergi at gmail.com
Sat Dec 19 15:53:40 CET 2020

Il giorno sab 19 dic 2020 alle ore 15:02 KKing <kicking177 at gmail.com> ha

> can I detect the MenuKey (between right Alt and Ctrl keys) being pressed
> in std graphics form?
> I'd like to raise popup menu on it being depressed
> xev shows it detected as keycode 135 on my unit but I don't know if LXDE
> passes it through to Gambas?
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----

I don't know if I understand the question, are you looking for this?

Public Sub Form_KeyPress()

  If Key.Code = Key["m"] And If Key.Control Then
    Me.PopupMenu = "Menu1"
    Menu1.Popup(Me.X + (Me.W \ 2), Me.Y + (Me.H \ 2))



P.S. A little kindness would be appreciated
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20201219/d2002437/attachment.htm>

More information about the User mailing list