2012-01-19, 23:42
I'm trying to move (effect="slide") some included items (take the clock for example) to different locations depending on which view is or becomes active.
For changing the window to the library this is douable with the following conditions (where 50 & 51 are ids of the views) and using WindowOpen/Close Type:
But what if i'm already in the VideoLibrary and change the view? Is there a way to check which view is active and which is the following view so that I can move the clock to the correct place? Something like View.Previous(50) + View.Next(51) does not seem to exist.
The point is to create a Conditional Type that gets triggered when changing the view and won't also be triggered during the opening or closing of the window.
I tried working without the WindowOpen/close events, only use Conditional events: Control.IsVisible(50) and Control.IsVisible(51). While these give a perfect slide animation when switching between views they don't seem to give a nice slide animation when opening or closing the VideoLibrary.
For changing the window to the library this is douable with the following conditions (where 50 & 51 are ids of the views) and using WindowOpen/Close Type:
Code:
Window.Previous(Home) + Window.IsActive(VideoLibrary) + Control.IsVisible(50) -> move to x,y
Window.Previous(Home) + Window.IsActive(VideoLibrary) + Control.IsVisible(51) -> move to i,j
But what if i'm already in the VideoLibrary and change the view? Is there a way to check which view is active and which is the following view so that I can move the clock to the correct place? Something like View.Previous(50) + View.Next(51) does not seem to exist.
The point is to create a Conditional Type that gets triggered when changing the view and won't also be triggered during the opening or closing of the window.
I tried working without the WindowOpen/close events, only use Conditional events: Control.IsVisible(50) and Control.IsVisible(51). While these give a perfect slide animation when switching between views they don't seem to give a nice slide animation when opening or closing the VideoLibrary.