Forcing window focus

BlitzPlus Forums/BlitzPlus Programming/Forcing window focus

snowneko(Posted 2008) [#1]
Hi i am having a bit of a problem i was hoping someone might be able to help me with.

Basically i have a server/client setup that is being used as a CMS. I have managed (with assistance of this site, thanks to those relevant) to allow the program to minimised and restored from the system tray.

If a new call comes through while the program is minimised to the systray it creates a tooltip window raises it into view, waits 15 seconds and then lowers it again to inform you.

The problem is this window doesnt have its focus forced. So if you click another window it dissapears behind it. Is there any way i can force this window to be the frontmost window for the 15 seconds its visible?

Thanks in advance for any help offered


Dabhand(Posted 2008) [#2]
I have compiled various WinAPI functions here that I've used over the years:-

http://www.syntaxbomb.com/forums/showthread.php?t=1123

Theres bound to be something in there... These use the 'userlib' feature of Blitz+, search the forum for help, they are well explained if you dont know how to use them.

Dabz


snowneko(Posted 2008) [#3]
Thanks Michael, took a little fiddling but ive managed to obtain the desired effect.

Ive bookmarked the page you linked : )

Thanks again