Hello all and thanks in advance for the help.

I have an application that creates windows (forms) in response to external
events or messages. When a new form is created, I need it to appear on top
of any application currently running (both FoxPro and non-FoxPro). Is there
any way to make this happen?

The events that cause a window to be created are not initiated by user
interface events so the user is likely to have the application minimized
when an event occurs that would cause a window to be instantiated.

Currently, the windows often "pop under" existing applications and I need
them to pop over them.

Thanks,
Jeff

Re: Window on top by Paul

Paul
Wed Mar 26 19:02:43 CDT 2008

I'm not an expert on this, but I think that that behavior would violate
Windows guidelines. So it's not recommended and probably not easy to do
anyway.

You might be able to make one of those vanishing notification windows that
pop up in the lower right corner of the screen, though. Sorry, I don't have
documentation for those, but you should be able to find it somewhere.




"Jeff Grippe" <jeff@door7.com> wrote in message
news:13ul74btahivl9a@news.supernews.com...
> Hello all and thanks in advance for the help.
>
> I have an application that creates windows (forms) in response to external
> events or messages. When a new form is created, I need it to appear on top
> of any application currently running (both FoxPro and non-FoxPro). Is
> there any way to make this happen?
>
> The events that cause a window to be created are not initiated by user
> interface events so the user is likely to have the application minimized
> when an event occurs that would cause a window to be instantiated.
>
> Currently, the windows often "pop under" existing applications and I need
> them to pop over them.
>
> Thanks,
> Jeff
>



Re: Window on top by Jeff

Jeff
Thu Mar 27 08:10:42 CDT 2008


"Paul Pedersen" <nospam@no.spam> wrote in message
news:%235L6c35jIHA.3780@TK2MSFTNGP06.phx.gbl...
> I'm not an expert on this, but I think that that behavior would violate
> Windows guidelines. So it's not recommended and probably not easy to do
> anyway.
>
> You might be able to make one of those vanishing notification windows that
> pop up in the lower right corner of the screen, though. Sorry, I don't
> have documentation for those, but you should be able to find it somewhere.
>

You are probably right but I am replacing a Non-VFP app that pops its
windows up on top of everything so mine has to have the same behavior or my
users will complain and just use the old app.

I actually have an OCX for doing the ballon notifications but I've been told
that the winodws must open on top. There is clearly a way to do it since I
have an app that does but it may not be easy.

Thanks,
Jeff



Re: Window on top by Stefan

Stefan
Thu Mar 27 09:30:49 CDT 2008


formClass.ShowWindow=2 &&"AsTopLevel" and .AlwaysOnTop=.T.
does not work in your case?


-Stefan

"Jeff Grippe" <jeff@door7.com> schrieb im Newsbeitrag
news:13ul74btahivl9a@news.supernews.com...
> Hello all and thanks in advance for the help.
>
> I have an application that creates windows (forms) in response to external events or
> messages. When a new form is created, I need it to appear on top of any application
> currently running (both FoxPro and non-FoxPro). Is there any way to make this happen?
>
> The events that cause a window to be created are not initiated by user interface events
> so the user is likely to have the application minimized when an event occurs that would
> cause a window to be instantiated.
>
> Currently, the windows often "pop under" existing applications and I need them to pop
> over them.
>
> Thanks,
> Jeff
>


--
|\_/| ------ ProLib - programmers liberty -----------------
(.. ) Our MVPs and MCPs make the Fox run....
- / See us at www.prolib.de or www.AFPages.de
-----------------------------------------------------------



Re: Window on top by Paul

Paul
Thu Mar 27 10:26:54 CDT 2008


"Jeff Grippe" <jeff@door7.com> wrote in message
news:13un71960769p61@news.supernews.com...
>
> "Paul Pedersen" <nospam@no.spam> wrote in message
> news:%235L6c35jIHA.3780@TK2MSFTNGP06.phx.gbl...
>> I'm not an expert on this, but I think that that behavior would violate
>> Windows guidelines. So it's not recommended and probably not easy to do
>> anyway.
>>
>> You might be able to make one of those vanishing notification windows
>> that pop up in the lower right corner of the screen, though. Sorry, I
>> don't have documentation for those, but you should be able to find it
>> somewhere.
>>
>
> You are probably right but I am replacing a Non-VFP app that pops its
> windows up on top of everything so mine has to have the same behavior or
> my users will complain and just use the old app.
>
> I actually have an OCX for doing the ballon notifications but I've been
> told that the winodws must open on top. There is clearly a way to do it
> since I have an app that does but it may not be easy.
>
> Thanks,
> Jeff


Look for ShowWindow() in the Windows API. I think you can use that.





Re: Window on top by Jeff

Jeff
Thu Mar 27 11:18:03 CDT 2008

Interesting idea...can you create more than 1 top level form?

Some of my users have 50-100 of these windows open at one time.

Can they all be top level?

"Stefan Wuebbe" <stefan.wuebbe@gmx.de> wrote in message
news:u$T2OdBkIHA.6032@TK2MSFTNGP03.phx.gbl...
>
> formClass.ShowWindow=2 &&"AsTopLevel" and .AlwaysOnTop=.T.
> does not work in your case?
>
>
> -Stefan
>
> "Jeff Grippe" <jeff@door7.com> schrieb im Newsbeitrag
> news:13ul74btahivl9a@news.supernews.com...
>> Hello all and thanks in advance for the help.
>>
>> I have an application that creates windows (forms) in response to
>> external events or messages. When a new form is created, I need it to
>> appear on top of any application currently running (both FoxPro and
>> non-FoxPro). Is there any way to make this happen?
>>
>> The events that cause a window to be created are not initiated by user
>> interface events so the user is likely to have the application minimized
>> when an event occurs that would cause a window to be instantiated.
>>
>> Currently, the windows often "pop under" existing applications and I need
>> them to pop over them.
>>
>> Thanks,
>> Jeff
>>
>
>
> --
> |\_/| ------ ProLib - programmers liberty -----------------
> (.. ) Our MVPs and MCPs make the Fox run....
> - / See us at www.prolib.de or www.AFPages.de
> -----------------------------------------------------------
>



Re: Window on top by Stefan

Stefan
Thu Mar 27 12:03:45 CDT 2008


"Jeff Grippe" <jeff@door7.com> wrote in message
news:13uni0hf84a7pbd@news.supernews.com...
> Interesting idea...can you create more than 1 top level form?

Yes.

> Some of my users have 50-100 of these windows open at one time.
>
> Can they all be top level?

Yes - actually I have no real-life project creating so many, but this
test did work quickly a few minutes ago and I still can type mails <s>
FOR i = 1 TO 110
DO FORM c:\users\stefan\desktop\form1.scx
ENDFOR


hth
-Stefan
.


> "Stefan Wuebbe" <stefan.wuebbe@gmx.de> wrote in message
> news:u$T2OdBkIHA.6032@TK2MSFTNGP03.phx.gbl...
>>
>> formClass.ShowWindow=2 &&"AsTopLevel" and .AlwaysOnTop=.T.
>> does not work in your case?
>>
>>
>> -Stefan
>>
>> "Jeff Grippe" <jeff@door7.com> schrieb im Newsbeitrag
>> news:13ul74btahivl9a@news.supernews.com...
>>> Hello all and thanks in advance for the help.
>>>
>>> I have an application that creates windows (forms) in response to
>>> external events or messages. When a new form is created, I need it to
>>> appear on top of any application currently running (both FoxPro and
>>> non-FoxPro). Is there any way to make this happen?
>>>
>>> The events that cause a window to be created are not initiated by user
>>> interface events so the user is likely to have the application minimized
>>> when an event occurs that would cause a window to be instantiated.
>>>
>>> Currently, the windows often "pop under" existing applications and I
>>> need them to pop over them.
>>>
>>> Thanks,
>>> Jeff
>>>
>>
>>
>> --
>> |\_/| ------ ProLib - programmers liberty -----------------
>> (.. ) Our MVPs and MCPs make the Fox run....
>> - / See us at www.prolib.de or www.AFPages.de
>> -----------------------------------------------------------
>>


--
|\_/| ------ ProLib - programmers liberty -----------------
(.. ) Our MVPs and MCPs make the Fox run....
- / See us at www.prolib.de or www.AFPages.de
-----------------------------------------------------------