1. Another Window 7
- Posted by dcole May 12, 2011
- 1476 views
I have a programs with two windows.
w=create(Window,"aaa",0,10,10,10,10,0) PillD = createEx( Window, "Pill D", 0, Default, Default, 544, 436, 0, 0 )
w= is a small unnoticeable window that may or may not show on the desktop.
w also has a timer that opens PillD when it is time to take a pill.
I designed it so PillD will not close untill I check off that the pill has been taken. This resets the timer and so on.
Everything works fine in Windows XP. No matter what I am working on (Excel, Paint, or another Euphoria Program... whatever), PillD open up on top and I cannot close it untill I check off the pill.
Now with Windiow 7 it does work and opens window PillD. However it does not come to the top. If I look very carefully I can see that there are two programs running in the Taskbar. This is the only way I notice it's tine to take the pill. But I don't want to have to keep checki8ng the taskbar.
So I guess my question is how can I make a Window open on the top in windows 7.
What I mean by "on top" is that if I am working in Excel and my window pops I can no longer work on Excel untill my window is closed.
Any help appreciated.
Don Cole
2. Re: Another Window 7
- Posted by AndyDrummond May 13, 2011
- 1432 views
In Win32Lib there is a procedure moveZOrder(win, HWND_TOPMOST). This can be used to set that a window win is shown - well, topmost. I use it with no bothers. I don't know if you use Win32Lib or, if not, whether you can crop the relevant bit of code. Best advice I can offer, Don. I copied this from the Win32Lib docs:
[proc] moveZOrder ( integer id, atom ztype) Move id to up or down the of Z order of windows. Category: Attributes ztype can be one of HWND_TOP, HWND_BOTTOM, HWND_TOPMOST or HWND_NOTOPMOST, or another control id. In the latter case, id will appear in front of ztype. Example: -- change the order of this window. moveZOrder( msgWindow, HWND_TOPMOST) -- move id in front of id2 moveZOrder( id, id2)
3. Re: Another Window 7
- Posted by dcole May 15, 2011
- 1377 views
In Win32Lib there is a procedure moveZOrder(win, HWND_TOPMOST). This can be used to set that a window win is shown - well, topmost. I use it with no bothers. I don't know if you use Win32Lib or, if not, whether you can crop the relevant bit of code. Best advice I can offer, Don. I copied this from the Win32Lib docs:
[proc] moveZOrder ( integer id, atom ztype) Move id to up or down the of Z order of windows. Category: Attributes ztype can be one of HWND_TOP, HWND_BOTTOM, HWND_TOPMOST or HWND_NOTOPMOST, or another control id. In the latter case, id will appear in front of ztype. Example: -- change the order of this window. moveZOrder( msgWindow, HWND_TOPMOST) -- move id in front of id2 moveZOrder( id, id2)
Hello Andy,
So it's called Z order, This is v-e-r-y inter rest' sting.
It even works when Microsoft's Screen Saver comes on.
You sure know your stuff. Thank you very much.
Don Cole