#9 Right Click with TouchGraph on Unix doesn't work

open
nobody
None
5
2004-11-07
2004-11-07
Anonymous
No

I've tried yesterday to run TG on Debian, but the right
click for the menů didn't work. So, I've tried to resolve
the problem reading this forum, but the solution I found
for this problem, was only for TGLinkBrowser (following
that istruction, doesn't work the same). Can you help
me to resolve this problem?

Thanks a lot for the answers!!!

Discussion

  • Logged In: NO

    You should check for e.isPopupTrigger() in both
    mouseReleased and mousePressed. Windows uses a different one
    than X, so developers often get lazy.

     
  • Logged In: NO

    yes, thats right. The problem here is, that Windows triggers
    a popup by releasing the mousebutton and unix triggers
    a popup by pressing the mousebutton.

    to get the popup-menus work with linux you have to modify
    the code by adding the following lines of code

    if (e.isPopupTrigger()) {
    mouseReleased(e);
    } else {

    ...

    }

    to all "void mousePressed(MouseEvent e)"-methods.

    greetings.

    nexus.

    p.s. not much updates to "linkbrowser" in the last few
    years ..

     
  • Logged In: NO

    yes, thats right. The problem here is, that Windows triggers
    a popup by releasing the mousebutton and unix triggers
    a popup by pressing the mousebutton.

    to get the popup-menus work with linux you have to modify
    the code by adding the following lines of code

    if (e.isPopupTrigger()) {
    mouseReleased(e);
    } else {

    ...

    }

    to all "void mousePressed(MouseEvent e)"-methods.

    greetings.

    nexus.

    p.s. not much updates to "linkbrowser" in the last few
    years ..