Solved

ONPOPUP

Posted on 1997-03-14
1
196 Views
Last Modified: 2010-04-03
I am using Delphi 1.0 and have found that a second Right mouse click in a different location on the screen will move the POPUP menu that is currently being displayed, but it will not call the ONPOPUP event again !!!  Is this a bug ?
Is there a work around ? My problem is that I want to know the mouse coordinates where the right click was performed.
0
Comment
Question by:Mike Strauser
1 Comment
 
LVL 3

Accepted Solution

by:
mheacock earned 50 total points
ID: 1334761
I don't know if it is a bug...I would doubt it...probably just how OnPopup functions at the Win95 level.  As a workaround, you could just capture MouseDown events for the right button...immediately disable the Autopopup property set to False) and then read the mouse coordinates and then show your popup menu via the Popup method.

There is a small example in the Delphi help file under Popup method.  I think this will work for you.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now