[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

PopupMenu state Problem !

Posted on 1997-08-09
6
Medium Priority
?
410 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
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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Integration Management Part 2
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses
Course of the Month18 days, 10 hours left to enroll

826 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