Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations LittleInch on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Focus - ob what window?

Status
Not open for further replies.

Skogsgurra

Electrical
Joined
Mar 31, 2003
Messages
11,815
Location
SE
We have a windows application where one window does signal acquisition and saves files when triggered and another window is used to view and manipulate the saved files while the first window is still active measuring.

One question that is being discussed is if it is possible to have focus on the acquisition window while working with the viewer window.

Example. I use the viewer window to open a newly created file (File/Open File/select filename/Open) and then I get a message saying that data may be incomplete. I click the OK in that message box and is then returned - I think - to the viewer window where I expect the opened file's data to appear.

Now, I am being told that it is not at all sure that I have focus on the viewer screen any more. That is something I cannot understand. Can anyone explain?

Gunnar Englund
--------------------------------------
100 % recycled posting: Electrons, ideas, finger-tips have been used over and over again...
 
'ob' in header shall read 'on'

Gunnar Englund
--------------------------------------
100 % recycled posting: Electrons, ideas, finger-tips have been used over and over again...
 
It shouldn't matter which window has focus, if the other window is visible, its data stream should still occur. The caveat is that the software may not be written for that. One easy check would be to place both windows side-by-side on the display and see what happens. Windows itself time multiplexes the processing of all its windows, but many software display routines are tied to the visibility, but not necessarily the focus, of each window.

TTFN

FAQ731-376
 
Thanks IR

What happens is that the graph that I thought would appear doesnt appear and the background (grid, scales etcetera) is replaced by a big black square. Perhaps a black hole?

Someone said it could have to do with not having focus on the right window. It is in the SW guy's knee now.

Gunnar Englund
--------------------------------------
100 % recycled posting: Electrons, ideas, finger-tips have been used over and over again...
 
It's strictly a software problem, but nothing to do with focus, per se. Just consider that you can easily get Windows Media player to stream video while you're doing something else in another window; same basic principle.

TTFN

FAQ731-376
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top