🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #3149

Re: HOW TO DISABLE right button pop-up menu on a textfield ?

#3149
From: Nathan Kirkham
Date: Tue, 07 Apr 1998 00:00
38 lines
1355 bytes
In the mouse released event do;

if (e.isPopUpTrigger()) e.consume();

this removes the default menu.

Going on from this, does anybody know how to add items to the default
menu or pass through selections to it.  My problem was that I wan't
copy, paste and some of my own.  I ended up writing the paste function
myself when all I wanted to do was pass my paste selection to the
default paste.

Cheers,

Nathan

Lionel Tinguely wrote:

> Hello all,
>
> I would like to disable the pop-up menu to come when I make
> a mouse right button click on a TextField.
>
> Does anyone knows hot to do that ?
>
> Thank
>
> LiONEL



--

------------------------------------------
Nathan Kirkham - nathan@result2k.u-net.com
Java Programmer
Result 2000 Plc
Technical Details
Message-ID: <3529E547.99AAC620@NOSPAM.result2k.u-net.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <352ad62f.1675288@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,36c2a431b0abd9c4
X-Google-Attributes: gid1089d0,public
From: Nathan Kirkham <nathan@NOSPAM.result2k.u-net.com>
Subject: Re: HOW TO DISABLE right button pop-up menu on a textfield ?
Date: 1998/04/07
Message-ID: <3529E547.99AAC620@NOSPAM.result2k.u-net.com>
X-Deja-AN: 341635628
Content-Transfer-Encoding: 7bit
References: <352ad62f.1675288@forums.borland.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Organization: Result 2000 Plc
Newsgroups: borland.public.jbuilder.java.api