Hi I'm having trouble with something that seems like it should be straightforward, so apologies in advance if I'm being stupid...
I want some of the content on certain screens, such as myvideonav.xml or home.xml to only show when there are no dialog windows open on top. I also want this behaviour on the dialogs themselves, so some content is hidden when another dialog is opened on top of it.
1) I thought this would be relatively simple case of adding a visibility condition to the content with !Window.IsTopMost(id) giving the id as the current showing window, so as soon as the current window isn't topmost, the content will be hidden. But this does not work.
In my testing, it seems that even though the debug info says Window: home (Home.XML) for example, Window.IsTopMost(home) DOES NOT equal true. Similarly on MyVideoNav, Window.IsTopMost(videos) doesn't return True. Are there hidden windows in operation above these in the stack?
2. I also thought of trying Control.HasFocus(id) assuming that a control on MyVideoNav such as a container displaying videos would lose focus when a dialogwindow is open on top. But this also doesn't work.
When the debug info says Focused: 504 (Panel), for example, using the visibility condition <visible>Control.HasFocus(504)</visible> does not have the impact of hiding the content when a dialogwindow is open, even when the debug info shows Focused as something else, such as 6002 (List) when my shutdownmenu dialog is open.