Solved

PopupMenu state Problem !

Posted on 1997-08-09
6
372 Views
Last Modified: 2010-04-04
Hi,
When a popupmenu is displaying, the system display the popupmenu as a form, but this state is Modal.
I research a methode to show a popupmenu in normal state.
it's just for get the mouse event when the cursor is not
in the popupmenu windows
0
Comment
Question by:Chova
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 3

Expert Comment

by:mirek071497
ID: 1341053
I don't understand what you need. Please clarify.
Do You need Popup whis is not modal ?
Popup must be modal but mayby you need another component.
0
 

Author Comment

by:Chova
ID: 1341054
Ok,
In fact, i need a popupmenu (Or an equivalent component)
which is not modal.
Because i want use all the mouse message when a poupmenu is
displaying.

Thanks
0
 

Expert Comment

by:iainmagee
ID: 1341055
But a popup menu isn't modal. It doesn't restrict mouse input to within itself.

Do you mean you want your application to trap mouse messages   in windows other than the popup, while it is displayed? I don't see how this is possible because the popup kills itself as soon as it loses the focus?

Can you explain why you need this more fully?
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Expert Comment

by:iainmagee
ID: 1341056
But a popup menu isn't modal. It doesn't restrict mouse input to within itself.

Do you mean you want your application to trap mouse messages   in windows other than the popup, while it is displayed? I don't see how this is possible because the popup kills itself as soon as it loses the focus?

Can you explain why you need this more fully?
0
 

Author Comment

by:Chova
ID: 1341057
Ok, i want to do that, because i try since few month, to do the same menu that Office97's menu .
My way is very simple, i create a button (win97 style) whch show a popupmenu when you click .I use the "Trackpopupmenu" command to show the popupmenu.
This poupmenu is modified in Ownerdraw state. (is for realize,
a menutitem with icon).
When the poupmenu is showing, i don't arrive to get the mouse event if my cursor is not on the popupWindow.
You understand Now ?
0
 

Accepted Solution

by:
boabyte earned 200 total points
ID: 1341058
Why dont you just use a panel to make a FAKE popupmenu.
This way you will still have total control over mouse inputs.
Just change the panels visible property to enable / disable
menu.
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

730 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