Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Asynchronous TPopupMenu

Status
Not open for further replies.

rcloutie

Programmer
May 26, 2005
164
CA
Hi all,

Is there a way to display a TPopupMenu in a way that other process in the application can continue to run (that is, an asynchronous popup menu)?

I have a progressbar which stops responding when user open a popup menu...

Thanks a lot for help,

Rej Cloutier

 
There are three:

1) you can display the popup menu in another thread
2) you can ping your process regularly from the popup menu (this would involve either using a tTimer or writing your own WndProc for the popup which calls Application.ProcessMessages or something to keep the running parts running).
3) make your popup non-modal. (just show it then hide it when done)

You have to realize that when you display a popup it is inherently an interruption of the work process. That is, your program pauses while the user responds to the popup.

Hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top