🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #16359

Re: Mouse right click

#16359
From: Mark Horn
Date: Wed, 03 Mar 1999 00:00
9 lines
753 bytes
This should work:

 void gridControl1_mouseClicked(MouseEvent e) {

        if (e.getModifiers() == Event.META_MASK) {
        popupMenu1.show(gridControl1,x+10,y+40);

In this instance it is used with a grid control. Event.META_MASK
gives you the right click.
Technical Details
Message-ID: <7bjv96$2go6@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <79pci8$4h516@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,dd0d5cdcde119dd9
X-Google-Attributes: gidf74b3,public
From: "Mark Horn" <mhorn@harris.com>
Subject: Re: Mouse right click
Date: 1999/03/03
Message-ID: <7bjv96$2go6@forums.borland.com>
X-Deja-AN: 450841973
References: <79pci8$4h516@forums.borland.com>
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.language