Board index » delphi » Form popup in background

Form popup in background

Hi there

I have a program running hidden (MainForm). The program shows a form
(PopupForm) when certain events happen. I want the form to be inactive when
it shows, so that the user is not interupted in their current work and I
would like the programs bar in the processline to be blining. Like MS
Messenger when a person writes you a message.

I have made some code, where the popupform activates the last active window
before it was shown. Thereby forcing the popupform into the background. But
how do I make the program button in the processline blink?

- Ole

 

Re:Form popup in background


use the API call to FlashWindow making sure to pass application.handle

--
Dan

Quote
Ole Borup wrote in message

<3c09597a$0$89834$edfad...@dspool01.news.tele.dk>...
Quote
>Hi there

>I have a program running hidden (MainForm). The program shows a form
>(PopupForm) when certain events happen. I want the form to be inactive when
>it shows, so that the user is not interupted in their current work and I
>would like the programs bar in the processline to be blining. Like MS
>Messenger when a person writes you a message.

>I have made some code, where the popupform activates the last active window
>before it was shown. Thereby forcing the popupform into the background. But
>how do I make the program button in the processline blink?

>- Ole

Re:Form popup in background


Hello
I would use a Timer object for the blinking and change the icon or whatever
in response to the timer object. You can set the timer interval to not fire
at all and set the icon you want in conditions when there should be no
blinking, and to 'start' the blinking, set the timer interval to what you
want the blinking interval to be.
The Timer event would have code to change the icon, but would only fire when
you want it to.
Check the Online Help for into on the Timer object.

Hope this helps.

Gino

Quote
"Ole Borup" <olebo...@diku.dk> wrote in message

news:3c09597a$0$89834$edfadb0f@dspool01.news.tele.dk...

Quote
> Hi there

> I have a program running hidden (MainForm). The program shows a form
> (PopupForm) when certain events happen. I want the form to be inactive
when
> it shows, so that the user is not interupted in their current work and I
> would like the programs bar in the processline to be blining. Like MS
> Messenger when a person writes you a message.

> I have made some code, where the popupform activates the last active
window
> before it was shown. Thereby forcing the popupform into the background.
But
> how do I make the program button in the processline blink?

> - Ole

-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----==  Over 80,000 Newsgroups - 16 Different Servers! =-----

Re:Form popup in background


Thanks! It works like a charm. When I found out the handle to use was
Application.Handle not the forms handle.

- Ole

"Dan Donoghue" <d...@d-soft.co.uk> wrote news:E3eO7.466$Jm.28104@stones...

Quote

> use the API call to FlashWindow making sure to pass application.handle

> --
> Dan

Other Threads