troubleshooting Question

How do I activate a minimized window when an event fires?

Avatar of kmaynard
kmaynardFlag for New Zealand asked on
Delphi
6 Comments1 Solution249 ViewsLast Modified:
I am writing a Delphi 7 program on XP SP2 to provide basic speech telephony via a headset attached to a voice modem. I want to start the program minimized (or better still, iconified). To make a call, the user clicks on the task bar item, which causes the window to assume its normal size so that the call buttons are visible. This bit works. What I also want is for the window to bring itself to the top when an incoming call is detected. Running the code under IDE, when the ringing event is detected, it executes   MainForm.Activate; and MainForm.windowState := wsNormal; but this has no effect on the minimized window. What am I doing wrong?
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 6 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros