?
Solved

PopupMenu state Problem !

Posted on 1997-08-09
6
Medium Priority
?
390 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
Industry Leaders: 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 600 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

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

771 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